Bug 22633: Link barcodes in hold summary in patron account to moredetail page
authorKatrin Fischer <katrin.fischer.83@web.de>
Wed, 3 Apr 2019 19:47:09 +0000 (21:47 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 13 Jun 2019 11:33:32 +0000 (12:33 +0100)
Bug 21070 links the barcode on holds to the item on moredetail.pl.
This patch makes the same change to the hold lists in the staff
patron account.

To test:
- Create some holds, have at least
  - one item level hold
  - one hold waiting for pick-up
- Take a look at the details and checkouts tabs
  in the patron account on staff side
- Verify that the barcodes link to the record detail page
- Apply patch
- Verify the barcodes now link to the moredetail page

Signed-off-by: Axel Amghar <axel.amghar@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

koha-tmpl/intranet-tmpl/prog/js/holds.js

index 3cc30a2..8fe145e 100644 (file)
@@ -54,11 +54,11 @@ $(document).ready(function() {
                         "mDataProp": function( oObj ) {
                             var data = "";
                             if ( oObj.barcode ) {
-                                data += " <a href='/cgi-bin/koha/catalogue/detail.pl?biblionumber="
+                                data += " <a href='/cgi-bin/koha/catalogue/moredetail.pl?biblionumber="
                                   + oObj.biblionumber
                                   + "&itemnumber="
                                   + oObj.itemnumber
-                                  + "#"
+                                  + "#item"
                                   + oObj.itemnumber
                                   + "'>"
                                   + oObj.barcode.escapeHtml()