Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#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).

[1] http://www.sitemaps.org/protocol.php

Change History (5)

comment:1 by ticheler, 15 years ago

Milestone: v2.5.0

Feature for new version

comment:2 by ticheler, 14 years ago

Milestone: v2.5.0v2.5.1
Priority: majorminor

comment:3 by josegar, 14 years ago

Owner: changed from geonetwork-devel@… to josegar
Status: newassigned

comment:4 by josegar, 14 years ago

Resolution: fixed
Status: assignedclosed

Added portal.sitemap service:

http://host/geonetwork/srv/en/portal.sitemap?format=xml

Format parameter: xml (default, not required to specify it) and html

comment:5 by mcoudert, 14 years ago

Committed revision 6031.

Note: See TracTickets for help on using tickets.