#95 closed enhancement (fixed)
repository items and sitemaps
Reported by: | tomkralidis | Owned by: | josegar |
---|---|---|---|
Priority: | minor | Milestone: | v2.5.1 |
Component: | General | Version: | |
Keywords: | Cc: |
Description
I think it would be valuable to be able to (optionally) expose GN repository resources with the sitemap.xml format [1]. Something like:
http://host/geonetwork/srv/en/portal.sitemap?format=xml
...where format can control XML (FGDC/ISO/DC/etc.) or HTML output.
...can return a sitemap document which folks can submit to search engine crawlers.
I implemented this in Python as proof of concept. Basic steps:
- query database with
"select id, schemaId, changeDate from Metadata where isTemplate = 'n'"
Return XML like:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:geo="http://www.google.com/geo/schemas/sitemap/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0. 9/sitemap.xsd"> <url> <loc>http://host/geonetwork/srv/en/fgdc.xml?id=194</loc> <lastmod>2009-04-09T15:15:04</lastmod> <geo:geo> <geo:format>fgdc-std</geo:format> </geo:geo> </url> ... </urlset>
The value in /urlset/url/loc would be either XML (the process would have to figure out the schemaId, and then create the URL appropriately), or HTML (e.g. http://host/geonetwork/srv/en/metadata.show?id=194).
Change History (5)
comment:1 by , 16 years ago
Milestone: | → v2.5.0 |
---|
comment:2 by , 15 years ago
Milestone: | v2.5.0 → v2.5.1 |
---|---|
Priority: | major → minor |
comment:3 by , 15 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Added portal.sitemap service:
http://host/geonetwork/srv/en/portal.sitemap?format=xml
Format parameter: xml (default, not required to specify it) and html
Feature for new version