Fix recall due date calculation to use relevant checkout

From Koha Wiki
Jump to navigation Jump to search

Fix the recall due date calculation to be based on the circulation rule of the relevant checkout borrower and item type, sponsored by Waikato Institute of Technology.

Getting started

Borrower A, of patron category A. Borrower B, of patron category A. Borrower C, of patron category B. Record A with an Item A, of item type A. Record B (note, a different record) with an Item B, of item type B. A circulation rule for patron category A/item type A. Ensure the recall due date interval is 3. A circulation rule for All/All. Ensure the recall due date interval is 7.

Test plan

Using patron category/item type specific circulation rule

  1. Check out Item A to Borrower A
  2. Log in to the OPAC as Borrower B
  3. Place a biblio-level recall on Item A
  4. Confirm the recalled item is due in 3 days and the due date has been calculated correctly.
  5. Cancel the recall
  6. Place an item-level recall on Item A
  7. Confirm the recalled item is due in 3 days and the due date has been calculated correctly.

Unspecified patron category, use All/All circulation rule

  1. Cancel the recall
  2. Check in Item A
  3. Check out Item A to Borrower C
  4. Log in to the OPAC as Borrower B
  5. Place a biblio-level recall on Item A
  6. Confirm the recalled item is due in 7 days and the due date has been calculated correctly.
  7. Cancel the recall
  8. Place an item-level recall on Item A
  9. Confirm the recalled item is due in 7 days and the due date has been calculated correctly.

Unspecified item type, use All/All circulation rule

  1. Cancel the recall
  2. Check out Item B to Borrower A
  3. Log in to the OPAC as Borrower B
  4. Place a biblio-level recall on Item B
  5. Confirm the recalled item is due in 7 days and the due date has been calculated correctly.
  6. Cancel the recall
  7. Place an item-level recall on Item B
  8. Confirm the recalled item is due in 7 days and the due date has been calculated correctly.

Other links

Go back to main recalls page