Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Nick Clemens ab93008da7
Bug 30687: Allow pickup location to be forced when override is allowed
This is Julian's patch with some extra cleanup to reduce repeated code

If AllowHoldPolicyOverride is enabled and only some pickup locations are
available, you still have the possibility to force one of the others
pickup locations.
But when there are zero pickup locations available, that is not
possible.

This patch change that by always displaying the list of pickup locations
when AllowHoldPolicyOverride is enabled.

Test plan:
1. Apply patch
2. Disable AllowHoldPolicyOverride
3. Create a biblio B with an item I at library A.
4. Configure this library A to not be a pickup location
5. Add a "Default holds policy by item type" for item I type where "Hold
   pickup library match" is "item's home library"
6. Try to place a hold on biblio B
   You should not be able to place a hold because there is no valid
   pickup locations
7. Enable AllowHoldPolicyOverride
8. Try to place a hold on biblio B
   You should now see all valid pickup locations in a dropdown list
   (with an exclamation mark in front of each option) with none selected
   by default
9. Verify you can place a title-level hold and an item-level hold

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-05-12 11:22:49 -03:00
..
acqui Bug 33655: z39.50 search no longer shows search in progress 2023-05-12 11:22:37 -03:00
admin Bug 31557: Add ability for holds queue builder to prioritize either matching a patron's home library to the item's home or holding library 2023-05-12 11:22:47 -03:00
authorities
basket
batch
catalogue Bug 33167: Fix TT comment for better translatability 2023-05-12 11:22:45 -03:00
cataloguing Bug 32766: (QA follow-up) Remove stray p from USE statements 2023-05-12 11:22:44 -03:00
circ Bug 25379: (QA follow-up) Adjust other occurrences and add line break 2023-05-09 11:47:01 -03:00
clubs
course_reserves
erm
errors
ill Bug 22375: (follow-up) Format even more due dates consistently 2023-05-09 11:46:56 -03:00
installer Bug 28267: Add warnings for database row formats 2023-05-05 10:18:35 -03:00
labels
mana
members Bug 33320: Add spacing in Patron modification requests 2023-05-12 11:22:46 -03:00
offline_circ
onboarding
patron_lists Bug 25379: (QA follow-up) Adjust other occurrences and add line break 2023-05-09 11:47:01 -03:00
patroncards
plugins
pos
recalls
reports Bug 33513: Remove whitespace in batch report lists 2023-05-09 10:58:02 -03:00
reserve Bug 30687: Allow pickup location to be forced when override is allowed 2023-05-12 11:22:49 -03:00
reviews
rotating_collections
serials Bug 33512: (follow-up) Check item count before adding add/edit button 2023-05-10 14:19:26 -03:00
services
suggestion
tags
test
tools Bug 33642: Fix 'No log found.' in viewlog 2023-05-12 11:22:39 -03:00
virtualshelves
about.tt Bug 28267: Add warnings for database row formats 2023-05-05 10:18:35 -03:00
auth.tt Bug 33253: Turn off autocompletion for 2FA authentication code 2023-05-09 11:46:59 -03:00
intranet-main.tt