884b3e71d8
Currently, the main table of ILL requests will display all ILL requests in the database, regardless of their status. For libraries with active ILL this quickly leads to a lot of requests being displayed, and the main page of the ILL module taking a long time to load. This patch proposes to fix this by introducing the ILLHiddenRequestStatuses syspref, which can take a pipe-separated list of ILL statuses that will be hidden from view in the ILL module. This means that the only way to find a hidden request will be through a report. To test: - Apply the patch and make sure the atomic database update is run - Make sure you have a few ILL requests, with at least two different statuses - Check that all requests are still displayed in the main table of ILL requests - Add one of the statuses* you have in your database to the ILLHiddenRequestStatuses syspref, reload the ILL module frontpage and verify that requests with the given status are not displayed - Change the syspref to another status and verify requests with that status are now hidden - Change the syspref to hold both statuses, separated by the pipe symbol (e.g.: A|B). Verify that no requests with the given statuses are now displayed - Run the ILL REST API tests, e.g.: $ sudo koha-shell -c "prove t/db_dependent/api/v1/illrequests.t" kohadev * = The ILLHiddenRequestStatuses syspref should hold status codes, like "REQ" and "NEW", not their human readable counterparts. Signed-off-by: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> |
||
---|---|---|
.. | ||
preferences | ||
searchengine/elasticsearch | ||
additional-fields.tt | ||
admin-home.tt | ||
adveditorshortcuts.tt | ||
aqbudgetperiods.tt | ||
aqbudgets.tt | ||
aqcontract.tt | ||
aqplan.tt | ||
audio_alerts.tt | ||
auth_subfields_structure.tt | ||
auth_tag_structure.tt | ||
authorised_values.tt | ||
authtypes.tt | ||
biblio_framework.tt | ||
branch_transfer_limits.tt | ||
branches.tt | ||
cash_registers.tt | ||
categories.tt | ||
checkmarc.tt | ||
cities.tt | ||
classsources.tt | ||
clone-rules.tt | ||
columns_settings.tt | ||
credit_types.tt | ||
currency.tt | ||
debit_types.tt | ||
desks.tt | ||
didyoumean.tt | ||
edi_accounts.tt | ||
edi_ean_accounts.tt | ||
item_circulation_alerts.tt | ||
items_search_field.tt | ||
items_search_fields.tt | ||
itemtypes.tt | ||
koha2marclinks.tt | ||
library_groups.tt | ||
localization.tt | ||
marc_subfields_structure.tt | ||
marctagstructure.tt | ||
matching-rules.tt | ||
oai_set_mappings.tt | ||
oai_sets.tt | ||
overdrive.tt | ||
patron-attr-types.tt | ||
preferences.tt | ||
share_content.tt | ||
smart-rules.tt | ||
sms_providers.tt | ||
sru_modmapping.tt | ||
sru_modmapping_auth.tt | ||
systempreferences.tt | ||
transport-cost-matrix.tt | ||
usage_statistics.tt | ||
z3950servers.tt |