[Koha-bugs] [Bug 6906] show 'Borrower has previously issued $ITEM' alert on checkout

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 24 22:10:18 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6906

--- Comment #11 from Alex Sassmannshausen <alex.sassmannshausen at ptfs-europe.com> ---
Created attachment 27558
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=27558&action=edit
Patch to implement described functionality

New module: provide granular means to configure warnings about items
that have been issued to a particular borrower before, according to
their loan history.

- Global syspref ('CheckPrevIssueByDefault'), set to 'No' by default,
  allows users to enable this feature library wide.
- Per category pref allow libraries to create overrides per category,
  falling back on the global setting by default.
- Per borrower pref allows switching the functionality on at the level
  of borrowers. Fall-back to category settings by default.

* Koha/Borrowers/CheckPrevIssue.pm: new module.
* C4/Circulation.pm (CanBookBeIssued): introduce CheckPrevIssue check.
* koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt: Add
  'CHECKPREVISSUE' confirmation message.
* installer/data/mysql/kohastructure.sql: modify structure of
  'categories', 'borrowers'.
* installer/data/mysql/sysprefs.sql: add 'CheckPrevIssueByDefault'
  (exposed in patrons.pref).
* installer/data/mysql/updatedatabase.pl: provide upgrade path.
* admin/categorie.pl: add 'checkprevissuebycategory' to sql queries; pass
  it to template.
* .../admin/categorie.tt:
  .../members/memberentrygen.tt:
  .../members/moremember.tt:     add content.
* CheckPrevIssue.t: new file with unit tests.

Test plan:
- Apply patch.
- Run db updateds from updatedatabase.pl manually (I have not updated
  the database version yet — not sure whether I should have done?)
- Optionally, run Unit Tests (t/CheckPrevIssue.t)
- Verify 'CheckPrevIssueByDefault' is visible in Patrons sysprefs and
  can be switched 'on' and 'off'.
  + Issue previously issued items to a borrower, checking the message
    appears as expected.
- Verify 'Check previous loans' setting appears on the borrower
  category pages and can be modified per borrower category.
  + Issue previously issued items to a borrower, checking the message
    appears as expected (This setting should override the default
    setting).
- Verify 'Check previous loans' setting appears on individual borrower
  pages and can be modified.
  + Issue previously issued items to a borrower, checking the message
    appears as expected (This setting should override the category
    setting and the default setting).

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list