From: Ben Shum Date: Fri, 11 Apr 2014 03:54:31 +0000 (-0400) Subject: LP#1304462: 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=771cf4c260551665d009ef5b8557b98e4201060c;p=evergreen%2Fmasslnc.git 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 Signed-off-by: Dan Scott --- 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 %]