Hi
I created some new rules for urlrewrite to allow unified RESTful access to metadata records in xml, pdf, mef and html formats. Any suggestion on the urls format or additional rules to add is welcome. Here are the actual rules defined with examples on usage:
Retrieves mef format for a metadata.
Example URL: [http://localhost:8080/geonetwork/metadata/da165110-88fd-11da-a88f-000d939bc5d8.zip](http://localhost:8080/geonetwork/metadata/da165110-88fd-11da-a88f-000d939bc5d8.zip)
^/metadata/(.*)/(.*).zip$
/srv/$1/mef.export?uuid=$2
Retrieves xml format for a metadata.
Example URL: [http://localhost:8080/geonetwork/metadata/da165110-88fd-11da-a88f-000d939bc5d8.xml](http://localhost:8080/geonetwork/metadata/da165110-88fd-11da-a88f-000d939bc5d8.xml)
^/metadata/(.*)/(.*).xml$
/srv/$1/xml.metadata.get?uuid=$2
Retrieves pdf format for a metadata.
Example URL: [http://localhost:8080/geonetwork/metadata/da165110-88fd-11da-a88f-000d939bc5d8.pdf](http://localhost:8080/geonetwork/metadata/da165110-88fd-11da-a88f-000d939bc5d8.pdf)
^/metadata/(.*)/(.*).pdf$
/srv/$1/pdf?uuid=$2
Retrieves html format for a metadata.
Example URL: [http://localhost:8080/geonetwork/metadata/da165110-88fd-11da-a88f-000d939bc5d8](http://localhost:8080/geonetwork/metadata/da165110-88fd-11da-a88f-000d939bc5d8)
Using type=“forward” seem not fine with the redirect done in the home service to classic/widgets UI
^/metadata/(.)/(.)$
%{context-path}/srv/$1/home?uuid=$2
Thanks and regards,
Jose García
–
GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer and GeoNetwork. Visit http://geocat.net for details.
Jose García
GeoCat bv
Veenderweg 13
6721 WD Bennekom
The Netherlands
http://GeoCat.net
Have these been added and if so which file? I looked at the urlrewrite.xml file and they are not in there.
I guess they are to be added.
URLs looks good, although examples need the locale added. Otherwise +1. I would like to add some for the metadata formatters as well.
Jesse
On Thu, Apr 19, 2012 at 9:13 AM, Jose Garcia <jose.garcia@anonymised.com> wrote:
Hi
I created some new rules for urlrewrite to allow unified RESTful access to metadata records in xml, pdf, mef and html formats. Any suggestion on the urls format or additional rules to add is welcome. Here are the actual rules defined with examples on usage:
Retrieves mef format for a metadata.
Example URL: [http://localhost:8080/geonetwork/metadata/da165110-88fd-11da-a88f-000d939bc5d8.zip](http://localhost:8080/geonetwork/metadata/da165110-88fd-11da-a88f-000d939bc5d8.zip)
^/metadata/(.*)/(.*).zip$
/srv/$1/mef.export?uuid=$2
Retrieves xml format for a metadata.
Example URL: [http://localhost:8080/geonetwork/metadata/da165110-88fd-11da-a88f-000d939bc5d8.xml](http://localhost:8080/geonetwork/metadata/da165110-88fd-11da-a88f-000d939bc5d8.xml)
^/metadata/(.*)/(.*).xml$
/srv/$1/xml.metadata.get?uuid=$2
Retrieves pdf format for a metadata.
Example URL: [http://localhost:8080/geonetwork/metadata/da165110-88fd-11da-a88f-000d939bc5d8.pdf](http://localhost:8080/geonetwork/metadata/da165110-88fd-11da-a88f-000d939bc5d8.pdf)
^/metadata/(.*)/(.*).pdf$
/srv/$1/pdf?uuid=$2
Retrieves html format for a metadata.
Example URL: [http://localhost:8080/geonetwork/metadata/da165110-88fd-11da-a88f-000d939bc5d8](http://localhost:8080/geonetwork/metadata/da165110-88fd-11da-a88f-000d939bc5d8)
Using type=“forward” seem not fine with the redirect done in the home service to classic/widgets UI
^/metadata/(.)/(.)$
%{context-path}/srv/$1/home?uuid=$2
Thanks and regards,
Jose García
–
GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer and GeoNetwork. Visit http://geocat.net for details.
Jose García
GeoCat bv
Veenderweg 13
6721 WD Bennekom
The Netherlands
http://GeoCat.net
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know…and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
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