TPac; display mono part in account holds list/edit
authorBill Erickson <berick@esilibrary.com>
Fri, 7 Oct 2011 20:11:33 +0000 (16:11 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 21 Dec 2011 16:18:10 +0000 (11:18 -0500)
Part label is appended to the title, wrapped in (parens).

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/templates/opac/myopac/holds.tt2
Open-ILS/src/templates/opac/myopac/holds/edit.tt2

index 56327ee..bb0e228 100644 (file)
                         <option id='myopac_holds_actions_none' value=''>
                         -- [% l("Actions for selected holds") %] --
                         </option>
-                        <option value='suspend'>
-                            [% l("Suspend") %]
-                        </option>
-                        <option value='activate'>
-                            [% l("Activate") %]
-                        </option>
-                        <!-- XXX maybe later <option value='thaw_date'>
-                            [% l("Set Active Date") %]
-                        </option> -->
-                        <option value='cancel'>
-                            [% l("Cancel") %]
-                        </option>
+                        <option value='suspend'>[% l("Suspend") %]</option>
+                        <option value='activate'>[% l("Activate") %]</option>
+                        <!-- XXX maybe later <option value='thaw_date'>[% l("Set Active Date") %]</option> -->
+                        <option value='cancel'>[% l("Cancel") %]</option>
                     </select>
                 </td>
                 <td width="1" style="padding-left:9px;">
                     </td>
                     <td width="138">
                         <div style="margin-top:10px;margin-bottom:10px;">
-                            <a href="[% ctx.opac_root %]/record/[% hold.hold.bre_id %]">[% attrs.title | html %]</a>
+                            [% 
+                                title = attrs.title;
+                                IF ahr.hold_type == 'P';
+                                    title = l('[_1] ([_2])', title, hold.hold.part.label);
+                                END;
+                            %]
+                            <a href="[% ctx.opac_root %]/record/[% hold.hold.bre_id %]">[% title | html %]</a>
                         </div>
                     </td>
                     <td width="123">
index fc2d3d9..eb2612e 100644 (file)
         <a href="[% ctx.opac_root %]/myopac/holds">[% l('List all holds') %]</a>
     </div>
     <div id="hold_editor">
-        [% IF hold %]
-            <h1>[% attrs.title | html %]</h1>
+        [%  IF hold;
+                title = attrs.title;
+                IF ahr.hold_type == 'P';
+                    title = l('[_1] ([_2])', title, hold.hold.part.label);
+                END 
+        %]
+            <h1>[% title | html %]</h1>
             <h2>[% attrs.author | html %]</h2>
             [% IF attrs.format_icon %]<p>
                 <strong>[% l('Format:') %]</strong>