From a001f15c0b7a4f05abf92cd3fedf1f761ebdfb7b Mon Sep 17 00:00:00 2001 From: Ben Shum Date: Thu, 10 Apr 2014 23:54:31 -0400 Subject: [PATCH] LP#1304462: Use other 264 types in search results if publisher is not available In the event that the publisher information is not part of the record, use other types of 264 tags for producer, distributor, or manufacturer. Also employ the copyright if there is no available publication date. Signed-off-by: Ben Shum --- Open-ILS/src/templates/opac/parts/result/table.tt2 | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index ba4f52ec4f..25514e4188 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -148,6 +148,9 @@ END; IF attrs.pubdate; pubdate_clean = attrs.pubdate | html; l(" ([_1])", pubdate_clean); + ELSIF attrs.copyright; + copyright_clean = attrs.copyright | html; + l(" ([_1])", copyright_clean); END; END -%] @@ -191,6 +194,27 @@ END; -%] + [% ELSIF attrs.producer %] + + + [% l('Producer:') %] + + [% attrs.prodplace | html; %] [% attrs.producer | html; %] [% attrs.proddate | html; %] + + [% ELSIF attrs.distributor %] + + + [% l('Distributor:') %] + + [% attrs.distplace | html; %] [% attrs.distributor | html; %] [% attrs.distdate | html; %] + + [% ELSIF attrs.manufacturer %] + + + [% l('Manufacturer:') %] + + [% attrs.manplace | html; %] [% attrs.manufacturer | html; %] [% attrs.mandate | html; %] + [% END %] [% IF attrs.isbns.size > 0 %] -- 2.11.0