[% USE raw %] [% USE Asset %] [% USE Koha %] [% USE KohaDates %] [% USE Branches %] [% USE Categories %] [% USE ItemTypes %] [% USE CirculationRules %] [% SET footerjs = 1 %] [% SET branchcode = humanbranch || undef %] [% SET categorycodes = [] %] [% FOREACH pc IN patron_categories %] [% categorycodes.push( pc.id ) %] [% END %] [% categorycodes.push(undef) %] [% SET itemtypes = [] %] [% FOREACH i IN itemtypeloop %] [% itemtypes.push( i.itemtype ) %] [% END %] [% itemtypes.push(undef) %] [% INCLUDE 'doc-head-open.inc' %] Koha › Administration › Circulation and fine rules [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'prefs-admin-search.inc' %]

[% IF humanbranch %] Defining circulation and fine rules for "[% Branches.GetName( humanbranch ) | html %]" [% ELSE %] Defining circulation and fine rules for all libraries [% END %]

The rules are applied from most specific to less specific, using the first found in this order:

  • same library, same patron category, same item type
  • same library, same patron category, all item types
  • same library, all patron categories, same item type
  • same library, all patron categories, all item types
  • default (all libraries), same patron category, same item type
  • default (all libraries), same patron category, all item types
  • default (all libraries), all patron categories, same item type
  • default (all libraries), all patron categories, all item types

To modify a rule, create a new one with the same patron category and item type.

[% UNLESS restricted_to_own_library %]
Select a library :
[% IF ( definedbranch ) %]
[% END %] [% END %]
[% SET row_count = 0 %] [% FOREACH c IN categorycodes %] [% FOREACH i IN itemtypes %] [% SET note = CirculationRules.Search( branchcode, c, i, 'note' ) %] [% SET maxissueqty = CirculationRules.Search( branchcode, c, i, 'maxissueqty' ) %] [% SET maxonsiteissueqty = CirculationRules.Search( branchcode, c, i, 'maxonsiteissueqty' ) %] [% SET issuelength = CirculationRules.Search( branchcode, c, i, 'issuelength' ) %] [% SET lengthunit = CirculationRules.Search( branchcode, c, i, 'lengthunit' ) %] [% SET hardduedate = CirculationRules.Search( branchcode, c, i, 'hardduedate' ) %] [% SET hardduedatecompare = CirculationRules.Search( branchcode, c, i, 'hardduedatecompare' ) %] [% SET fine = CirculationRules.Search( branchcode, c, i, 'fine' ) %] [% SET chargeperiod = CirculationRules.Search( branchcode, c, i, 'chargeperiod' ) %] [% SET chargeperiod_charge_at = CirculationRules.Search( branchcode, c, i, 'chargeperiod_charge_at' ) %] [% SET firstremind = CirculationRules.Search( branchcode, c, i, 'firstremind' ) %] [% SET overduefinescap = CirculationRules.Search( branchcode, c, i, 'overduefinescap' ) %] [% SET cap_fine_to_replacement_price = CirculationRules.Search( branchcode, c, i, 'cap_fine_to_replacement_price' ) %] [% SET finedays = CirculationRules.Search( branchcode, c, i, 'finedays' ) %] [% SET maxsuspensiondays = CirculationRules.Search( branchcode, c, i, 'maxsuspensiondays' ) %] [% SET suspension_chargeperiod = CirculationRules.Search( branchcode, c, i, 'suspension_chargeperiod' ) %] [% SET renewalsallowed = CirculationRules.Search( branchcode, c, i, 'renewalsallowed' ) %] [% SET renewalperiod = CirculationRules.Search( branchcode, c, i, 'renewalperiod' ) %] [% SET norenewalbefore = CirculationRules.Search( branchcode, c, i, 'norenewalbefore' ) %] [% SET auto_renew = CirculationRules.Search( branchcode, c, i, 'auto_renew' ) %] [% SET no_auto_renewal_after = CirculationRules.Search( branchcode, c, i, 'no_auto_renewal_after' ) %] [% SET no_auto_renewal_after_hard_limit = CirculationRules.Search( branchcode, c, i, 'no_auto_renewal_after_hard_limit' ) %] [% SET reservesallowed = CirculationRules.Search( branchcode, c, i, 'reservesallowed' ) %] [% SET holds_per_day = CirculationRules.Search( branchcode, c, i, 'holds_per_day' ) %] [% SET holds_per_record = CirculationRules.Search( branchcode, c, i, 'holds_per_record' ) %] [% SET onshelfholds = CirculationRules.Search( branchcode, c, i, 'onshelfholds' ) %] [% SET opacitemholds = CirculationRules.Search( branchcode, c, i, 'opacitemholds' ) %] [% SET article_requests = CirculationRules.Search( branchcode, c, i, 'article_requests' ) %] [% SET rentaldiscount = CirculationRules.Search( branchcode, c, i, 'rentaldiscount' ) %] [% SET show_rule = maxissueqty || maxonsiteissueqty || issuelength || lengthunit || hardduedate || hardduedatebefore || hardduedateexact || fine || chargeperiod || chargeperiod_charge_at || firstremind || overduefinescap || cap_fine_to_replacement_price || finedays || maxsuspensiondays || suspension_chargeperiod || renewalsallowed || renewalsallowed || norenewalbefore || auto_renew || no_auto_renewal_after || no_auto_renewal_after_hard_limit || reservesallowed || holds_per_day || holds_per_record || onshelfholds || opacitemholds || article_requests || article_requests %] [% IF show_rule %] [% SET row_count = row_count + 1 %] [% END %] [% END %] [% END %]
Patron category Item type Actions Note Current checkouts allowed Current on-site checkouts allowed Loan period Unit Hard due date Fine amount Fine charging interval When to charge Fine grace period Overdue fines cap (amount) Cap fine at replacement price Suspension in days (day) Max. suspension duration (day) Suspension charging interval Renewals allowed (count) Renewal period No renewal before Automatic renewal No automatic renewal after No automatic renewal after (hard limit) Holds allowed (total) Holds allowed (daily) Holds per record (count) On shelf holds allowed OPAC item level holds Article requests Rental discount (%) Actions
[% IF c == undef %] All [% ELSE %] [% Categories.GetName(c) | html %] [% END %] [% IF i == undef %] All [% ELSE %] [% ItemTypes.GetDescription(i) | html %] [% END %] Edit Delete [% IF note.defined && note != '' %] View note [% ELSE %] [% END %] [% IF maxissueqty.defined && maxissueqty != '' %] [% maxissueqty | html %] [% ELSE %] Unlimited [% END %] [% IF maxonsiteissueqty.defined && maxonsiteissueqty != '' %] [% maxonsiteissueqty | html %] [% ELSE %] Unlimited [% END %] [% issuelength | html %] [% IF ( lengthunit == 'days' ) %] Days [% ELSIF ( lengthunit == 'hours') %] Hours [% ELSE %] Undefined [% END %] [% IF ( hardduedate ) %] [% IF ( hardduedatecompare == '-1' ) %] before [% hardduedate | $KohaDates %] [% ELSIF ( hardduedatecompare == '0' ) %] on [% hardduedate | $KohaDates %] [% ELSIF ( hardduedatecompare == '1' ) %] after [% hardduedate | $KohaDates %] [% END %] [% ELSE %] None defined [% END %] [% fine | html %] [% chargeperiod | html %] [% IF chargeperiod_charge_at %]Start of interval[% ELSE %]End of interval[% END %] [% firstremind | html %] [% overduefinescap FILTER format("%.2f") %] [% IF cap_fine_to_replacement_price %] [% ELSE %] [% END %] [% finedays | html %] [% maxsuspensiondays | html %] [% suspension_chargeperiod | html %] [% renewalsallowed | html %] [% renewalperiod | html %] [% norenewalbefore | html %] [% IF auto_renew %] Yes [% ELSE %] No [% END %] [% no_auto_renewal_after | html %] [% no_auto_renewal_after_hard_limit | $KohaDates %] [% reservesallowed | html %] [% IF holds_per_day.defined && holds_per_day != '' %] [% holds_per_day | html %] [% ELSE %] Unlimited [% END %] [% holds_per_record | html %] [% IF onshelfholds == 1 %] Yes [% ELSIF onshelfholds == 2 %] If all unavailable [% ELSE %] If any unavailable [% END %] [% IF opacitemholds == 'F'%] Force [% ELSIF opacitemholds == 'Y'%] Allow [% ELSE %] Don't allow [% END %] [% IF article_requests == 'no' %] No [% ELSIF article_requests == 'yes' %] Yes [% ELSIF article_requests == 'bib_only' %] Record only [% ELSIF article_requests == 'item_only' %] Item only [% END %] [% rentaldiscount | html %] Edit Delete
[% INCLUDE 'date-format.inc' %]
[% INCLUDE 'date-format.inc' %]
Patron category Item type   Note Current checkouts allowed Current on-site checkouts allowed Loan period Unit Hard due date Fine amount Fine charging interval Charge when? Fine grace period Overdue fines cap (amount) Cap fine at replacement price Suspension in days (day) Max. suspension duration (day) Suspension charging interval Renewals allowed (count) Renewal period No renewal before Automatic renewal No automatic renewal after No automatic renewal after (hard limit) Holds allowed (total) Holds allowed (daily) Holds per record (count) On shelf holds allowed OPAC item level holds Article requests Rental discount (%)  

Default checkout, hold and return policy[% IF humanbranch %] for [% Branches.GetName( humanbranch ) | html %][% END %]

You can set a default maximum number of checkouts, hold policy and return policy that will be used if none is defined below for a particular item type or category.

  Total current checkouts allowed Total current on-site checkouts allowed Maximum total holds allowed (count) Hold policy Hold pickup library match Return policy Actions
Defaults [% SET patron_maxissueqty = CirculationRules.Search( current_branch, undef, undef, 'patron_maxissueqty' ) %] [% SET patron_maxonsiteissueqty = CirculationRules.Search( current_branch, undef, undef, 'patron_maxonsiteissueqty' ) %] [% SET rule_value = CirculationRules.Search( current_branch, undef , undef, 'max_holds' ) %] Unset
[% IF ( show_branch_cat_rule_form ) %]

[% IF humanbranch %]Checkout, hold policy by patron category for [% Branches.GetName( humanbranch ) | html %][% ELSE %]Default checkout, hold policy by patron category[% END %]

For this library, you can specify the maximum number of loans that a patron of a given category can make, regardless of the item type.

If the total amount loanable for a given patron category is left blank, no limit applies, except possibly for a limit you define for a specific item type.

[% FOREACH c IN categorycodes %] [% NEXT UNLESS c %] [% SET patron_maxissueqty = CirculationRules.Search( branchcode, c, undef, 'patron_maxissueqty' ) %] [% SET patron_maxonsiteissueqty = CirculationRules.Search( branchcode, c, undef, 'patron_maxonsiteissueqty' ) %] [% SET max_holds = CirculationRules.Search( branchcode, c, undef, 'max_holds' ) %] [% IF ( patron_maxissueqty.defined && patron_maxissueqty != '' ) || ( patron_maxonsiteissueqty.defined && patron_maxonsiteissueqty != '' ) || ( max_holds.defined && max_holds != '' ) %] [% END %] [% END %]
Patron category Total current checkouts allowed Total current on-site checkouts allowed Total holds allowed  
[% IF c == undef %] Default [% ELSE %] [% Categories.GetName(c) | html %] [% END %] [% IF patron_maxissueqty.defined && patron_maxissueqty != '' %] [% patron_maxissueqty | html %] [% ELSE %] Unlimited [% END %] [% IF patron_maxonsiteissueqty.defined && patron_maxonsiteissueqty != '' %] [% patron_maxonsiteissueqty | html %] [% ELSE %] Unlimited [% END %] [% IF max_holds.defined && max_holds != '' %] [% max_holds | html %] [% ELSE %] Unlimited [% END %] Delete
[% END %]
[% IF current_branch == '*' %]

Default lost item fee refund on return policy

[% ELSE %]

Lost item fee refund on return policy for [% Branches.GetName(current_branch) | html %]

[% END %]

Specify the default policy for lost item fees on return.

Refund lost item fee  

[% IF humanbranch %]Holds policy by item type for [% Branches.GetName( humanbranch ) | html %][% ELSE %]Default holds policy by item type[% END %]

For this library, you can edit rules for given itemtypes, regardless of the patron's category.

Currently, this means hold policies. The various policies have the following effects:

  • From any library: Patrons from any library may put this item on hold. (default if none is defined)
  • From local hold group: Only patrons from libraries in the same item's home library hold groups may put this book on hold.
  • From home library: Only patrons from the item's home library may put this book on hold.
  • No holds allowed: No patron may put this book on hold.

Note: If the system preference 'AllowHoldPolicyOverride' is enabled, these policies can be overridden by your circulation staff.
Important: The policies are applied based on the ReservesControlBranch system preference which is set to [% Koha.Preference('ReservesControlBranch') | html %].

[% FOREACH i IN itemtypeloop %] [% SET holdallowed = CirculationRules.Search( branchcode, undef, i.itemtype, 'holdallowed' ) %] [% SET hold_fulfillment_policy = CirculationRules.Search( branchcode, undef, i.itemtype, 'hold_fulfillment_policy' ) %] [% SET returnbranch = CirculationRules.Search( branchcode, undef, i.itemtype, 'returnbranch' ) %] [% IF holdallowed || hold_fulfillment_policy || returnbranch %] [% END %] [% END %]
Item type Hold policy Hold pickup library match Return policy  
[% i.translated_description | html %] [% IF holdallowed == 2 %] From any library [% ELSIF holdallowed == 3 %] From local hold group [% ELSIF holdallowed == 1 %] From home library [% ELSE %] No holds allowed [% END %] [% IF hold_fulfillment_policy == 'any' %] any library [% ELSIF hold_fulfillment_policy == 'homebranch' %] item's home library [% ELSIF hold_fulfillment_policy == 'holdgroup' %] item's hold group [% ELSIF hold_fulfillment_policy == 'patrongroup' %] patron's hold group [% ELSIF hold_fulfillment_policy == 'holdingbranch' %] item's holding library [% END %] [% IF returnbranch == 'homebranch' %] Item returns home [% ELSIF returnbranch == 'holdingbranch' %] Item returns to issuing branch [% ELSIF returnbranch == 'noreturn' %] Item floats [% END %] Delete
[% MACRO jsinclude BLOCK %] [% Asset.js("js/admin-menu.js") | $raw %] [% INCLUDE 'calendar.inc' %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]