Hi
Seem the Groovy formatter allows to configure which root elements to process, like for example:
handlers.roots (‘gmd:distributionInfo//gmd:onLine[1]’, ‘gmd:identificationInfo/*’, ‘gmd:referenceSystemInfo’)
See https://github.com/geonetwork/core-geonetwork/wiki/Schema-Formatters-and-Metadata-Views#groovy-based-formatter
But not really clear if allows to order of the elements to display in the page. For me looks like it processes the xml element in the order defined in the xml and just applies the templates related, but no way to configure if you want to display elements in specific order (apart of root elements maybe).
Does anybody know if this possible? Otherwise, the formatter seem only suitable for full view, but for any page with custom elements, seem completely useless.
If someone can provide some light about this, would be really helpful. The documentation and comments in the code about this feature are not very clear. Thanks.
Regards,
Jose García
···
Vriendelijke groeten / Kind regards,
Jose García
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664
Please consider the environment before printing this email.
2016-09-06 10:45 GMT+02:00 Jose Garcia <jose.garcia@anonymised.com>:
Hi
Seem the Groovy formatter allows to configure which root elements to
process, like for example:
handlers.roots ('gmd:distributionInfo//gmd:onLine[1]',
'gmd:identificationInfo/*', 'gmd:referenceSystemInfo')
See https://github.com/geonetwork/core-geonetwork/
wiki/Schema-Formatters-and-Metadata-Views#groovy-based-formatter
But not really clear if allows to order of the elements to display in the
page. For me looks like it processes the xml element in the order defined
in the xml and just applies the templates related, but no way to configure
if you want to display elements in specific order (apart of root elements
maybe).
Does anybody know if this possible? Otherwise, the formatter seem only
suitable for full view, but for any page with custom elements, seem
completely useless.
If someone can provide some light about this, would be really helpful. The
documentation and comments in the code about this feature are not very
clear. Thanks.
Jose, I can't really help on this, but if nobody is maintaining the groovy
formatter I would be in favor of using XSLT formatters by default and
concentrate on it.
Cheers.
Francois
Regards,
Jose García
--
*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/>Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv>
<https://twitter.com/geocat_bv>
<https://plus.google.com/u/1/+GeocatNetbv/posts>Please consider the
environment before printing this email.*
------------------------------------------------------------
------------------
_______________________________________________
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
Hi Francois
Thanks for the feedback, will point my customers to use xslt formatter instead. Also in develop, it’s already changed to use xslt formatter for full view (https://github.com/geonetwork/core-geonetwork/commit/bed6086af90ef97e0e0816daf4269b38166da586#diff-0d002d268363f9bda7688240a49872ceR192).
I would vote to remove this feature from develop branch as no longer maintained and pretty unclear how to customise it succesfully. That would remove confusion about development of schemas.
Regards,
Jose García
···
On Tue, Sep 6, 2016 at 11:41 AM, Francois Prunayre <fx.prunayre@anonymised.com> wrote:
–
2016-09-06 10:45 GMT+02:00 Jose Garcia <jose.garcia@anonymised.com>:
Hi
Seem the Groovy formatter allows to configure which root elements to process, like for example:
handlers.roots (‘gmd:distributionInfo//gmd:onLine[1]’, ‘gmd:identificationInfo/*’, ‘gmd:referenceSystemInfo’)
See https://github.com/geonetwork/core-geonetwork/wiki/Schema-Formatters-and-Metadata-Views#groovy-based-formatter
But not really clear if allows to order of the elements to display in the page. For me looks like it processes the xml element in the order defined in the xml and just applies the templates related, but no way to configure if you want to display elements in specific order (apart of root elements maybe).
Does anybody know if this possible? Otherwise, the formatter seem only suitable for full view, but for any page with custom elements, seem completely useless.
If someone can provide some light about this, would be really helpful. The documentation and comments in the code about this feature are not very clear. Thanks.
Jose, I can’t really help on this, but if nobody is maintaining the groovy formatter I would be in favor of using XSLT formatters by default and concentrate on it.
Cheers.
Francois
Regards,
Jose García
–
Vriendelijke groeten / Kind regards,
Jose García
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664
Please consider the environment before printing this email.
GeoNetwork-devel mailing list
GeoNetwork-devel@anonymised.comorge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Vriendelijke groeten / Kind regards,
Jose García
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664
Please consider the environment before printing this email.