[Koha-bugs] [Bug 20644] Per itemtype setting for CheckPrevCheckout

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 21 16:13:53 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20644

Laura Escamilla <Laura.escamilla at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #156977|0                           |1
        is obsolete|                            |

--- Comment #5 from Laura Escamilla <Laura.escamilla at bywatersolutions.com> ---
Created attachment 163627
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=163627&action=edit
Bug 20644: Add checkprevcheckout on item types

I have added the "Check for previous checkouts" option to item types. This
option is visible only when the system preference "CheckPrevCheckout" is set to
either :
- "Unless overridden by patron category or by item type, do"
or
- "Unless overridden by patron category or by item type, do not."

This option takes precedence over patron and patron category preferences.

TEST PLAN
1) Apply the patch.
2) Perform an atomic update (installer/data/mysql/updatedatabase.pl)
3) Set the "CheckPrevCheckout" system preference to "Unless overridden by
patron category or by item type, do".
4) Go to "Koha administration > Item types > + New item type".
5) Fill in the necessary fields; the "Check for previous checkouts" field
should be set to "Inherit from system preferences".
6) Click the "Save changes" button.
7) Create an item with the type you have created.
8) Check out this item for a patron, then check it in.
9) Check out the same item for the same patron again.
10) The message "Patron has previously checked out this title: <Title>. Check
out anyway?" should appear.
11) Go to "Koha administration > Item types".
12) Edit the created item type.
13) Change the value of the "Check for previous checkouts" field to "No and try
to override system preferences".
14) Click the "Save changes" button.
15) Check out the same item for the same patron.
16) The message should not appear.
17) Run the tests "Borrower_PrevCheckout.t" (prove
t/db_dependent/Patron/Borrower_PrevCheckout.t) and "ItemTypes.t" (prove
t/db_dependent/Koha/ItemTypes.t).
18) Verify that all tests pass successfully.

Signed-off-by: Laura Escamilla <laura.escamilla at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list