From 22ff28a91023edc113666f13688b1c0438fd8ce6 Mon Sep 17 00:00:00 2001 From: Joe Wicentowski Date: Tue, 15 Oct 2024 12:50:01 -0400 Subject: [PATCH] fix last-modified error on sesqui document pages e.g. https://history.state.gov/historicaldocuments/frus-history/documents/1959-11-06-hac-meeting-minutes --- modules/config.xqm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/config.xqm b/modules/config.xqm index cf8c5c8d..00872125 100644 --- a/modules/config.xqm +++ b/modules/config.xqm @@ -680,6 +680,9 @@ declare variable $config:PUBLICATIONS := } }, "frus-history-documents": map { + "collection": $config:FRUS_HISTORY_DOCUMENTS_COL, + "document-last-modified": function($document-id) { xmldb:last-modified($config:FRUS_HISTORY_DOCUMENTS_COL, $document-id || '.xml') }, + "document-created": function($document-id) { xmldb:created($config:FRUS_HISTORY_DOCUMENTS_COL, $document-id || '.xml') }, "next": frus-history:get-next-doc#1, "previous": frus-history:get-previous-doc#1, "select-document": function($document-id) { doc($config:FRUS_HISTORY_DOCUMENTS_COL || "/" || $document-id || ".xml") },