lp1403966 Remove publication-specific information from metarecord results page user/kmlussier/lp1403966-remove-pub-info-from-mr-results
authorKathy Lussier <klussier@masslnc.org>
Thu, 28 May 2015 02:11:49 +0000 (22:11 -0400)
committerKathy Lussier <klussier@masslnc.org>
Thu, 28 May 2015 17:47:49 +0000 (13:47 -0400)
The records that make up a matarecord search result typically contain different
publication information. Therefore, we should remove the master record's
specific publication information from that search results page.

Test plan
Prior to loading the patch, conduct a search on the Concerto dataset
for "brahms piano concerto no. 1" with "Group Formats and Editions" turned on.
In the brief view, you will see a call number and, in the more details view, you
will see publisher and physical description information. Run the same search
after loading the patch, and you will no longer see that information.

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/opac/parts/result/table.tt2

index 6cbe41e..41e0492 100644 (file)
@@ -161,13 +161,15 @@ END;
                                                        role="presentation"
                                                        title="[% l('Record Holdings Summary') %]"
                                                        class="table_no_border_space table_no_cell_pad table_no_border results_info_table">
-                                                        [% IF args.holdings.size > 0 %]
+                                                        [% UNLESS rec.mmr_id %]
+                                                           [% IF args.holdings.size > 0 %]
                                                         <tr name='bib_cn_list' class='result_table_title_cell'>
                                                             <td valign='top'>
                                                                 <strong>[% l('Call number:') %]</strong>
                                                             </td>
                                                             <td>[% args.holdings.0.label | html %]</td>
                                                         </tr>
+                                                          [% END %] 
                                                         [% END %]
 
                                                         [%- IF CGI.param('detail_record_view')
@@ -175,7 +177,8 @@ END;
                                                             OR show_more_details.default == 'hide');
                                                         -%]
                                                         <!-- These fields are visible when viewing the results page in 'detailed' mode -->
-
+                                                        [% UNLESS rec.mmr_id %]
+                                                        <!-- Do not show publication-specific information on a metarecord search results page -->
                                                         [% IF attrs.publisher %]
                                                             <tr name="results_pub_tr">
                                                                 <td valign="top">
@@ -302,6 +305,7 @@ END;
                                                                 <td><a href="[% uri.href %]">[% uri.link | html %]</a>[% ' - ' _ uri.note | html IF uri.note %]</td>
                                                             </tr>
                                                             [% END %]
+                                                         [% END %]
                                                             [%- IF args.holdings.size > 0;
                                                                 FOREACH copy IN args.holdings;
                                                                     IF copy.part_label != '';