Bug 10597

Summary: Search to hold button broken on record details
Product: Koha Reporter: Kyle M Hall (khall) <kyle>
Component: Hold requestsAssignee: Kyle M Hall (khall) <kyle>
Status: CLOSED FIXED QA Contact: Jonathan Druart <jonathan.druart>
Severity: major    
Priority: P5 - low CC: gmcharlt, jonathan.druart, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 10597 - Search to hold button broken on record details
[SIGNED-OFF] Bug 10597 - Search to hold button broken on record details
Bug 10597 - Search to hold button broken on record details

Description Kyle M Hall (khall) 2013-07-16 16:49:57 UTC
The holds button in cat-toolbar is broken for "search to hold". It is a split button rather than a dropdown button. Clicking the caret works fine, but clicked the button sends you to the marc editor!
Comment 1 Kyle M Hall (khall) 2013-07-16 16:53:39 UTC Comment hidden (obsolete)
Comment 2 Srdjan Jankovic 2013-07-17 00:20:15 UTC Comment hidden (obsolete)
Comment 3 Jonathan Druart 2013-07-18 11:56:38 UTC
QA comment:
Simple patch, works as expected.
Marked as Passed QA.
Comment 4 Jonathan Druart 2013-07-18 11:56:51 UTC
Created attachment 19760 [details] [review]
Bug 10597 - Search to hold button broken on record details

The holds button in cat-toolbar is broken for "search to hold". It is a
split button rather than a dropdown button. Clicking the caret works
fine, but clicked the button sends you to the marc editor!

Test Plan:
1) View a patron's details page
2) Click 'search to hold'
3) Search for something
4) On the results page, click a result line's title link (
    catalogue/detail.pl )
5) Note the "Place hold" button is a split button, click the left half
    of the button, note it redirects you to the editor.
6) Apply this patch
7) Repeat steps 1-5

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Comment 5 Galen Charlton 2013-07-18 14:02:41 UTC
Pushed to master.  Thanks, Kyle!

I note that there are two other staff templates that contain the text 'place hold for':

./modules/catalogue/results.tt
./modules/virtualshelves/shelves.tt

Making a parameterized template to implement the widget would be a Good Thing for consistency's sake.
Comment 6 Tomás Cohen Arazi (tcohen) 2013-08-14 14:33:35 UTC
This patch has been pushed to 3.12.x, will be in 3.12.4.

Thanks Kyle!