Bug 29692 - Koha should respect DefaultToLoggedInLibraryCircRules on a single-library system
Summary: Koha should respect DefaultToLoggedInLibraryCircRules on a single-library system
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-14 13:36 UTC by Andrew Fuerste-Henry
Modified: 2021-12-14 13:41 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Fuerste-Henry 2021-12-14 13:36:45 UTC
If the system only contains one library, the system preference DefaultToLoggedInLibraryCircRules is not followed. Instead, Koha will always take one to the rules for all libraries. This behavior is not documented on the syspref itself or in the manual.

The related sysprefs DefaultToLoggedInLibraryNoticesSlips and DefaultToLoggedInLibraryOverdueTriggers do not behave this way. In a singl-library system, they both continue to apply as stated.

This forced and undocumented behavior increases confusion. We should follow the choice on the system preference even if there is only one library.
Comment 1 Andrew Fuerste-Henry 2021-12-14 13:41:40 UTC
To expand a little on why this is an issue, here's what I see frequently:
- a single-library system creates all of their rules on the All Libraries page
- someone clones those rules to the branch-specific page (either accidentally or in confusion)
- time passes, everyone forgets the branch-specific rules are there
- someone edits the All Libraries rules to reflect a change in policy
- loan behavior doesn't change, because Koha is following the branch-specific rules

If we force Koha to always load the All Libraries rules first for a single-library system, we are telling Koha that the first rules it shows us should always be the last rules it enforces. We're explicitly forcing the system to take the more important rules and hide them behind some clicks.