From b13c80846a7e0d75e70d71b96f43ace80ef10deb Mon Sep 17 00:00:00 2001 From: Mason James Date: Mon, 16 Sep 2013 15:12:16 +1200 Subject: [PATCH] Bug 10825 - detail.tt displays duplicated enumchron values for serial items Content-Type: text/plain; charset="utf-8" TEST PLAN --------- 1) Find a data point that displays like the picture on this bug report. 2) Apply the patch 3) Refresh the screen 4) Does it look like the second picture now with the duplication removed? 5) Run koha qa test tools I did attempt with default and blank for the XSLT system preferences for the staff client. This accounts for Nicole's comment #12. Signed-off-by: Mason James --- .../intranet-tmpl/prog/en/modules/catalogue/detail.tt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 1e1fcd2..263145b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -658,11 +658,17 @@ function verify_images() { [% IF ( volinfo ) %] [% IF ( itemdata_enumchron ) %] - [% IF ( item.enumchron ) %] + [% IF item.enumchron && item.serialseq %] [% item.enumchron %] - [% IF ( item.serialseq ) %] -- [% END %] + [% IF ( item.serialseq && + item.enumchron!=item.serialseq ) %] + -- [% item.serialseq %] + [% END %] + [% ELSIF item.enumchron %] + [% item.enumchron %] + [% ELSIF item.serialseq %] + [% item.serialseq %] [% END %] - [% item.serialseq %] [% IF ( item.publisheddate ) %] ([% item.publisheddate %])[% END %] [% END %] -- 1.7.10.4