Changes between Version 10 and Version 11 of CustomFormatting


Ignore:
Timestamp:
May 1, 2012, 1:31:35 AM (12 years ago)
Author:
jesseeichar
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CustomFormatting

    v10 v11  
    7575.. _formatter:
    7676
    77 Metadata formatter
    78 ==================
     77=== Metadata formatter ===
    7978
    80 Introduction
    81 ------------
     79
     80'''Introduction'''
     81
    8282
    8383The metadata.show displays a metadata document using the default metadata display stylesheets.  However it can be useful to provide alternate stylesheets for displaying the metadata.  Consider a central catalog that is used by several partners.  Each partner might have special branding and wish to emphasize particular components of the metadata document. 
     
    9494Another use-case for metadata formatters is to embed the metadata in other websites.  Often a metadata document contains a very large amount of data and perhaps only a subset is interesting for a particular website or perhaps the branding/stylesheets needs to be customized to match the website.
    9595
    96 Administration
    97 --------------
     96'''Administration'''
    9897
    9998A metadata formatter is a bundle of files that can be uploaded to Geonetwork as a zip file (or in the simplest case just upload the xsl). 
     
    115114 * Edit - This provides some online edit capabilities of the bundle.  At the moment it allows editing of *existing* text files.  Adding new files etc... maybe added in the future but is not possible at the moment.  When edit is clicked a dialog with a list of all editable files are displayed in a tree and double clicking on a file will open a new window/tab with a text area containing the contents of the file.  The webpage has buttons for saving the file or viewing a metadata with the style.  The view options do *NOT* save the document before execution, that must be done before pressing the view buttons.
    116115
    117 Bundle format
    118 -------------
     116'''Bundle format'''
    119117
    120118A format bundle is at minimum a single xsl file.  If the xsl file is uploaded it can have any name.  On the server a folder will be created that contains the xsl file but renamed to view.xsl.
     
    158156Only the view.xsl is required.  If a single xsl file is uploaded then the rest of the directory structure will be created and some files will be added with default values.  So a quick way to get started on a bundle is to upload an empty xsl file and then download it again.  The downloaded zip file will have the correct layout and contain any other optional files.
    159157
    160 Config.properties
    161 -----------------
     158'''Config.properties'''
    162159
    163160The config.properties file contains some configuration options used when creating the xml document.  Some of the properties include: