Koha-clms/cataloguing
Tomás Cohen Arazi d6aae094b4
Bug 40841: Implement library limits on Z39.50 searches
This patchset implements Z39.50/SRU limits by branch in Koha.

Key implementation notes:
- Follows Koha's established pattern for library limits
- A new table linking to library limits is added
- The admin UI is adjusted so the form includes library limit selection
- Z39.50/SRU search controllers use the `search_with_library_limits`
  methods to correctly constraint the offered servers.

To test:
1. Apply this patches
2. Run:
   $ ktd --shell
  k$ updatedatabase
=> SUCCESS: Database upgrade goes well
3. Re-run:
  k$ updatedatabase
=> SUCCESS: No explosions, DB update idempotent
4. Restart everything:
  k$ restart_all
5. POint your browser to the admin page:
   http://kohadev-intra.localhost/cgi-bin/koha/admin/z3950servers.pl
=> SUCCESS: A new column is displayed for library limits brief
6. Edit `LIBRARY OF CONGRESS`
=> SUCCESS: The form includes the usual library limit selection UI
7. Choose some branches, excluding your current one (KTD's default is
   'Centerville').
8. Save
=> SUCCESS: It is saved correctly
=> SUCCESS: The table shows the edited library has the library limits
set
9. Edit again
=> SUCCESS: The selected limits are preserved when editing
10. Pick some authorities Z39.50 target, and exclude your current branch
    for testing purposes.
11. Go to Cataloguing, and choose 'New from Z39.50/SRU'
=> SUCCESS: Limits are respected!
12. Go to Authorities, and choose 'New from Z39.50/SRU'
=> SUCCESS: Limits are respected!
13. Same as 11 but with the advanced editor
=> SUCCESS: Limits are respected!
14. Sign off :-D

Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
2026-03-26 14:21:28 +01:00
..
value_builder Bug 31717: Value builder unimarc_field_010.pl also use 214$c 2026-03-20 11:54:32 +00:00
addbiblio.pl Bug 40272: (QA follow-up) Only add a biblio test 2025-10-16 15:20:20 -06:00
addbooks.pl Bug 41989: Call getlanguage after get_template_and_user 2026-03-19 10:52:24 +00:00
additem.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
cataloging-home.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
concerns.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
editor.pl Bug 40841: Implement library limits on Z39.50 searches 2026-03-26 14:21:28 +01:00
linkitem.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
merge.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
merge_ajax.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
moveitem.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
plugin_launcher.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
ysearch.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
z3950_auth_search.pl Bug 40841: Implement library limits on Z39.50 searches 2026-03-26 14:21:28 +01:00
z3950_search.pl Bug 40841: Implement library limits on Z39.50 searches 2026-03-26 14:21:28 +01:00