1 of 62

Poll - Guess how many columns are in the rules table

Just guess - don’t open Koha and take a count - just guess

1

2 of 62

2

The Terrific-Every-Other-Thursday Training Videos

​

YouTube Link

https://bit.ly/kohaus-tteot

​

3 of 62

These slides available at

3

https://bit.ly/tteot-slides

4 of 62

Terrific Every-Other-Thursday Training Videos - Live

Circulation and Fine Rules

5 of 62

George Williams

Next Search Catalog Coordinator�Northeast Kansas Library System�gwilliams@nekls.org�@georgehwilliams �(on MatterMost)

Has used Koha for 14+ years

5

6 of 62

Christopher Brannon

IT Coordinator�Coeur d’Alene Public Library�cbrannon@cdalibrary.org�@crispybran�(on Mattermost)

and support lead for InlandShare

Has used Koha for 14+ years�

6

7 of 62

Poll - Guess how many columns are in the rules table

Just guess - don’t open Koha and take a count - just guess

7

8 of 62

Circulation and Fine Rules

8

9 of 62

Circulation and Fine Rules - Where to find them

Breadcrumbs: Home > Administration > Circulation and fine rules�URL: /cgi-bin/koha/admin/smart-rules.pl

Permissions:

  • manage_circ_rules
  • manage_circ_rules_from_any_libraries

​

9

10 of 62

Circulation rules table

10

11 of 62

Other rules

11

12 of 62

Circulation Rules

  1. Problems�
  2. Past changes�
  3. Current bugs�
  4. The future

​

12

13 of 62

Problems - this is the view from librarians

We will also freely admit that the more libraries you have in your Koha, the more complex managing circulation rules becomes

13

14 of 62

Problems - the view from libraries

​

  1. Rules table is 9 miles wide
  2. Access to view is blocked for most staff
  3. Need for a single rule or exception forces rules for all circumstances
  4. Rules can’t be applied to groups of “things”

​

14

15 of 62

Problems - the view from libraries

​

  1. Rules table is 9 miles wide

15

16 of 62

Poll - Guess how many columns are in the rules table

​

16

17 of 62

17

18 of 62

18

19 of 62

19

20 of 62

20

21 of 62

Season 2: episode 16

21

22 of 62

22

23 of 62

Poll - Guess how many columns are in the rules table

​

23

24 of 62

Possible solutions

Problem 1 - Table is 9 miles wide

Separate tables for different elements:

  • Circulation and renewals rules table
  • Fines and fees rules table
  • Holds rules table

24

25 of 62

Possible solutions

Problem 1 - Table is 9 miles wide

Create a system preference for Suspensions

If you library doesn’t enable Suspensions then the columns for the Suspension rules don’t appear in the table

(like the way Article requests don’t appear if you don’t have the ArticleRequests system preference set to “Enable” )

25

26 of 62

Problems - the view from libraries

​

  1. Rules table is 9 miles wide
  2. Access to view is blocked for most staff

26

27 of 62

Permissions

If you have this permission, you can edit and view circulation rules for your library

  • manage_circ_rules

If you have the first permission and this one:

  • manage_circ_rules_from_any_libraries

You can view and edit everyone’s circulation rules

27

28 of 62

Work arounds

Problem 2 - Staff can’t view rules without edit permissions

https://wiki.koha-community.org/wiki/SQL_Reports_System_Administration

​

​

28

29 of 62

Possible solution

Problem 2 - Staff can’t view rules without edit permissions

Allow staff without permission to edit rules the permission to view the rules

This could either be by creating a “View rules” permission or allowing anyone with staff interface access to view.

29

30 of 62

Problems - the view from libraries

​

  1. Rules table is 9 miles wide
  2. Access to view is blocked for most staff
  3. Need for a single rule forces rules for all circumstances �

30

31 of 62

Branch/All/All rules and exceptions

If you have an All/All rule for your library, every other rule is an exception to that rule

But if you have just a minor exception, you need to write a complete rule for the patron category/item type

31

32 of 62

Example

I have an All patron categories / All item types rule set up that allows

Current checkouts = 10�Loan period = 14�Renewals allowed = 1�Renewal period = 14�Holds allowed = 1�

32

33 of 62

Example

If I have an exception to that rule where the “Video” item type only allows 5 current checkouts, I can’t just create a row for All patron categories / Video item type and set

Current checkouts = 5�

If I do, all of the other elements in the row for that rule will default to Null values or zeroes and the rule won’t work the way I want it to.

33

34 of 62

Example

If I want Video items to allow 5 current checkouts, I have to write a full rule

Current checkouts = 5�Loan period = 14�Renewals allowed = 1�Renewal period = 14�Holds allowed = 1

34

35 of 62

Possible solutions

Problem 3 - Need for a single rule forces rules for all circumstances

If there is an “All/All” rule, it would be better if entering null values in an exception meant that the values from the “All/All” rule were followed rather than following the existing rules for null values

35

36 of 62

Possible solutions

Problem 3 - Need for a single rule forces rules for all circumstances

There are other ideas later that will also address this problem

36

37 of 62

Problems - the view from libraries

​

  1. Rules table is 9 miles wide
  2. Access to view is blocked for most staff
  3. Need for a single rule forces rules for all circumstances
  4. Rules can’t be applied to groups of “things”

​

37

38 of 62

Groups of “things”

Things in this context can mean:

  • Groups of libraries
  • Groups of patron categories
  • Groups of item types

38

39 of 62

Library groups

It is possible to create library groups�(see Home > Administration > Library groups)�

But you cannot set circulation rules based on library groups

39

40 of 62

Groups of patron categories or item types

NEKLS has 3 different item types for video recordings that have matching circulation rules at most of the member libraries. It would be nice to write one rule that applies to all 3 item types at the same time when the rules to be written are identical.

The same is true for patron categories.

40

41 of 62

Possible solutions

Problem 4 - Rules can’t be applied to groups of “things”

Incorporate library groups into the circulation rules

41

42 of 62

Possible solutions

Problem 4 - Rules can’t be applied to groups of “things”

Add the ability to Multi-select in the Patron category and/or Item type drop-downs in the rules table.

42

43 of 62

Changes over the last 14 years

  1. More rules!
  2. issuingrules data moved to circulation_rules
  3. Lost item policy - Waiting hold cancellation policy
  4. Warnings
  5. Permissions have changed to allow more granular access to rules
  6. Highlighting

43

44 of 62

  1. Lots of rules added since 2010

Koha 3.2 - 14 columns (October 2010)

Koha 25.11 - 36 columns

(More if you turn on features like Unseen renewals, Article requests and Recalls)

44

45 of 62

Circulation rules table from Koha 3.2 - 14 columns (October 2010)

45

46 of 62

46

47 of 62

2. issuingrules migrated to circulation_rules

Circulation rules used to be in the “issuingrules” �table in 20.05 bug 18936

Part of a larger (unfinished) circulation rules re-write

47

48 of 62

2. issuingrules vs. circulation_rules

issuingrules was structured with each rule in a separate column - the table had the same structure as the interface

circulation_rules is structured with each rule in a separate row

48

49 of 62

3. Rule granularity

Lost item fee refund on return policy used to be set system-wide

Can still be set system-wide, but it can now be modified on a library-by-library basis through the rules module

49

50 of 62

4. Additions to other rules on the page

Default Checkouts and Hold Policy - 6 columns added�Default checkout, hold policy by patron category - 2 columns added�Default waiting hold cancellation policy - New in 2023?�Default lost item fee refund on return - New in 20.11�Default holds and bookings policies by item type - “Bookings” added in 23.11

50

51 of 62

Current bugs in Bugzilla

These are some bugs that are either suggestions, works in progress, works soon to be released, or works that were just released:

51

52 of 62

Bug 40757 Highlight circulation rules on click

Click on a row in the circulation rules to highlight

Added in 25.11

Status: Needs documenting

52

53 of 62

Bug 41439 Column filtering on the circ rules table

Built in buttons to filter columns - just like the jQuery workaround mentioned earlier

Status: Signed off (but has some potential QA problems)

53

54 of 62

54

55 of 62

Bug 39973 Add inline editing

Add inline editing to circulation and fine rules table

Click on a cell to edit instead of pushing the whole row to the bottom of the table

Status: New

55

56 of 62

Bug 15523 Move some sysprefs to circulation rules

Move a number of sysprefs to circulation rules (Omnibus)

Some of these have been done, some have not - the idea is to move some things from system preferences to smartrules.pl so they can be done on a library-by-library basis

Status: Assigned

56

57 of 62

Bug 16207 Incorporate circulation . . .

Incorporate circulation and fine rules for library groups

Utilize Koha’s library groups so that rules can be defined for a group of libraries instead of library-by-library

Status: Assigned

57

58 of 62

Bug 19037 Circulation and fine rules test tool

Rules testing tool

Create a testing tool that shows the rule that matches item, patron, and branch

Status: Failed QA

58

59 of 62

Future of circulation rules - what we’d like to see

​

  1. Does it have to be that 9 mile wide table? Can we unbiggen the table
  2. Permission for view only access to rules page
  3. Multiple ways to view the rules/data (what if each column was its own tab)
  4. Warnings about rule conflict/duplication
  5. Stephen’s ideas (see the next slide)

59

60 of 62

Stephen’s ideas for further changes

​

The rules are disaggregated now, so why don’t we disagregate the interface

Rules pages - essentially, create rules first, then decide which library/patron/itype groups to add the rules to

(Like roles for permissions in Aspen)

60

61 of 62

These slides available at

61

https://bit.ly/tteot-slides

62 of 62

cbrannon@cdalibrary.org

george@nekls.org

62

Be amazed by us on YouTube at

https://youtube.com/kohaus