[Koha-bugs] [Bug 748] New: Modfy loan length according to borrower category

bugzilla-daemon at wilbur.katipo.co.nz bugzilla-daemon at wilbur.katipo.co.nz
Mon Mar 15 19:28:40 CET 2004


http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=748

           Summary: Modfy loan length according to borrower category
           Product: Koha
           Version: CVS
          Platform: PC
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Circulation
        AssignedTo: chris at katipo.co.nz
        ReportedBy: shedges at athenscounty.lib.oh.us
         QAContact: koha-bugs at lists.sourceforge.net


It would be nice to control loan length based on the category of borrower, as
well as the type of item.  That way, staff or teachers could keep items longer
than 'regular' borrowers.

One way to do this might be to add a "loanlengthfactor" column to either the
borrowers table or the categories table.  If staff could keep items twice as
long as other borrowers, then the loan length factor would be '2'.  If a loan
was meant to be (almost) permanent, the loan length factor could be '99'.  If
the normal loan period was two weeks, but children's librarians can keep things
three weeks, then the factor would be '1.5', etc.  While the sticky due date
already makes such things possible, it would still be nice to have this
automatically calculated by borrower category.

Circ2.pm would need to retrieve the loan length factor from the appropriate
table.  Then in the issuebook function in Circ2.pm, insert a line (after current
line 771) that recalculates the loan length based on the loan length factor --
like $loanlength=$loanlength*($patroninformation->{'loanlengthfactor'}).

I notice also that there is some hard-coding of borrower categories in Circ2.pm
(starting at line 614).  Perhaps my simple suggestion could be made more complex
to handle this as well.



------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.




More information about the Koha-bugs mailing list