From a749e2129198228691bb8404d7c38715657db0de Mon Sep 17 00:00:00 2001 From: Ben Shum Date: Thu, 10 Apr 2014 23:54:31 -0400 Subject: [PATCH] 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 25a8f713d6..e4ee991d05 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -141,6 +141,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 -%] @@ -183,6 +186,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