Bug 37618 - Select patron's, then item's home library by default for pickup location when creating bookings
Summary: Select patron's, then item's home library by default for pickup location when...
Status: Failed QA
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Paul Derscheid
QA Contact: Testopia
URL:
Keywords:
Depends on: 37354
Blocks:
  Show dependency treegraph
 
Reported: 2024-08-12 10:07 UTC by Paul Derscheid
Modified: 2024-10-22 14:20 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function: bookings


Attachments
Bug 37618: Select patron's, then item's home library by default for pickup location when creating bookings (7.43 KB, patch)
2024-08-12 16:26 UTC, Paul Derscheid
Details | Diff | Splinter Review
Bug 37618: Select patron's, then item's home library by default for pickup location when creating bookings (7.51 KB, patch)
2024-09-12 11:44 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review
Bug 37618: (follow-up) Inline single use function containsAny and remove definition (1.75 KB, patch)
2024-09-12 13:23 UTC, Paul Derscheid
Details | Diff | Splinter Review
Bug 37618: (follow-up) Remove redundant api call (3.93 KB, patch)
2024-09-12 13:23 UTC, Paul Derscheid
Details | Diff | Splinter Review
Bug 37618: Select patron's, then item's home library by default for pickup location when creating bookings (7.51 KB, patch)
2024-10-22 14:14 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review
Bug 37618: (follow-up) Inline single use function containsAny and remove definition (1.75 KB, patch)
2024-10-22 14:14 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review
Bug 37618: (follow-up) Remove redundant api call (3.94 KB, patch)
2024-10-22 14:14 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Derscheid 2024-08-12 10:07:54 UTC
When working with many bookings per day, always selecting the pickup location can become cumbersome.

I'd suggest using the patron's home library as a preselection within the pickup library field in the bookings creation modal and to fall back onto the item's home library if the patron's home library is not available.

Would you also consider this a sane default?
Comment 1 Paul Derscheid 2024-08-12 16:26:33 UTC
Created attachment 170235 [details] [review]
Bug 37618: Select patron's, then item's home library by default for pickup location when creating bookings
Comment 2 Martin Renvoize (ashimema) 2024-08-15 15:01:32 UTC
I like the direction here.. will swing back around to it once I've wrapped my head around a few other bits in the bookings tree that are on my list for today.
Comment 3 Martin Renvoize (ashimema) 2024-09-12 11:44:16 UTC
Created attachment 171384 [details] [review]
Bug 37618: Select patron's, then item's home library by default for pickup location when creating bookings

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 4 Martin Renvoize (ashimema) 2024-09-12 11:44:56 UTC
Just a rebase so far.. still testing :)
Comment 5 Paul Derscheid 2024-09-12 13:23:14 UTC
Created attachment 171394 [details] [review]
Bug 37618: (follow-up) Inline single use function containsAny and remove definition
Comment 6 Paul Derscheid 2024-09-12 13:23:17 UTC
Created attachment 171395 [details] [review]
Bug 37618: (follow-up) Remove redundant api call
Comment 7 Paul Derscheid 2024-10-21 12:38:51 UTC
Unfortunately there's a bug here that persists the last selected option if neither the patron's nor the item's home library are valid pickup locations.
Comment 8 Katrin Fischer 2024-10-21 12:42:53 UTC
(In reply to Paul Derscheid from comment #7)
> Unfortunately there's a bug here that persists the last selected option if
> neither the patron's nor the item's home library are valid pickup locations.

Thanks for working this out, Paul!
Comment 9 Martin Renvoize (ashimema) 2024-10-22 14:14:02 UTC
Created attachment 173155 [details] [review]
Bug 37618: Select patron's, then item's home library by default for pickup location when creating bookings

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 10 Martin Renvoize (ashimema) 2024-10-22 14:14:04 UTC
Created attachment 173156 [details] [review]
Bug 37618: (follow-up) Inline single use function containsAny and remove definition
Comment 11 Martin Renvoize (ashimema) 2024-10-22 14:14:06 UTC
Created attachment 173157 [details] [review]
Bug 37618: (follow-up) Remove redundant api call
Comment 12 Martin Renvoize (ashimema) 2024-10-22 14:20:49 UTC
This is just a quick rebase and re-arrangement of the bug tree. There's some fixes in bug 37354 around these pickers that pre-exist thing but were only picked up during QA rounds there.. hense the rebase and hope it fixes some of the failure here.

I'll be testing again imminently