From f16450b1f5dc2340750ae72fe7693777b4dbefcc Mon Sep 17 00:00:00 2001 From: tworrall Date: Wed, 7 Dec 2011 15:08:01 +0000 Subject: [PATCH] NIHVIVO-3444 corrected citation format for when there is only a resource name --- .../individual/propStatement-authorInAuthorship.ftl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/productMods/templates/freemarker/body/partials/individual/propStatement-authorInAuthorship.ftl b/productMods/templates/freemarker/body/partials/individual/propStatement-authorInAuthorship.ftl index 1498a97e..c15d96da 100644 --- a/productMods/templates/freemarker/body/partials/individual/propStatement-authorInAuthorship.ftl +++ b/productMods/templates/freemarker/body/partials/individual/propStatement-authorInAuthorship.ftl @@ -97,6 +97,13 @@ - ${resourceTitle} ${citationDetails} <@dt.yearSpan "${statement.dateTime!}" /> + <#-- if there's no citation details, we want to strip away the closing period that's placed after the + the resource name in the resourceTitle section above + --> + <#if citationDetails?has_content> + ${resourceTitle} ${citationDetails} <@dt.yearSpan "${statement.dateTime!}" /> + <#else> + ${resourceTitle?substring(0,resourceTitle?last_index_of(".") - 1)} <@dt.yearSpan "${statement.dateTime!}" /> +