Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Tomas Cohen Arazi fce91d2bb0 Bug 27863: Use the /libraries route when AllowHoldsPolicyOverride is set
This patch makes the dropdown for changing the pickup location for
existing holds use the GET /libraries route instead of GET
/holds/:hold_id/pikcup_locations if the configuration allows the
override.

Terminology:
- Pickup location, means a library that is marked as valid pickup
  location on its configuration.

To test:
1. Have the circ rules set so 'Hold pickup library match' is set to
   'Item's home library' or 'Any'. The goal is to be able to
   differentiate when all libraries are returned, from the case only
   'valid pickup locations' are returned. The easiest one is 'Item's
   home library'.
2. Set AllowHoldsPolicyOverride
3. Pick a patron from a library that is not a valid pickup location and
   an item that belongs to a library that doesn't match any of the valid
   ones.
=> SUCCESS: Notice Koha allows you to choose any library (because of the
        syspref)
4. Place the hold.
5. Now check on the holds list for the bib, if you can use the dropdown
   to change the pickup location for the hold
=> SUCCESS: You can, sort of
=> FAIL: It doesn't show/search all pickup locations. It only shows the
        valid ones, even though we should be able to override it.
6. Apply this patch
7. Restart all just in case, and reload the holds page for the bib
8. Repeat 5
=> SUCCESS: You are presented all pickup locations!
9. Sign off :-D

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-03-09 09:50:44 +01:00
..
acqui Bug 27795: Misalignment of TOTAL value in lateorders page 2021-03-05 13:48:31 +01:00
admin Bug 22824: Replace wrong auto replacement 2021-03-04 16:18:42 +01:00
authorities Bug 27886: Move non-rancor code into correct section 2021-03-08 15:15:45 +01:00
basket
batch
catalogue Bug 25846: (follow-up) Show "No cover image available" message 2021-03-04 08:38:09 +01:00
cataloguing Bug 24623: Phase out jquery.cookie.js: Advanced MARC editor 2021-03-04 16:18:42 +01:00
circ Bug 12224: (follow-up) Move button to patron column in checkins table 2021-03-05 13:49:03 +01:00
clubs
common
course_reserves
errors
ill
installer Bug 27473: Remove the redirect after 10sec 2021-03-03 15:53:59 +01:00
labels
mana
members Bug 27410: (follow-up) Updates to accommodate currency entry 2021-03-05 13:48:31 +01:00
offline_circ
onboarding
patron_lists
patroncards
plugins
pos Bug 27777: (alternate) Improve tables on Point of Sale page for low screen resolutions 2021-03-05 13:38:58 +01:00
reports Bug 27380: Add 'list' option to Koha report parameters 2021-02-12 12:22:08 +01:00
reserve Bug 27863: Use the /libraries route when AllowHoldsPolicyOverride is set 2021-03-09 09:50:44 +01:00
reviews
rotating_collections Bug 26618: (QA follow-up) Update messages syntax 2021-03-03 15:36:13 +01:00
serials Bug 27332: Hide branchcode and note is RenewSerialAddsSuggestion if off 2021-02-23 13:16:07 +01:00
services
suggestion
tags
test
tools Bug 26960: Move batch item modification template JavaScript to the footer 2021-03-04 16:18:42 +01:00
virtualshelves
about.tt Bug 22824: Add warning to the about page 2021-03-04 16:18:42 +01:00
auth.tt Bug 18506: (QA follow-up) Indentation and more conditionals 2021-02-09 09:48:35 +01:00
intranet-main.tt