From e73213e2e0cb07377dc1c83ef8b1a42401f764cc Mon Sep 17 00:00:00 2001 From: "Michael B. Klein" Date: Mon, 7 Aug 2023 22:21:26 +0000 Subject: [PATCH] Make OAI response compliant with https://validator.oaipmh.com/ --- src/handlers/oai/verbs.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/handlers/oai/verbs.js b/src/handlers/oai/verbs.js index d60b10d2..7f982a56 100644 --- a/src/handlers/oai/verbs.js +++ b/src/handlers/oai/verbs.js @@ -36,7 +36,6 @@ function header(work) { fields = { ...fields, setSpec: work.collection.id, - setName: work.collection.title, }; } @@ -120,9 +119,10 @@ const identify = async (url) => { repositoryName: "Northwestern University Libraries", baseURL: url, protocolVersion: "2.0", + adminEmail: "repository@northwestern.edu", earliestDatestamp: earliestDatestamp, deletedRecord: "no", - granularity: "YYYY-MM-DDThh:mm:ss.ffffffZ", + granularity: "YYYY-MM-DDThh:mm:ssZ", }, }, }; @@ -177,7 +177,7 @@ const listIdentifiers = async ( _text: url, }, ListIdentifiers: { - headers: { header: headers }, + header: headers, resumptionToken: resumptionTokenElement, }, }, @@ -303,7 +303,10 @@ const listSets = async (url) => { const sets = hits.map((hit) => { const collection = hit._source; - return { setSpec: collection.id, setName: collection.title }; + return { + setSpec: collection.id, + setName: collection.title, + }; }); const obj = {