From 820653bfffab21fcae056d212364372081dd74c9 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 29 Oct 2014 17:07:58 -0400 Subject: [PATCH] KMAIN-254: TCN display in search results list Cross-port: 8c81b2f --- KCLS/openils/var/templates_kcls/opac/parts/misc_util.tt2 | 12 ++++++++++++ KCLS/openils/var/templates_kcls/opac/parts/result/table.tt2 | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/KCLS/openils/var/templates_kcls/opac/parts/misc_util.tt2 b/KCLS/openils/var/templates_kcls/opac/parts/misc_util.tt2 index b2ee74362b..60ebd7b2de 100644 --- a/KCLS/openils/var/templates_kcls/opac/parts/misc_util.tt2 +++ b/KCLS/openils/var/templates_kcls/opac/parts/misc_util.tt2 @@ -160,6 +160,18 @@ END; args.pubdate = (args.pubdates.size) ? args.pubdates.0 : ''; + # Copyright | KCLS requested copyright date display + args.copyright = (args.pubdates.size) ? xml.findnodes('//*[@tag="264" and @ind2="4"]/*[@code="c"]').textContent : ''; + + + # TCN | KCLS requested TCN display + args.tcnlist = []; + tcn_hunt = xml.findnodes('//*[@tag="901"]/*[@code="c"]'); + FOR sub IN tcn_hunt; + args.tcnlist.push(sub.textContent); + END; + args.tcn = (args.tcnlist.size) ? args.tcnlist.0 : ''; + # Full publisher info args.pubinfo = "$args.pubplace $args.publisher $args.pubdate"; diff --git a/KCLS/openils/var/templates_kcls/opac/parts/result/table.tt2 b/KCLS/openils/var/templates_kcls/opac/parts/result/table.tt2 index 9375560f06..04669f22af 100644 --- a/KCLS/openils/var/templates_kcls/opac/parts/result/table.tt2 +++ b/KCLS/openils/var/templates_kcls/opac/parts/result/table.tt2 @@ -121,6 +121,12 @@ [% attrs.pubdate | html %] + + + [% l('TCN:') %] + + [% attrs.tcn | html %] + [% ELSIF CGI.param('detail_record_view') %] @@ -135,6 +141,12 @@ [% attrs.pubdate | html %] + + + [% l('TCN:') %] + + [% attrs.tcn | html %] + [% l('ISBN:') %] -- 2.11.0