Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences
Aleisha Amohia 58a7613c6e
Bug 30880: Add 'branchonly' to OPACResultsUnavailableGroupingBy
This patch adds a third option 'branch only' to the
OPACResultsUnavailableGroupBy system preference. This option will group
unavailable items by branch in the OPAC search results and NOT show
individual callnumbers or substatuses.

Note: This assumes OPACXSLTResultsDisplay is set to default.

To test:
1. Create a biblio record with 3 items with the following home branches:
Item A: Branch A
Item B: Branch A
Item C: Branch B
2. Check out Item A to yourself
3. Edit Item B to have a lost status
4. Go to Administration -> global system preferences. Search for
OPACResultsUnavailableGroupingBy.
5. By default, this preference will be set to 'branch'.
6. Open the OPAC in another tab, and search for your record.
7. Confirm the search results shows an Availability line with "Not
available: Branch A: Checked out (1). Branch A: Lost (1)." i.e. showing
both branch and substatus.
8. In your staff client tab, set OPACResultsUnavailableGroupingBy to
'substatus'.
9. Go back to your OPAC tab and search for your record. Confirm the
search results shows an Availability line with "Not available: Checked
out (1). Lost (1)." i.e. showing substatus only.
10. Apply patch, update database, restart services.
11. In your staff client tab, refresh the page. Confirm the options for
OPACResultsUnavailableGroupingBy have now changed to:
- branch and substatus
- substatus only
- branch only
12. Set OPACResultsUnavailableGroupingBy to 'branch only'.
13. Go back to your OPAC tab and search for your record. Confirm the
search results shows an Availability line with "Not available: Branch A
(2)." i.e. showing branch only.
14. Confirm the other two options still work as expected.

Sponsored-by: Chartered Accountants Australia and New Zealand

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-11-08 10:00:39 -03:00
..
accounting.pref Bug 31730: (QA follow-up) Only link category name 2022-10-24 17:31:11 -03:00
acquisitions.pref Bug 31257: Add a new English 1 page layout to export basketgroup 2022-10-11 10:44:10 -03:00
admin.pref Bug 27519: Normalize Show/Don't show in system preferences 2022-06-08 11:45:25 -03:00
authorities.pref Bug 30025: Replace AllowManualAuthorityEditing with RequireChoosingExistingAuthority 2022-09-16 16:48:34 -03:00
cataloguing.pref Bug 29662: (QA folow-up) Add explanation for empty to system preference description 2022-10-21 11:34:12 -03:00
circulation.pref Bug 24860: Add new syspref EnableItemGroupHolds 2022-11-04 19:39:55 -03:00
enhanced_content.pref Bug 27519: Normalize Show/Don't show in system preferences 2022-06-08 11:45:25 -03:00
erm.pref Bug 32030: Make the ERMProviders syspref multivaluated 2022-11-08 09:44:09 -03:00
i18n_l10n.pref Bug 31886: Fix no sidebar problem in system pref search 2022-10-24 10:37:31 -03:00
local_use.pref Bug 31952: (QA follow-up) Fix capitalization: Local Use 2022-10-27 09:36:44 -03:00
logs.pref Bug 30543: Decouple DumpSearchQueryTemplate from other tempalte dump preferences 2022-08-09 08:44:14 -03:00
opac.pref Bug 30880: Add 'branchonly' to OPACResultsUnavailableGroupingBy 2022-11-08 10:00:39 -03:00
patrons.pref Bug 25936: Add option to send password change notices 2022-10-03 14:25:38 -03:00
searching.pref Bug 17170: DB Updates 2022-10-21 11:15:13 -03:00
serials.pref Bug 31886: Fix no sidebar problem in system pref search 2022-10-24 10:37:31 -03:00
staff_interface.pref Bug 30036: Fix trivial typo 2022-10-27 09:56:14 -03:00
tools.pref Bug 29648: (QA follow-up) Remove NumSavedReports from .pref file 2022-04-27 11:20:45 -10:00
web_services.pref Bug 30923: Remove EXPERIMENTAL mark on RESTOAuth2ClientCredentials 2022-06-08 11:06:03 -03:00