[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
Mon Aug 11 08:36:28 CEST 2014


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

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

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

--- Comment #15 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 30680
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30680&action=edit
Bug 6906 - show 'Borrower has previously...

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 ('CheckPrevIssue'), 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 'CheckPrevIssue' (exposed in
  patrons.pref).
* installer/data/mysql/updatedatabase.pl: provide upgrade path.
* admin/categorie.pl: add 'checkprevissue' 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 updates from updatedatabase.pl manually.
- Verify 'CheckPrevIssue' 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