Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
Agustin Moyano bcf9b259c5 Bug 19889: Make it possible to exclude items and categories from local holds priority
This patch adds the ability to exclude patrons (by category) from local
holds, and items, by editing the item itself or by batch item
modification tool.

To test:
1. apply patches
2. updatedatabase
3. Enable LocalHoldsPriority preference, and leave
   LocalHoldsPriorityPatronControl in pickup library, and
LocalHoldsPriorityItemControl in holding library.
4. Search for a biblio with one item.
5. Place a hold with a patron (patron1) and set pickup location to a different
   library of the item's home library
6. Place another hold with another patron (patron2) and set pickup location to be
   the same as the item's home library
7. ./misc/cronjobs/holds/build_holds_queue.pl
8. Go to circulation -> holds queue
9. Search by the item's home library
CHECK => only the hold for patron2 (with the pickup location the same as the
item's home library) appears in the table
10. Go back to the biblio details page and click on "Items" tab
CHECK => There is a new section in the item's details between "Statuses"
and "History" called "Priority"
11. Set exclude to "Yes" and update
12. repeat steps 7 to 9
SUCCESS => only the hold for patron1 now appears, even the other hold had local
hold priority
13. Repeat step 10 and 11 but this time set exclude to "No"
14. repeat steps 7 to 9
CHECK => the hold for patron2 is back
15. Edit patron2's category and set exclude from local holds priority to
    "Yes"
16. Repeat steps 7 to 9
SUCCESS => the hold for patron1 is back
17. Go to tools -> Batch item modification and in barcode list place
    several (existing) barcodes and press continue
CHECK => There is a new section in the bottom called "Priority"
18. Set exclude to "Yes" and save
SUCCESS => all items in the list now have exclude setted to "Yes"
19. Try to checkout the first item to a patron3
SUCCESS => Alert message appears saying that patron1 has a hold on that
item
20. Click on Yes and then checkin that item
SUCCESS => There is a modal window saying that a hold was found for
patron1
21. prove t/db_dependent/HoldsQueue.t t/db_dependent/Holds/LocalHoldsPriority.t
22. Sign off

Sponsored-by: Cooperative Information Network (CIN)

Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org>

Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-08-31 16:17:58 +02:00
..
preferences Bug 20057: Fix capitalization and rephrase system preference as a sentence 2020-08-31 14:41:08 +02:00
searchengine/elasticsearch Bug 26015: Terminology: Fix tons more staff clients to staff interfaces 2020-08-31 16:10:25 +02:00
additional-fields.tt
admin-home.tt Bug 24156: (follow-up) UI - Use "Table settings" 2020-06-25 10:55:41 +02:00
adveditorshortcuts.tt
aqbudgetperiods.tt Bug 25499: Fix fund code column when closing a budget 2020-07-30 17:44:27 +02:00
aqbudgets.tt Bug 26098: Fix JS error on the fund list view when no fund displayed 2020-08-06 11:37:06 +02:00
aqcontract.tt
aqplan.tt Bug 24636: (follow-up) - move 'by' into include file 2020-05-04 08:53:04 +01:00
audio_alerts.tt
auth_subfields_structure.tt Bug 25832: Add DataTables to MARC subfield structure admin page for authorities 2020-08-18 17:39:48 +02:00
auth_tag_structure.tt Bug 25282: Correct Bootstrap dropdown button markup 2020-04-29 16:20:08 +01:00
authorised_values.tt Bug 25534: (QA follow-up) Add AV category 2020-08-25 15:07:28 +02:00
authtypes.tt Bug 25282: Correct Bootstrap dropdown button markup 2020-04-29 16:20:08 +01:00
biblio_framework.tt Bug 25282: Correct Bootstrap dropdown button markup 2020-04-29 16:20:08 +01:00
branch_transfer_limits.tt
branches.tt Bug 25862: Prevent TinyMCE to mangle local url links 2020-07-20 14:05:21 +02:00
cash_registers.tt Bug 26194: (follow-up) Default to current branch 2020-08-18 15:45:49 +02:00
categories.tt Bug 19889: Make it possible to exclude items and categories from local holds priority 2020-08-31 16:17:58 +02:00
checkmarc.tt
cities.tt Bug 25279: (QA follow-up) Use .escapeHtml 2020-05-12 11:40:22 +01:00
classsources.tt
clone-rules.tt
columns_settings.tt Bug 26160: Make POS items table configurable 2020-08-12 12:07:12 +02:00
credit_types.tt Bug 19036: Add ability to enable credit number for only some credit types 2020-08-20 12:31:59 +02:00
currency.tt Bug 26234: Teach our KohaTable constructor the specific th classes 2020-08-19 08:24:04 +02:00
debit_types.tt
desks.tt Bug 13881: (QA follow-up) Some documentation and terminology fixes 2020-03-25 09:20:00 +00:00
didyoumean.tt Bug 20399: (QA follow-up) Remove mention of INTRAdidyoumean from text and delete commented code 2020-03-26 11:55:46 +00:00
edi_accounts.tt Bug 25687: Switch Y/N in EDI accounts table for Yes and No for better translatability 2020-06-15 11:53:36 +02:00
edi_ean_accounts.tt
item_circulation_alerts.tt
items_search_field.tt
items_search_fields.tt
itemtypes.tt Bug 26234: Teach our KohaTable constructor the specific th classes 2020-08-19 08:24:04 +02:00
koha2marclinks.tt
library_groups.tt Bug 22937: Add hint to groups editor 2020-04-08 11:52:25 +01:00
localization.tt
marc_subfields_structure.tt Bug 25826: fix failing test 2020-08-10 10:00:34 +02:00
marctagstructure.tt Bug 25282: Correct Bootstrap dropdown button markup 2020-04-29 16:20:08 +01:00
matching-rules.tt
oai_set_mappings.tt
oai_sets.tt Bug 25282: Correct Bootstrap dropdown button markup 2020-04-29 16:20:08 +01:00
overdrive.tt
patron-attr-types.tt Bug 26119: Enable patron's attribute edition when PatronSelfRegistrationVerifyByEmail 2020-08-18 14:47:44 +02:00
preferences.tt Bug 22844: Simplify the process of selecting database columns for system preferences 2020-07-20 16:08:22 +02:00
share_content.tt
smart-rules.tt Bug 21946: (follow-up) Add optgroup label in circ rules 2020-08-13 10:13:14 +02:00
sms_providers.tt
sru_modmapping.tt
sru_modmapping_auth.tt
systempreferences.tt
transport-cost-matrix.tt
usage_statistics.tt
z3950servers.tt Bug 25282: Correct Bootstrap dropdown button markup 2020-04-29 16:20:08 +01:00