]> git.koha-community.org Git - koha.git/commit
Bug 8365: Add a renewal duration in the issuing rules
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 7 Sep 2012 14:31:44 +0000 (16:31 +0200)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 22 Mar 2013 11:56:59 +0000 (07:56 -0400)
commit8ad00bc02ff23e0dad6661da9ff6b11745cda6f7
tree409daba7240972f6735f1c3ed9fd2476bf982b90
parent44e185bf8cc9c0c223849b940b82fa2aa54c498c
Bug 8365: Add a renewal duration in the issuing rules

Renew an issue for a number of days (filled in the issuing rules).

Test if rules work for any i[item]types and if there is no regression.

- new column issuingrules.renewalperiod
- remove all occurrences of an already removed syspref (globalDueDate)
- remove an unused routine (Overdues::GetIssuingRules)

How it works:
- On existing installations, the issuingrules.renewalperiod =
  issuingrules.loanlength. So the behaviour is the same before and after
  this patch.
- when you add a rule, you can choose a renewal period (the unit value
  is the issuingrules.unit). So you can have a renewal period in hours
  or days.
- The default value for the renewal period is 21 days (same as
  loanlength)

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Test comments on second patch.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
C4/Circulation.pm
C4/Overdues.pm
admin/smart-rules.pl
installer/data/mysql/kohastructure.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt
t/db_dependent/lib/KohaTest/Overdues.pm