Commit Graph

2610 Commits

Author SHA1 Message Date
David Schmidt 4c28ab1bdc Bug 30132: Fix POD, show correct usage of Getopt::Long
the USAGE of overdue_notices.pl shows options such as -date OR
-csv that should be written with double dashes like --date or --csv

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 0322275a5b)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2022-03-20 14:56:13 +00:00
Andrew Fuerste-Henry 5891634c0f Update release notes for 21.05.12 release
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2022-03-10 20:24:06 +00:00
Andrew Fuerste-Henry 0bda07f263 Update release notes for 21.05.11 release
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2022-02-21 17:44:25 +00:00
Andrew Fuerste-Henry 6ce58b04fd Fix translations for Koha 21.05.11
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2022-02-21 17:34:53 +00:00
Koha translators c1ab52400a Translation updates for Koha 21.05.11
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2022-02-21 14:13:36 -03:00
Hayley Pelham 96a3e6b153 Bug 29054: Add verbose check for warn in advance_notices.pl
To test:
1) Set EnhancedMessagingPreferences to Don't allow
2) In the koha-shell, run misc/cronjobs/advance_notices.pl -c
3) Note that you see the warning "The "EnhancedMessagingPreferences"
syspref is off... etc."
4) Apply the patch and restart services
5) In the koha-shell, run misc/cronjobs/advance_notices.pl -c and note
the warning no longer shows
6) Still in the shell, run misc/cronjobs/advance_notices.pl -c -v and
note the warning does show

Sponsored-by: Catalyst IT
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit f15c9462e3)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2022-02-21 14:51:04 +00:00
Andrew Fuerste-Henry 17380ea6ab Update release notes for 21.05.10 release
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2022-02-09 18:00:36 +00:00
Andrew Fuerste-Henry ae01411e94 Update release notes for 21.05.09 release
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2022-01-31 17:42:28 +00:00
Andrew Fuerste-Henry e822170d84 Fix translations for Koha 21.05.09
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2022-01-31 16:57:45 +00:00
Koha translators d8d02aaf73 Translation updates for Koha 21.05.09
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2022-01-31 12:38:03 -03:00
Joonas Kylmälä f6f7c4c864 Bug 29381: Prevent sending of automatic renewal messages on every cron run
Currently the auto-renewal digest messages are sent on every cron run
even if there was nothing to renew or no renewal errors.

This regression was introduced in the commit "Bug 18532: Add
individual issues to digest notice and hide auto_renewals messaging
preference when not needed".

To test:
 1) set syspref AutoRenewalNotices to be according to patron
    preferences
 2) Enable renewal digest messages on a patron's messaging preferences
 3) Checkout a book for patron, during the checkout use the Checkout
 settings menu to check the box "Automatic renewal"
 4) Run
    $ perl misc/cronjobs/automatic_renewals.pl --send-notices --confirm --digest-per-branch
    $ perl misc/cronjobs/automatic_renewals.pl --send-notices --confirm --digest-per-branch
 5) Notice you have now two renewal messages for the patron
 6) Apply patch
 7) repeat step 4) and notice you don't get anymore these unnecessary
    renewal messages

Signed-off-by: David Nind <david@davidnind.com>

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 92dce6465e)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2022-01-03 16:01:10 +00:00
Andrew Fuerste-Henry a3cc038ea4 Update release notes for 21.05.08 release
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2021-12-23 15:52:09 +00:00
Andrew Fuerste-Henry d8bf745d93 Translation fixes for 21.05.08
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2021-12-23 15:28:01 +00:00
Koha translators 4b05bff27a Translation updates for Koha 21.05.08
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2021-12-23 11:53:12 -03:00
Kyle M Hall b1fc8d7fa6 Update release notes for 21.05.07 release
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-11-30 11:35:53 -05:00
Kyle M Hall d3bceb0628 Update release notes for 21.05.06 release
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-11-26 06:49:01 -05:00
Kyle M Hall dff2949304 Fix translations for Koha 21.05.06
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-11-26 06:39:11 -05:00
Koha translators 06212a3ea3 Translation updates for Koha 21.05.06 2021-11-26 08:32:51 -03:00
Magnus Enger d316a33de9 Bug 28994: Fix logical errors with amount vs amoutoutstanding
The writeoff debts script contained an error whereby we could writeoff
more than the current outstanding debt of a charge.  This patch corrects
that mistake by passing amountoutstanding in place of amount in the
writeoff and offset creation lines.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-11-19 10:47:59 -05:00
Kyle M Hall f386c8ce85 Bug 28474: Pass process_message_queue.pl params to before_send_messages plugin hooks
It would be useful to send most of the process_message_queue.pl script parameters to any plugin before_send_messages hooks. For example, the Twilio Voice plugin uses before_send_messages to send phone messages, but if the script is called with "-t email", it doesn't know and will make phone calls! If that info were passed in, the plugin could be made aware of it and only make calls if no "-t" or a "-t phone" were set in the parameters.

Test Plan:
1) Apply this patch
2) Install Kitchen Sink plugin v2.2.0 or later
   https://github.com/bywatersolutions/dev-koha-plugin-kitchen-sink/releases/download/v2.2.0/dev-koha-plugin-kitchen-sink-2.2.0.kpz
3) Run misc/cronjobs/process_message_queue.pl with any or all non-email
   related paramters
4) Note the plugin output shows the parameters were passed to the plugin

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-11-05 14:20:39 -04:00
Nick Clemens 7c3b228a75 Bug 29223: Use patron's branchcode for digest if not sending digest per branch
To test:
 1 - Set system preference  AutoRenewalNotices to 'according to patron messaging preferences'
 2 - Set circ rule for auto renewal - 100 renewals allowed - no renewal before 100
    This shoud make a checkout eligible for many auto renewals for testing
 3 - Checkout an item to a patron, ensure item is from a different branch than patron
 4 - Ensure the patron has an email, and set an email for patron's branch and items branch
 5 - Set the patron messaging preferences for auto-renewal to 'email' and 'wants digest'
 6 - perl misc/cronjobs/automatic_renewals.pl --send-notices --confirm
 7 - Job dies:
    Can't call method "from_email_address" on an undefined value at /usr/share/koha/bin/cronjobs/automatic_renewals.pl line 286.
 8 - Apply patch
 9 - Repeat
10 - NO errors
11 - Check patron notices tab, should be a notice enqueued, check DB to see from address is patron's branch
12 - perl misc/cronjobs/automatic_renewals.pl --send-notices --confirm --digest-per-branch
13 - No errors
14 - Check patron notices tab, should be a notice enqueued, check DB to see from address is item's branch

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-11-05 08:59:34 -04:00
John Doe 1ef55b51a1 Update release notes for 21.05.05 release
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-10-28 09:19:50 -04:00
Kyle M Hall 855fe1f9a7 Fix translations for Koha 21.05.05
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-10-28 08:27:56 -04:00
Kyle M Hall 937ab355f9 Merge remote-tracking branch 'koha-translate/21.05.05-translate-20211027' into 21.05.x 2021-10-28 06:31:36 -04:00
Koha translators bcf404e9d9 Translation updates for Koha 21.05.05 2021-10-27 15:34:07 -03:00
Caroline Cyr La Rose e85d5b3af1 Bug 29216: Correct --where documentation in update_patrons_category.pl
This patch removes two misleading examples of the --where parameter
documentation in update_patrons_category.pl

To test:

1. Apply patch
2. In your favourite text editor, open misc/cronjobs/update_patrons_category.pl
3. Look for the documentation for the --where parameter (around line 133 or so)
4. Make sure the examples and their explanations make sense
5. Sign off :)

Signed-off-by: David Nind <david@davidnind.com>

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-10-22 11:35:41 -04:00
Nick Clemens 392f673cae Bug 28352: Only check authorised values mapped to DB fields
The errors reported seem to be caused by authorised values mapped to MARC fields
but not mapped to a koha field.

We should additionally make sure to check the Default framework

Also, adding comment to indicate we only check records with items, because we do

TO test:
1 - In a framework that is not the default map a MARC field to an authorised value, but not a koha field
2 - In SQL, force the kohafield to NULL for the mapping you just make
    UPDATE marc_subfield_structure SET kohafield = NULL WHERE frameworkcode='BKS' and authorised_value='HINGS_AS'
3 - perl misc/maintenance/search_for_data_inconsistencies.pl
4 - get the following errors:
Use of uninitialized value $tmp_kohafield in pattern match (m//) at /kohadevbox/koha/misc/maintenance/search_for_data_inconsistencies.pl line 151.
Use of uninitialized value $tmp_kohafield in substitution (s///) at /kohadevbox/koha/misc/maintenance/search_for_data_inconsistencies.pl line 154.
Can't call method "get_column" on an undefined value at /kohadevbox/koha/misc/maintenance/search_for_data_inconsistencies.pl line 157.
5 - Apply patch
6 - Repeat
7 - No more errors

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-10-08 09:52:43 -04:00
Marcel de Rooy 3e0d610031 Bug 29078: Resolve division by zero in touch_all scripts
Illegal division by zero at misc/maintenance/touch_all_biblios.pl line 102.

Trivial fix.
Funny that the percentage is not even shown without verbose flag ;)

Test plan:
Run misc/maintenance/touch_all_biblios.pl -where 'biblionumber<0'
You should now see:
Good: 0, Bad: 0 (of 0) in 0 seconds

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-10-08 09:19:28 -04:00
Nick Clemens 619e60fd55 Bug 29076: Fetch the zebraqueue entries when not confirm
This patch remove a check for confirm when fetching the entries
for possible deletion from the zebraqueue

Without this we die when we try to access the entries for counting

To test:
1 - perl  misc/cronjobs/cleanup_database.pl --sessions --zebraqueue 10 --list-invites --z3950 --logs 180 --mail 375 -v
2 - Dies
3 - Apply patch
4 - Repeat 1
5 - Success!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-10-08 06:47:32 -04:00
Kyle Hall 9332ade97e Update release notes for 21.05.04 release
Signed-off-by: Kyle Hall <kyle@bywatersolutions.com>
2021-09-23 10:43:41 -04:00
Kyle Hall 13405e11e6 Fix translations for Koha 21.05.04
Signed-off-by: Kyle Hall <kyle@bywatersolutions.com>
2021-09-23 09:46:21 -04:00
Koha translators 1871da99ce Translation updates for Koha 21.05.04 2021-09-23 10:21:12 -03:00
Kyle M Hall c0d5b3dc0c Fix release notes for 21.05.03 release 2021-08-24 11:02:07 -04:00
Kyle M Hall e6efeb9e0c Update release notes for 21.05.03 release
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-08-24 10:06:51 -04:00
Kyle M Hall bd3dc3f758 Fix translations for Koha 21.05.03
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-08-24 09:51:21 -04:00
Koha translators 00903f4e5d Translation updates for Koha 21.05.03 2021-08-24 09:51:21 -04:00
Kyle M Hall 00a5edc91a Update release notes for 21.05.02 release
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-07-30 08:14:21 -04:00
Kyle M Hall eb93f8e04e Fix translations for Koha 21.05.02 2021-07-30 08:14:21 -04:00
Koha translators e6c3ce192f Translation updates for Koha 21.05.02 2021-07-26 08:46:50 -03:00
Jonathan Druart f131e51984 Bug 28399: Remove txn error from batchRebuildItemsTables.pl
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-07-16 08:10:10 -04:00
Martin Renvoize 1c49ccaa8e Bug 28581: Use 'from_email_address' where appropriate
This patch replaces a few more trivial cases where we were using
library->branchemail with a fallback to KohaAdminEmail to just use the
new library->from_email_address method directly instead.

There were also a couple of cases where we were passing borrowernumber
and the patrons library from address too.. this is unneccesary as the
code in _send_email_massage will already default to patron library from
address if we do not pass an override.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Added a semicolon.

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-07-09 09:05:48 -04:00
Marcel de Rooy 17ac49efaf Bug 28581: Use from_email_address in the codebase
Adding only a few (trivial) cases now. Changes in C4::Letters
are not trivial after all..
We now add the KohaAdminEmail fallback implicitly when the from
address was still empty. The extra check makes us not rely on
a do or die action in Email::Stuffer.

Test plan:
Run password recovery or membership expiry cron.
Check sender address.

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>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-07-09 09:05:48 -04:00
Nick Clemens 2f2c35da9b Update release notes for the 21.05.01 release
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2021-06-24 16:44:48 +00:00
Nick Clemens e06935d71a Translation fixes for 21.05.01 release
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2021-06-24 12:15:11 -04:00
Koha translators b0c07f7c1c Translation updates for Koha 21.05.01
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2021-06-24 12:15:11 -04:00
David Cook f4bede3469 Bug 28519: Put CGI::Session::Serialize::yamlxs in lib directory
This patch adds a "lib" directory to the source tree which gets
mapped to the same directory as "C4" and "Koha" for single and
standard installations.

CGI::Session::Serialize::yamlxs is put into this "lib" directory.

This patch also includes some changes so that dev/git installations
work as well.

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-06-18 11:23:42 -04:00
Nick Clemens a4cdeaae3f Bug 28503: Unit tests
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-06-18 11:16:37 -04:00
Jonathan Druart 09fcc66ab8 Bug 28487: Fallback to default template in overdue_notices
There is no fallback to the "default" language if there is no
language-specific template for the lang of the patron.

I am not really sure why we are not using GetPreparredLetter here (which
defaults), but this needs to be backported into all stable branches and
so as small as possible.

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>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2021-06-18 08:40:02 -04:00
Jonathan Druart 07af6c7370 Add release notes for Koha 21.05.00 2021-05-28 14:45:29 +02:00
Andrew Nugged a93f45ecc9 Add and fix few messages in second plural form for pl, be, ru languages
Fixed missed "singular" message which had word "one" instead of "{count}" for uk and ru because it should be used not only for "1" but also for "21, 31, ...".

Add formula for 2/3 form for Russian (Plural-Forms:...)
and Belarusian and Ukrainian formulas normalized to be the same for all three languages
2021-05-28 13:18:18 +02:00