From c222c18265cd86d909c83dd68fcc60ced37b3f4f Mon Sep 17 00:00:00 2001 From: Luis Faria Date: Thu, 7 Apr 2016 10:41:10 +0100 Subject: [PATCH] improving EAD 2002 template to cope with empty dates --- src/main/resources/templates/ead2002.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/main/resources/templates/ead2002.xml b/src/main/resources/templates/ead2002.xml index d39b3f70..8e004622 100644 --- a/src/main/resources/templates/ead2002.xml +++ b/src/main/resources/templates/ead2002.xml @@ -24,7 +24,19 @@ {{title}} {{id}} - {{dateInitial}}/{{dateFinal}} + {{#dateInitial}} + {{#dateFinal}} + {{dateInitial}}/{{dateFinal}} + {{/dateFinal}} + {{^dateFinal}} + {{dateInitial}} + {{/dateFinal}} + {{/dateInitial}} + {{^dateInitial}} + {{#dateFinal}} + {{dateFinal}} + {{/dateFinal}} + {{/dateInitial}} {{producer}} {{creator}} {{language}}