[Bug 15516] Allow to place a hold on first available item from a group of titles
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15516 --- Comment #475 from David Cook <dcook@prosentient.com.au> --- Comment on attachment 162079 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162079 Bug 15516: Allow to reserve first available item from a group of titles Review of attachment 162079: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=15516&attachment=162079) ----------------------------------------------------------------- ::: circ/view_holdsqueue.pl @@ +63,5 @@
+ biblionumber => $item->{biblionumber} + }, + { order_by => 'reservedate' } + )->next; + $item->{hold_group_id} = $related_hold ? $related_hold->hold_group_id : undef;
Ah, the lack of this block is why view_holdsqueue.tt doesn't work anymore... This is problematic anyways. I wonder if the tmp_holdsqueue table should store the reserve_id, although I don't quite understand the point of the tmp_holdsqueue table... ::: koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt @@ +197,4 @@
[% ELSE %] <strong><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% itemsloo.itemnumber | uri %]&biblionumber=[% itemsloo.biblionumber | uri %]#item[% itemsloo.itemnumber | uri %]">[% itemsloo.barcode | uri %]</a></strong> <em>or any available</em> [% END %] + [% IF itemsloo.hold_group_id %]
This doesn't work because hold_group_id doesn't appear in the tmp_holdsqueue table. With this patch, the Holds Queue will throw a 500 error if it has any content to show. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org