Use other 264 types in search results if publisher is not available user/bshum/RDA264-search-results
authorBen Shum <bshum@biblio.org>
Fri, 11 Apr 2014 03:54:31 +0000 (23:54 -0400)
committerBen Shum <bshum@biblio.org>
Fri, 11 Apr 2014 04:08:44 +0000 (00:08 -0400)
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 <bshum@biblio.org>
Open-ILS/src/templates/opac/parts/result/table.tt2

index 25a8f71..e4ee991 100644 (file)
@@ -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;
 -%]
 </td>
                                                             </tr>
+                                                        [% ELSIF attrs.producer %]
+                                                            <tr name="results_pub_tr">
+                                                                <td valign="top">
+                                                                    <strong>[% l('Producer:') %]</strong>
+                                                                </td>
+                                                                <td>[% attrs.prodplace | html; %] [% attrs.producer | html; %] [% attrs.proddate | html; %]</td>
+                                                            </tr>
+                                                        [% ELSIF attrs.distributor %]
+                                                            <tr name="results_pub_tr">
+                                                                <td valign="top">
+                                                                    <strong>[% l('Distributor:') %]</strong>
+                                                                </td>
+                                                                <td>[% attrs.distplace | html; %] [% attrs.distributor | html; %] [% attrs.distdate | html; %]</td>
+                                                            </tr>
+                                                        [% ELSIF attrs.manufacturer %]
+                                                            <tr name="results_pub_tr">
+                                                                <td valign="top">
+                                                                    <strong>[% l('Manufacturer:') %]</strong>
+                                                                </td>
+                                                                <td>[% attrs.manplace | html; %] [% attrs.manufacturer | html; %] [% attrs.mandate | html; %]</td>
+                                                            </tr>
                                                         [% END %]
                                                         [% IF attrs.isbns.size > 0 %]
                                                             <tr name="results_isbn_tr">