[Koha-bugs] [Bug 21886] Add option to send notices from owning library instead of issuing library

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 12 13:12:28 CET 2019


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

Björn Nylén <bjorn.nylen at ub.lu.se> changed:

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

--- Comment #3 from Björn Nylén <bjorn.nylen at ub.lu.se> ---
Created attachment 86513
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=86513&action=edit
Bug 21886: Add option to send notices from owning library instead of issuing
library

The provided patch adds the following functionality:

* Add --owning to both advance_notice.pl and overdue_notice.pl
* Add --library to advance_notice.pl like the way overdue_notice.pl already
works

When specifying "--owning" both scripts will use items.homebranch instead of
issues.branchcode to determine sending library.

For advance_notice.pl this affects non-digest DUE and PREDUE, but not digest
notices.

To test:

1.  Have a patron who wants advance notices as email with 2 days in advance
(not digest)
2.  Have the first overdue date set 3 days past due date
3.  Have issue for that patron where date_due is 2 days away where the item
homebranch differs from the issuing branch
4.  Have issue for that patron where date_due is 3 days old
5.  Run advance_notices.pl without --owning
6.  Run overdue_notices.pl without --owning
7.  Confirm that two messages were created for that patron with the sender
being the issuing branch
8.  Delete messages or create two more issues according to (3) and (4)
9.  Run advance_notices.pl with --owning
10. Run overdue_notices.pl with --owning
11. Confirm that the two messages created has the item homebranch as sender

Extra feature for advance_notices.pl is that it adds a "--library" the same way
overdue_notices.pl
has. Adding variants of that flag in steps (5) and (9) above can confirm this
option as well.

Sponsored-by: Gothenburg University Library
Signed-off-by: Björn Nylén <bjorn.nylen at ub.lu.se>

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


More information about the Koha-bugs mailing list