Koha/misc
Stefan Berndtsson 9d765eb5c9 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 "--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@ub.lu.se>
Signed-off-by: Timothy Alexis Vass <timothy_alexis.vass@ub.lu.se>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-01-04 16:33:15 +01:00
..
admin Bug 23816: (follow-up) Fix many things 2020-09-09 15:39:52 +02:00
bin Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
cronjobs Bug 21886: Add option to send notices from owning library instead of issuing library 2021-01-04 16:33:15 +01:00
devel Bug 25549: Remove plugin methods for broken plugins 2020-10-22 10:04:30 +02:00
interface_customization Bug 23148: Replace Bridge icons with transparent PNG files 2020-07-20 16:16:37 +02:00
load_testing Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
maintenance Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
migration_tools Bug 26337: Pass skip_merge to DelAuthority when removing unsused authorities 2020-11-18 12:03:03 +01:00
release_notes Correct Ubuntu versions in release notes - md 2020-11-30 11:19:35 +01:00
search_tools Bug 26996: Convert Elasticsearch indexer commit buffer size to integer 2021-01-04 13:29:55 +01:00
translator Fix translation issues 2020-11-27 16:35:09 +01:00
add_date_fields_to_marc_records.pl Bug 22509: (RM follow-up) Add use of Koha::Script base class 2019-06-24 15:08:33 +01:00
background_jobs_worker.pl Bug 22417: Process the jobs even if the message broker is not reachable 2020-10-05 15:26:36 +02:00
batchCompareMARCvsFrameworks.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
batchdeletebiblios.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
batchDeleteUnusedSubfields.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
batchImportMARCWithBiblionumbers.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
batchRebuildBiblioTables.pl Bug 24827: Standardise on 'UTF-8' as the encoding name 2020-03-16 14:45:39 +00:00
batchRebuildItemsTables.pl Bug 22721: Remove frameworkcode parameter in GetMarcFromKohaField calls 2019-07-15 11:28:08 +01:00
batchRepairMissingBiblionumbers.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
check_sysprefs.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
commit_file.pl Bug 17845: Adjust few other occurrences 2020-03-10 15:18:28 +00:00
export_borrowers.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
export_records.pl Bug 26175: Remove warn if undefined barcode in misc/export_records.pl 2020-08-26 15:21:41 +02:00
exportauth.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
import_patrons.pl Bug 23473: Allow overwrite of passwords during import 2020-03-27 12:21:59 +00:00
koha-install-log Bug 17851: Add Elasticsearch config to koha-conf.xml - Add missing entries to koha-install-log 2019-10-07 14:09:10 +01:00
kohalib.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
link_bibs_to_authorities.pl Bug 26641: Optimize CatalogModuleRelink lookup 2020-11-04 12:59:34 +01:00
load_yaml.pl Bug 24883: (RM follow-up) Use Koha::Script 2020-03-27 12:12:31 +00:00
mod_zebraqueue.pl Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
perlmodule_ls.pl
perlmodule_rm.pl Bug 21395: Make perlcritic happy 2020-06-29 12:37:02 +02:00
recreateIssueStatistics.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
sax_parser_print.pl Bug 17626 (QA followup) 2016-11-22 11:29:07 +00:00
sax_parser_test.pl Bug 6752: Be stricter with utf-8 encoding of output 2012-01-27 12:11:06 +01:00
sip_cli_emulator.pl Bug 22540: (QA follow-up) fixes 2019-10-08 14:33:34 +01:00
stage_file.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
z3950_responder.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00