Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check prev issue squashed #107

Closed
wants to merge 2 commits into from
Closed

Check prev issue squashed #107

wants to merge 2 commits into from

Conversation

mrenvoize
Copy link
Member

No description provided.

Alex Sassmannshausen added 2 commits April 7, 2016 16:20
* Koha/Categories.pm: New file.
* Koha/Category.pm: New file.
New feature: 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 'hardno' by default, allows
  users to enable this feature library wide.
- Per patron category pref allows libraries to create overrides per
  category, falling back on the global setting by default.
- Per patron pref allows switching the functionality on at the level
  of patron. Fall-back to category settings by default.

* Koha/Patron/CheckPrevIssue.pm: New file
* C4/Circulation.pm (CanBookBeIssued): Introduce CheckPrevIssue check.
* admin/categories.pl: Pass along checkprevissue.
* koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt: Expose
  CheckPrevIssue per category setting.
* koha-tmpl/intranet-tmpl/prog/en/modules/preferences/patrons.pref:
  Expose CheckPrevIssue syspref.
* koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt:
  Expose per patron CheckPrevIssue preference.
* koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt: Expose
  per patron CheckPrevIssue preference.
* 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'.
* installer/data/mysql/atomicupdate/checkPrevIssue.sql: New file.
* t/db_dependent/Patron/CheckPrevIssue.t: New file with unit tests.

Test plan:
- Apply patch.
- Run updatedatabase.
- Regenerate Koha Schema files.
- Run the unit tests.
- Verify 'CheckPrevIssue' is visible in Patrons sysprefs and can be
  switched to 'hardyes', 'softyes', 'softno' and 'hardno'.
  + Check out previously issued items to a patron, checking the message
    appears as expected.
- Verify no 'Check previous loans' setting appears on the borrower
  category pages if the syspref is set to a 'hard' option.
- 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 if that is set to a 'soft' option).
- Verify no 'Check previous loans' setting appears on the individual
  borrower pages if the syspref is set to a 'hard' option.
- 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 if the latter is set to a 'soft'
    option).
=head1 SYNOPSIS

Provide a feature to check whether a patron has previously checked out items
associated with a a biblio.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo 'a a biblio'

@mrenvoize
Copy link
Member Author

Generally looks very good, well done.. Only had the one minor typo to spot :)

@mrenvoize
Copy link
Member Author

In master now :)

@mrenvoize mrenvoize closed this Jul 19, 2018
@mrenvoize mrenvoize deleted the checkPrevIssueSquashed branch July 19, 2018 14:17
mrenvoize pushed a commit that referenced this pull request Nov 11, 2020
This commit implements the feedback from Katrin in comment #103 ->
comment #108:

- Fixed rebase issue mentioned in comment #103
- Fixed ILL notice display mentioned in comment #106
- Fixed bug with metadata display, though not the issue that was
mentioned in comment #107
- Fixed buttons display mentioned in comment #107, in addition to some
more buttons suffering the same issue

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant