From: Ben Shum Date: Fri, 11 Apr 2014 03:54:31 +0000 (-0400) Subject: Use other 264 types in search results if publisher is not available X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a749e2129198228691bb8404d7c38715657db0de;p=working%2FEvergreen.git 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 --- 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 %]