Bug 29899: Show public note to patrons when placing a hold
authorOwen Leonard <oleonard@myacpl.org>
Tue, 18 Jan 2022 17:57:22 +0000 (17:57 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 28 Jan 2022 21:09:07 +0000 (11:09 -1000)
This patch adds public note to the table of information shown about
items when placing a hold on a specific item in the OPAC.

To test, apply the patch and check Administration -> Circulation and
fine rules. You should have at least one patron category/item type
configured to allow OPAC item level holds.

- Modify an item to add information to the "Public note" field.
- Locate that record in the OPAC and place a hold on it.
- On the "Placing hold" page, click "Show more options" and "A specific
  item."
- In the table of items you should see a "Notes" column showing the
  information you added to the item.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt
opac/opac-reserve.pl

index edc33cc..6b65b4c 100644 (file)
                                                         [% IF ( itemdata_enumchron ) %]
                                                             <th>Vol info</th>
                                                         [% END %]
+                                                        <th>Notes</th>
                                                         <th>Information</th>
                                                     </tr>
 
                                                             [% IF ( itemdata_enumchron ) %]
                                                                 <td class="vol_info">[% itemLoo.enumchron | html %]</td>
                                                             [% END %]
+                                                            <td class="itemnotes">
+                                                                [% itemLoo.itemnotes | html %]
+                                                            </td>
                                                             <td class="information">
                                                                 [% IF ( itemLoo.dateDue ) %]
                                                                     <span class="checkedout">Due [% itemLoo.dateDue | html %]</span>
index 97ea887..47f91c0 100755 (executable)
@@ -490,6 +490,7 @@ foreach my $biblioNum (@biblionumbers) {
         $itemLoopIter->{enumchron} = $itemInfo->{enumchron};
         $itemLoopIter->{ccode} = $itemInfo->{ccode};
         $itemLoopIter->{copynumber} = $itemInfo->{copynumber};
+        $itemLoopIter->{itemnotes} = $itemInfo->{itemnotes};
         if ($itemLevelTypes) {
             $itemLoopIter->{translated_description} = $itemInfo->{translated_description};
             $itemLoopIter->{itype} = $itemInfo->{itype};