[Koha-bugs] [Bug 7314] New: Remove singleBranchMode system preference in favour of counting configured branches

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Dec 3 15:53:33 CET 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7314

             Bug #: 7314
           Summary: Remove singleBranchMode system preference in favour of
                    counting configured branches
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P4
         Component: Architecture, internals, and plumbing
        AssignedTo: ian.walls at bywatersolutions.com
        ReportedBy: ian.walls at bywatersolutions.com
         QAContact: jonathan.druart at biblibre.com


Instead of relying on a system preference to determine whether there is only a
single branch in the system or not, why not just count how many distinct
branches are in the branches table?  This will reduce the number of moving
parts, so to speak.

Proposed subroutine in C4::Branch:

GetBranchCount().  No inputs, returns integer value 0 or greater, corresponding
to the output of SELECT count(*) FROM branches;

Once this subroutine is in place, we can slowly remove references to
singleBranchMode syspref, which will fix numerous bugs involved with that
particular feature.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the Koha-bugs mailing list