Koha/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
..
searchengine/elasticsearch Bug 25273: Make match-heading rely on authority type configuration 2020-08-31 16:10:25 +02:00
add_user_search.pl Bug 15758: Koha::Libraries - Remove GetBranches 2016-09-08 14:36:03 +00:00
additional-fields.pl Bug 15774: (QA follow-up) Fix use statemenets 2019-03-07 20:37:06 +00:00
admin-home.pl Bug 20415: Remove UseKohaPlugins system preference 2020-03-26 11:42:02 +00:00
adveditorshortcuts.pl Bug 21411: Address QA concerns 2019-05-10 18:59:39 +00:00
aqbudgetperiods.pl Bug 10577: (QA follow-up) Remove bad call signature 2019-03-28 12:46:14 +00:00
aqbudgets.pl Bug 22786: Prevent fund creation for locked budgets 2019-09-06 13:17:47 +01:00
aqcontract.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
aqplan.pl Bug 21137: Replace USER_INFO with logged_in_user 2018-08-14 12:43:10 +00:00
audio_alerts.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
auth_subfields_structure.pl Bug 21706: (follow-up) Fix subfield delete button 2018-11-12 16:39:50 -03:00
auth_tag_structure.pl Bug 21706: (follow-up) remove unused template params 2018-11-12 16:39:04 -03:00
authorised_values.pl Bug 25651: Fix modification of authorised value 2020-06-12 09:57:31 +02:00
authtypes.pl Bug 14391: Add granular permissions to the administration module 2018-11-07 12:29:32 +00:00
biblio_framework.pl Bug 14391: Add granular permissions to the administration module 2018-11-07 12:29:32 +00:00
branch_transfer_limits.pl Bug 14391: Add granular permissions to the administration module 2018-11-07 12:29:32 +00:00
branches.pl Bug 25288: (QA follow-up) Escape data and restore empty list behaviour 2020-06-24 15:15:41 +02:00
cash_registers.pl Bug 24481: Correct permission name in admin/cash_registers.pl 2020-01-23 08:48:43 +00:00
categories.pl Bug 19889: Make it possible to exclude items and categories from local holds priority 2020-08-31 16:17:58 +02:00
check_budget_parent.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
check_parent_total.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
checkmarc.pl Bug 14391: Add granular permissions to the administration module 2018-11-07 12:29:32 +00:00
cities.pl Bug 25279: Use another var name for the filter 2020-05-12 11:40:07 +01:00
classsources.pl Bug 15836: Mark C4::ClassSource subs DEPRECATED 2018-11-13 15:18:22 +00:00
clone-rules.pl Bug 18936: (follow-up) Add cloning of circulation rules back to Koha 2020-02-04 09:56:29 +00:00
columns_settings.pl Bug 24156: Fix set sort order to the first column 2020-06-25 10:51:59 +02:00
columns_settings.yml Bug 21750: Move collection code to its own column on checkins table 2020-08-24 12:10:53 +02:00
credit_types.pl Bug 19036: Add ability to enable credit number for only some credit types 2020-08-20 12:31:59 +02:00
currency.pl Bug 7651: Add a new permission for managing currencies and exchange rates 2018-07-18 17:45:21 +00:00
debit_types.pl Bug 23354: (follow-up) Make display of debit types configurable 2020-01-13 14:05:14 +00:00
desks.pl Bug 13881: (QA follow-up) Check for manage_libraries permission 2020-03-25 09:19:34 +00:00
didyoumean.pl Bug 20399: Remove "did you mean" for the staff interface 2020-03-26 11:55:37 +00:00
edi_accounts.pl Bug 20415: Remove UseKohaPlugins system preference 2020-03-26 11:42:02 +00:00
edi_ean_accounts.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
import_export_framework.pl Bug 23398: Disable the XML import/export format for biblio framework 2019-11-08 12:51:16 +00:00
item_circulation_alerts.pl Bug 14391: Add granular permissions to the administration module 2018-11-07 12:29:32 +00:00
items_search_field.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
items_search_fields.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
itemtypes.pl Bug 21946: Update Administration->Item types to allow for defining parent types 2020-08-13 10:13:14 +02:00
koha2marclinks.pl Bug 14391: Add granular permissions to the administration module 2018-11-07 12:29:32 +00:00
library_groups.pl Bug 21674: Prevent to insert twice the same library in a group 2020-01-30 15:36:25 +00:00
localization.pl Bug 14391: Add granular permissions to the administration module 2018-11-07 12:29:32 +00:00
marc_subfields_structure.pl Bug 25826: Forbid changing the hidden attributes for biblionumber 2020-08-07 09:55:50 +02:00
marctagstructure.pl Bug 17232: Make sure all fields are copies when creating a new framework from another 2020-04-27 11:44:32 +01:00
matching-rules.pl Bug 14391: Add granular permissions to the administration module 2018-11-07 12:29:32 +00:00
oai_set_mappings.pl Bug 21520: More complex OAI sets mappings 2020-01-15 13:49:19 +00:00
oai_sets.pl Bug 14391: Add granular permissions to the administration module 2018-11-07 12:29:32 +00:00
overdrive.pl Bug 21082: Update OverDrive authentication method 2018-10-09 11:04:23 +00:00
patron-attr-types.pl Bug 22844: Add the new entry to the patron attr types form 2020-07-20 16:08:22 +02:00
preferences.pl Bug 26015: Terminology: Fix tons more staff clients to staff interfaces 2020-08-31 16:10:25 +02:00
share_content.pl Bug 23075: Do not 'Send' if the url is not correct 2019-11-06 17:05:18 +00:00
smart-rules.pl Bug 25663: Remove Koha::RefundLostItemFeeRule and uses 2020-08-13 07:55:44 +02:00
sms_providers.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
sru_modmapping.pl Bug 14391: Add granular permissions to the administration module 2018-11-07 12:29:32 +00:00
systempreferences.pl Bug 26015: Terminology: Fix tons more staff clients to staff interfaces 2020-08-31 16:10:25 +02:00
transport-cost-matrix.pl Bug 14391: Add granular permissions to the administration module 2018-11-07 12:29:32 +00:00
usage_statistics.pl Bug 14391: Add granular permissions to the administration module 2018-11-07 12:29:32 +00:00
z3950servers.pl Bug 11297: Add support for custom PQF attributes for Z39.50 server searches. 2020-02-19 16:07:59 +00:00