OpenWIS / openwis

http://openwis.github.io/openwis
GNU General Public License v3.0
11 stars 15 forks source link

OAI-PMH: Time format and resumptionToken #294

Open benjaminsaclier opened 6 years ago

benjaminsaclier commented 6 years ago

Date format of expirationDate in resumptionToken, is not compliant with OAIPMH standard. Example from a OAI-PMH ListIdentifiers request:

http://wispi.meteo.fr/openwis-user-portal/srv/oaipmh?verb=ListIdentifiers&resumptionToken=WIS-GISC-OFFENBACH/-/oai_dc/-//-//-/10qnnxbp4395b/-/100

resumptionToken element from this answer :

WIS-GISC-OFFENBACH/-/oai_dc/-//-//-/10qnnxbp4395b/-/200

The date format do not respect the OAI-PMH standard, the Z is missing at the end of the date :

A resumptionToken in a protocol reply may include an optional argument expirationDate, which is expressed in UTC. This is encoded using the "Complete date plus hours, minutes, and seconds" variant of ISO8601. This format is YYYY-MM-DDThh:mm:ssZ.

Without "Z" it may confuse OAI-PMH client who canno't determine if it's local time or not.

Benjamin

woollattd commented 6 years ago

Do you know if this an issue with Geonetwork function? or it's configuration?

benjaminsaclier commented 6 years ago

It's not a configuration, it's source code. Don't know if Geonetwork or Openwis but it something very quick to correct for a developer.

davidpodeur commented 2 years ago

Still open.