Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
Jonathan Druart 010181a6a0 Bug 27652: Display patron's categories for sysprefs expecting them
This patch adds a new type of system preference entry option: patron
category. A preference with this type will show either a <select> with
patron categories to choose from or a multiple-select menu for choosing
one or more.

This prevents possible errors from incorrect category codes being
entered manually.

To test, apply the patch and run the database update.

- Go to Administration -> System preferences.
- Test each of the updated preferences to confirm that the available
  options are correct and that your selections are correctly saved.

  - Single category selections, PatronSelfRegistrationDefaultCategory
    and GoogleOpenIDConnectDefaultCategory. With each of these you
    should see a dropdown where you can select of all the existing
    patron categories.

  - Multiple selections, OPACHoldsIfAvailableAtPickup and
    BatchCheckouts: These preferences should have an option for
    selecting one or more system preferences at once.

- Test the pages affected by the updated system preferences:

- With BatchCheckouts enabled, confirm that the batch checkout page is
  correctly limited by patron category.

- Set the OPACHoldsIfAvailableAtPickup preference to "Don't allow" and
  select at least one patron category in the
  OPACHoldsIfAvailableAtPickupExceptions preference.
- Log in to the OPAC as a patron whose category was not selected in
  the OPACHoldsIfAvailableAtPickupExceptions preference.
- Try to place a hold on an item which is available at a library.
- When confirming the hold, the libraries where the item is available
  should be disabled in the "Pick up location" dropdown.
- Repeat the process as a patron whose category was selected in
  OPACHoldsIfAvailableAtPickupExceptions. There should be no disabled
  pickup locations.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-03-09 17:20:47 +01:00
..
preferences Bug 27652: Display patron's categories for sysprefs expecting them 2021-03-09 17:20:47 +01:00
searchengine/elasticsearch Bug 27682: (follow-up) Make sure table is drawn with correct width 2021-03-09 15:05:25 +01:00
additional-fields.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
admin-home.tt Bug 26809: Removes full stops from admin-home.tt 2020-10-26 00:16:14 +01:00
adveditorshortcuts.tt
aqbudgetperiods.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
aqbudgets.tt Bug 27653: Use div instead of caption for controls 2021-02-15 11:48:55 +01:00
aqcontract.tt Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
aqplan.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
audio_alerts.tt Bug 27592: Link audio alerts to corresponding preference and back 2021-03-01 15:14:23 +01:00
auth_subfields_structure.tt Bug 8976: (follow-up) Code cleaning 2021-03-03 11:57:51 +01:00
auth_tag_structure.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
authorised_values.tt Bug 27703: Make ID of category select field unique 2021-03-03 11:59:01 +01:00
authtypes.tt Bug 25954: Replace paragraph tags with labels in header search forms 2021-01-04 14:06:27 +01:00
background_jobs.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
biblio_framework.tt Bug 26551: Correct modal markup to prevent long heading from overflowing 2020-10-08 11:36:32 +02:00
branch_transfer_limits.tt Bug 26768: Remove the use of jquery.checkboxes plugin from library transfer limits page 2020-11-03 10:57:35 +01:00
branches.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
cash_registers.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
categories.tt Bug 26985: Remove code for "Upcoming events" from codebase as not implemented 2021-01-20 13:42:08 +01:00
checkmarc.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
cities.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
classsources.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
clone-rules.tt
columns_settings.tt Bug 27654: Sort module.keys hash when render columns_settings.tt 2021-02-12 12:14:50 +01:00
credit_types.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
currency.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
debit_types.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
desks.tt
didyoumean.tt
edi_accounts.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
edi_ean_accounts.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
item_circulation_alerts.tt
items_search_field.tt
items_search_fields.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
itemtypes.tt Bug 20238: Display description of ITEMTYPECAT in search category 2021-01-28 17:32:52 +01:00
koha2marclinks.tt
library_groups.tt
localization.tt
marc_subfields_structure.tt Bug 8976: Code cleaning 2021-03-01 15:14:22 +01:00
marctagstructure.tt Bug 27713: Duplicate search field IDs in MARC framework administration template 2021-02-23 13:16:07 +01:00
matching-rules.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
oai_set_mappings.tt
oai_sets.tt
overdrive.tt
patron-attr-types.tt Bug 8326: Add tooltips 2021-02-15 11:48:55 +01:00
preferences.tt Bug 17364: Add ability to exclude some columns from selection for system preferences 2021-02-01 16:36:36 +01:00
share_content.tt
smart-rules.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
sms_providers.tt Bug 26240: Move translatable strings out of sms_providers.tt and into sms_providers.js 2020-09-29 14:28:18 +02:00
smtp_servers.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
sru_modmapping.tt
sru_modmapping_auth.tt
systempreferences.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
transport-cost-matrix.tt Bug 26726: (QA follow-up) Add line break and 'the' for readability 2020-10-26 00:16:14 +01:00
usage_statistics.tt
z3950servers.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00