Bug 21070: request.pl details links to biblio instead of moredetail.pl for that item
authorOwen Leonard <oleonard@myacpl.org>
Thu, 7 Mar 2019 15:06:26 +0000 (15:06 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 13 Mar 2019 03:43:16 +0000 (03:43 +0000)
This patch alters the hold summary page so that links to records with
item-level holds go to the item detail page instead of the bibliographic
detail page. There is already a link to the bibliographic detail page in
the page heading.

To test, apply the patch and place or locate an item-level hold. In the
list of existing holds for that record, the linked barcode on the
item-level hold should take you to the corresponding item detail page.

Signed-off-by: Lisette <lisettes@latahlibrary.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc

index 5a50892..d168455 100644 (file)
                     [% IF ( hold.item_level_hold ) %]
                         <i>
                             Only item
-                            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% hold.biblionumber | uri %]">
+                            <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% hold.biblionumber | uri %]&amp;itemnumber=[% hold.itemnumber | uri %]#item[% hold.itemnumber | uri %]">
                                 [% IF ( hold.barcodenumber ) %]
                                     [% hold.barcodenumber | html %]
                                     <input type="hidden" name="itemnumber" value="[% hold.itemnumber | html %]" />