LP#1454884 Hold placed on grouped metabib result displays wrong title
authorTerran McCanna <tmccanna@georgialibraries.org>
Wed, 2 Mar 2016 17:16:43 +0000 (12:16 -0500)
committerKathy Lussier <klussier@masslnc.org>
Fri, 4 Mar 2016 16:46:15 +0000 (11:46 -0500)
Prior to this change, a full/extended title displayed even on metarecord
holds that had different extended titles, which sometimes led to situations
where a video's full title displayed on a book hold, or vice versa. This
change displays the short version of the title on metarecord holds and
the full version on individual record holds.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/opac/parts/place_hold.tt2

index 8fa5c44..55f1184 100644 (file)
                     [% IF !this_hold_disallowed %]
                     <input type="hidden" name="hold_target" value="[% hdata.target.id | html %]" />
                     [% END %]
-                    <div class='hold-items-list-title'>[% attrs.title_extended | html %]</div>
+                    <div class='hold-items-list-title'>
+                                           <!-- If hold is for grouped formats/editions (metarecord), show short title - else, show complete title --> 
+                                           [% IF CGI.param('hold_type') == 'M' %]
+                                                   [% attrs.title | html %]
+                                               [% ELSE %]
+                                                   [% attrs.title_extended | html %]
+                                               [% END %]
+                    </div>
                     [% IF hdata.parts AND !this_hold_disallowed %]
                         [% IF hdata.parts.size > 0 %]
                         <div style='padding-left: 10px; padding-bottom: 15px;'>