LP#1304462: Stop using combined pubinfo for search results
authorBen Shum <bshum@biblio.org>
Fri, 11 Apr 2014 03:36:37 +0000 (23:36 -0400)
committerBen Shum <bshum@biblio.org>
Fri, 8 Aug 2014 00:08:55 +0000 (20:08 -0400)
Remove one of the two places we define the pubinfo variable in misc_util.tt2
and then change the way search results pull in publisher data.

Signed-off-by: Ben Shum <bshum@biblio.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates/opac/parts/misc_util.tt2
Open-ILS/src/templates/opac/parts/result/table.tt2

index 9fc373e..6788c75 100644 (file)
         END;
         args.pubdate = (args.pubdates.size) ? args.pubdates.0 : '';
 
-        # Full publisher info
-        args.pubinfo = "$args.pubplace $args.publisher $args.pubdate";
-
         # Get RDA Copyright Info.
         args.copyrights = [];
         FOR sub IN xml.findnodes('//*[@tag="264" and @ind2="4"]/*[@code="c"]');
index cd7365d..ba4f52e 100644 (file)
@@ -168,12 +168,12 @@ END;
                                                         [% IF CGI.param('detail_record_view') %]
                                                         <!-- These fields are visible when viewing the results page in 'detailed' mode -->
 
-                                                        [% IF attrs.pubinfo %]
+                                                        [% IF attrs.publisher %]
                                                             <tr name="results_pub_tr">
                                                                 <td valign="top">
                                                                     <strong>[% l('Publisher:') %]</strong>
                                                                 </td>
-                                                                <td>[% attrs.pubinfo | html %]
+                                                                <td>[% attrs.pubplace | html; %] [% attrs.publisher | html; %] [% attrs.pubdate | html; %]
 [%-
 FOR entry IN attrs.graphic_pubinfos;
     FOR alt IN entry.graphic;