SCOPE Metadata Legibilis … while the quality of content is paramount, its measure and utility can be hampered by a format that is not transparent or intuitive … LOJIC was forced to re-engineer Esri’s ArcGIS Metadata style sheet to maintain its established standard. This discussion discusses the experiences, technologies, tools and lessons encountered during the process.
BACKGROUND Metadata Legibilis First phase of a two phase project with the goal of creating a more robust search engine to cull through our metadata library and display results in a standardized format. First phase of a two phase project with the goal of creating a more robust search engine to cull through our metadata library and display results in a standardized format. Phase 1 – Develop a metadata style to handle standardization of format Phase 1 – Develop a metadata style to handle standardization of format Phase 2 – Develop a more robust search engine to search and retrieve metadata on public facing website Phase 2 – Develop a more robust search engine to search and retrieve metadata on public facing website
CUSTOM METADATA STYLESHEET Metadata Legibilis Why? The primary concern was to have metadata results that were easier to navigate and to have a consistent display for both web and ArcGIS desktop Why? The primary concern was to have metadata results that were easier to navigate and to have a consistent display for both web and ArcGIS desktop What? A style sheet is a predefined style with which to display metadata. It is technically a composite of files. What? A style sheet is a predefined style with which to display metadata. It is technically a composite of files. Where? The files in question are located in the Metadata folder in the ArcGIS 10 program folder. Where? The files in question are located in the Metadata folder in the ArcGIS 10 program folder.
RESOURCES How to Feel Around in the Dark ArcGIS Metadata Toolkit Environmental Protection Agency (EPA) style sheets and website W3Schools (.com) StackOverflow (.com) FGDC Plus (.xsl) stylesheet
TOOLS How to Feel Around in the Dark Web development software Web development software Microsoft Visual Web Developer Microsoft Visual Web Developer Adobe Dream Weaver Adobe Dream Weaver etc. etc. XML software XML software XML Notepad XML Notepad
MARKUPS & SCRIPT The code above is taken from the ArcGIS.xsl file. This code tests for title content in the source XML and, if the test result is true, it displays the title. HTML CSS XSLT XPath
FILES & FILE STRUCTURE How to Feel Around in the Dark
FILES & FILE STRUCTURE Files located completely within the rectangle represent system files used to process the XML input file according to the customized style for HTML display of metadata. T CFG TTT
FILES & FILE STRUCTURE This illustration simply plugs the actual files found in the system folder into the archetype model, to make it the representation a little more tangible. T
FILES & FILE STRUCTURE: ArcGIS.xsl This file is the primary file for displaying and transforming metadata. It essentially tests for the most basic information regarding metadata style type, calls on all the XSLT files for processing XML and displays the data as HTML. XSLT: Imports all relevant XSLT files from ArcGIS_Imports folder XSLT: Creates variables pertaining to Each metadata style using Xpath HTML Calls on scripts Tests for specific elements for each style Based on style – creates a collapsible/expandable icon Calls on specific template depending on style
FILES & FILE STRUCTURE : general.xslt This file is composed of all the essential CSS, scripting and XSLT which manage the font styles, collapsible/expandable nodes and the rules for handling different data types. 1. Establishes all CSS rules for all elements of metadata display. (template name = “styles”) 2. Holds all the scripting code to facilitate hide/show functionality of metadata display. (template name = “scripts”) 3. Using XSLT, it tests for various data types and sets rules for processing style and display. 4. Using XSLT, it tests for the various dataelements in an effort to call on element names from Esri resource files
CONSIDERATIONS How to Feel Around in the Dark How much time do I have to devote to learning the additional technologies? Esri provides little to no support on stylesheet customization. ArcGIS Metadata standard is designed for internal storage of metadata as it is used in ArcGIS software, therefore it is proprietary and subject to change at Esri’s discretion. How does this affect maintenance ? Custom style sheets require compatibility with ArcGIS, Explorer, Firefox, Opera, Chrome, XML Spy, etc.
Your consent to our cookies if you continue to use this website.