Hi,
I want to change the order of the elements when viewing the metadata. One idea I had was to sort the metadata xml before applying the metadata-show.xml document. While there may be some issues with sorting that is done already in the metadata-iso19139.xml stylesheel it would still satisfy most if not all of my requirements.
So my questions:
- Is there an easier way to arrange the layout. Basically all I want is to have the Simple elements before the Complex Elements
- If applying a sorting stylesheet before applying the metadata.xsl stylesheet seems like a good idea, how can I specify in the config-metadata.xml file to apply both stylesheets to the output?
Thanks,
Jesse
Hi Jesse,
2009/7/30 Jesse Eichar <jesse.eichar@anonymised.com>:
I want to change the order of the elements when viewing the metadata.
That's not an easy stuff because the editor is following the XSD,
maybe Simon have more suggestion about that.
One
idea I had was to sort the metadata xml before applying the
metadata-show.xml document. While there may be some issues with sorting
that is done already in the metadata-iso19139.xml stylesheel it would still
satisfy most if not all of my requirements.
This idea of sorting sounds good, but I'm not sure how to do that. An
option could be to change jeeves service in order to apply a first XSL
filter and then the output stylesheet ?
Another option could be to create the layout for all children of your
element and defined the order / style of **all** elements. This
approach could be quite complex if the element you want to reorder has
many children.
Have a look to https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/trunk/web/geonetwork/xsl/metadata-iso19139.xsl
in trunk and look for this template :
<xsl:template mode="iso19139" match="gmd:contact|gmd:pointOfContact">
This one define a 2 columns tables for pointOfContact.
Same in <xsl:template name="iso19139Simple"> which define the order
of children of MD_Metadata in simple view mode.
A bientot.
Francois
So my questions:
1. Is there an easier way to arrange the layout. Basically all I want is to
have the Simple elements before the Complex Elements
2. If applying a sorting stylesheet before applying the metadata.xsl
stylesheet seems like a good idea, how can I specify in the
config-metadata.xml file to apply both stylesheets to the output?
Thanks,
Jesse
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork
Sigh, that is what I feared. I am really not excited about having to mess with the metadata-* stylesheets :(. I think I might look at modifying Jeeves to allow stylesheets to be chained together for creating the output. (Unless someone chimes in with another idea)
Jesse
On Fri, Jul 31, 2009 at 10:58 AM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:
Hi Jesse,
2009/7/30 Jesse Eichar <jesse.eichar@anonymised.com>:
I want to change the order of the elements when viewing the metadata.
That’s not an easy stuff because the editor is following the XSD,
maybe Simon have more suggestion about that.
One
idea I had was to sort the metadata xml before applying the
metadata-show.xml document. While there may be some issues with sorting
that is done already in the metadata-iso19139.xml stylesheel it would still
satisfy most if not all of my requirements.
This idea of sorting sounds good, but I’m not sure how to do that. An
option could be to change jeeves service in order to apply a first XSL
filter and then the output stylesheet ?
Another option could be to create the layout for all children of your
element and defined the order / style of all elements. This
approach could be quite complex if the element you want to reorder has
many children.
Have a look to https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/trunk/web/geonetwork/xsl/metadata-iso19139.xsl
in trunk and look for this template :
<xsl:template mode=“iso19139” match=“gmd:contact|gmd:pointOfContact”>
This one define a 2 columns tables for pointOfContact.
Same in <xsl:template name=“iso19139Simple”> which define the order
of children of MD_Metadata in simple view mode.
A bientot.
Francois
So my questions:
- Is there an easier way to arrange the layout. Basically all I want is to
have the Simple elements before the Complex Elements
- If applying a sorting stylesheet before applying the metadata.xsl
stylesheet seems like a good idea, how can I specify in the
config-metadata.xml file to apply both stylesheets to the output?
Thanks,
Jesse
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what’s new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork