From: Bill Erickson Date: Wed, 29 Oct 2014 21:07:58 +0000 (-0400) Subject: KMAIN-254: TCN display in search results list X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=820653bfffab21fcae056d212364372081dd74c9;p=working%2FEvergreen.git KMAIN-254: TCN display in search results list Cross-port: 8c81b2f --- 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:') %]