Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Tomas Cohen Arazi 333ee72600 Bug 28338: Default to holding branch to save clicks
This patch makes request.pl pass the holding library object to the
template, if it is a valid pickup location for the item. This way, the
template can set a good default to save clicks.

To test:
1. Have "Hold pickup library match" set to "Item's home library"
2. Have a record with items in three different branches. For example:
   - item1: homebranch: MPL, holdingbranch: MPL
   - item2: homebranch: FPL, holdingbranch: FPL
   - item3: homebranch: CPL, holdingbranch: IPT
3. Have FPL marked as 'No' for pickup location
4. On the record, open the page for placing a hold for a patron
   (acevedo?)
=> SUCCESS: You are presented the regular hold placing page, with an
extra column on the items for pickup location setting
=> SUCCESS: The item2 (on FPL) cannot be selected, there's a clear message
about not having valid pickup locations
=> FAIL: The other ones don't have anything pre-selected on the
dropdowns
5. Apply this patch
6. Repeat 4 (go back to the record, etc)
=> SUCCESS: Nothing changed BUT the item with holding branch = MPL has
it set by default in the dropdown.
=> SUCCESS: IPT is not a valid pickup location for item3, so not set by
default in this case.
7. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
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-06-14 17:35:19 +02:00
..
acqui Bug 28419: Fix addorderiso2709.tt translatability 2021-05-26 15:09:41 +02:00
admin Bug 28345: Patron attributes no longer have option to select empty class 2021-05-17 12:34:33 +02:00
authorities Bug 28159: URI-encode existing values put into query string for z39.50 authority search 2021-05-10 15:52:53 +02:00
basket Bug 26703: authorities, basket and batch folders 2021-04-21 11:16:33 +02:00
batch Bug 26703: authorities, basket and batch folders 2021-04-21 11:16:33 +02:00
catalogue Bug 28171: Restore comment to remove ambiguity 2021-06-04 12:04:42 +02:00
cataloguing Bug 28160: Values from 150$a aren't prefilled in z39.50 search form from an existing authority record 2021-05-10 15:52:53 +02:00
circ Bug 27064: (QA follow-up) Do not create transfer prior to accepting it 2021-06-14 16:10:15 +02:00
clubs Bug 26703: clubs, common & course_reserves folders 2021-04-21 11:16:34 +02:00
common Bug 26703: clubs, common & course_reserves folders 2021-04-21 11:16:34 +02:00
course_reserves Bug 26703: clubs, common & course_reserves folders 2021-04-21 11:16:34 +02:00
errors Bug 26703: errors, ill and installer folders 2021-04-21 11:16:34 +02:00
ill Bug 26703: errors, ill and installer folders 2021-04-21 11:16:34 +02:00
installer Bug 26703: errors, ill and installer folders 2021-04-21 11:16:34 +02:00
labels Bug 28119: Use full description in layout type selection 2021-04-21 15:25:07 +02:00
mana
members Bug 28490: Revert "Bug 26995: Remove one remaining occurrence in moremember" 2021-06-14 17:35:19 +02:00
offline_circ Bug 26703: offline_circ and onboarding folders 2021-04-21 11:16:34 +02:00
onboarding Bug 28134: Replace use of input type number in onboarding templates 2021-05-04 15:20:46 +02:00
patron_lists Bug 26703: patroncards and patron_lists folders 2021-04-21 11:16:35 +02:00
patroncards Bug 26703: patroncards and patron_lists folders 2021-04-21 11:16:35 +02:00
plugins Bug 26703: plugins and pos folders 2021-04-21 11:16:35 +02:00
pos Bug 28266: fix spelling mistake on registers.tt 2021-05-10 15:46:55 +02:00
reports Bug 16486: Display the timestamp when an accountline is updated 2021-05-06 15:52:41 +02:00
reserve Bug 28338: Default to holding branch to save clicks 2021-06-14 17:35:19 +02:00
reviews Bug 26703: reserve, reviews & rotating_collections folders 2021-04-21 11:16:35 +02:00
rotating_collections Bug 26703: reserve, reviews & rotating_collections folders 2021-04-21 11:16:35 +02:00
serials Bug 23243: (follow-up) Update wording as requested 2021-04-21 15:25:07 +02:00
services
suggestion Bug 26703: suggestion and tags folders 2021-04-21 11:16:35 +02:00
tags Bug 26703: suggestion and tags folders 2021-04-21 11:16:35 +02:00
test
tools Bug 28353: Display a list of items that cannot be deleted 2021-06-04 12:04:42 +02:00
virtualshelves Bug 26703: virtualshelves folder 2021-04-21 11:16:35 +02:00
about.tt Bug 28490: Revert "Bug 26995: Remove references to relationship column" 2021-06-14 17:35:19 +02:00
auth.tt Bug 26703: (follow-up) fixed some page titles in files 2021-04-22 09:09:28 +02:00
intranet-main.tt