From ad0234e2b6663114b06db2cd39cf8452d6de1f67 Mon Sep 17 00:00:00 2001 From: Joe Wicentowski Date: Tue, 15 Oct 2024 12:59:35 -0400 Subject: [PATCH] fix: last-modified error on sesqui document pages --- 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") },