Commit Graph

1777 Commits

Author SHA1 Message Date
Chris Cormack be26297c0e Release notes for 3.20.14 2016-08-23 11:04:37 +12:00
Chris Cormack 79d6cb4400 PO file updates 2016-08-23 10:51:18 +12:00
Chris Cormack 6674325729 Release notes for 3.20.13 2016-07-25 11:30:01 +12:00
Chris Cormack 34538cb02f PO file updates for 3.20.13 2016-07-25 11:19:33 +12:00
Chris Cormack 402c827fb9 Release notes for 3.20.12 2016-06-23 10:13:08 +12:00
Chris Cormack 3845510ecc Translation updates for 3.20.12 2016-06-23 09:51:48 +12:00
Frédéric Demians 66a7d1aec6 Translation for 3.20.11 2016-04-27 17:49:52 +02:00
Frédéric Demians e727480891 Version 3.20.11 2016-04-27 17:31:42 +02:00
Jonathan Druart 61b64efe02 Bug 15967: Fix regression from bug 14133 - notify the library if patron is not
Regression introduced by bug 14133, see but 14133 comment 13.

Test plan:
Without this patch applied, if a patron cannot be notified (no email
address or sms number), the print notice generated for the library was
not.
With this patch applied, the print notice should be generated using the
print template

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

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

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit faaa2cbcdb)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit 8664af5e20)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2016-04-27 16:09:35 +02:00
Frédéric Demians 746dfe072b Translation for 3.20.10 2016-03-23 16:19:07 +01:00
Frédéric Demians 6e39e59f06 Version 3.20.10 2016-03-23 16:11:29 +01:00
Frédéric Demians 87db809936 Version 3.20.9 2016-03-01 18:05:08 +01:00
Frédéric Demians 8ce3e5dbae Translations for 3.20.9 2016-03-01 17:59:56 +01:00
Kyle M Hall 841642e77c Bug 15742 [QA Followup] - Tidy script
Script does not appear to have any other modifying patches at this
time based on bz splitter. This is a perfect time to clean up this
script!

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
(cherry picked from commit 0277c545b0)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit 63230f6bfe)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2016-03-01 15:36:04 +01:00
Jonathan Druart c891576cfc Bug 15742: Remove unnecessary loop in j2a cronjob
If no branchcode is given, all the libraries are retrieved and the same
query (so without using the libraries loop) is executed for each
library.

Test plan:
Use the j2a.pl cronjob to change the category of a child patron
If a branchcode is passed to the script, only the children from this
branchcode should be updated.
But if it is not passed, all children of the DB should be updated.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
(cherry picked from commit cf04724789)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit 93c5535eb5)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2016-03-01 15:35:40 +01:00
Kyle M Hall 0dc55b829b Bug 15687 [QA Followup] - Tidy sub to remove tab characters
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 6d24219976)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit f9978afb60)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2016-02-18 19:40:08 +01:00
Julian Maurice eca6afb662 Bug 15687: Fix xgettext.pl syntax errors
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 70112cfb81)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit af24e8ee01)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2016-02-18 19:39:51 +01:00
Natasha 85df138772 Bug 14624 - <<items.content>> for advance_notices.pl wrongly documented
To Test Check perldoc for misc/cronjobs/advance_noitces.pl
and see that the documentation matches.

Ran:
$ perldoc misc/cronjobs/advance_noitces.pl
Saw expected changes.
Koha QA test tools pass too.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Switched due date for the name of the database column
date_due as the parameter expects a list of database
column names.

(cherry picked from commit 4120e48b0f)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit b3586e5dc7)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2016-02-11 19:59:37 +01:00
Jonathan Druart e56a39f657 Bug 14133: Print notices should be generated with the print template
If the overdue notice to send is an email or a SMS and the patron does
not provided such information, a print notice is generated.
But it will be generated with the email or sms template, which is not
useful, especially in the SMS case.

The template to use should be the print one.

Test plan:
0/ Does not apply this patch and Correctly define the overdue rules to generate
an overdue notice to the message_queue table.
Check email + SMS
1/ Define an email address and a SMS number for a patron
2/ Generate the overdue notices (misc/cronjobs/overdue_notices.pl [-t])
3/ 2 notices should have been generated:
    mtt=email with the email template used
    mtt=sms   with the sms template used
4/ Truncate the message_queue table
5/ Remove the email address and repeat 2
6/ Only 1 notice should have been generated:
    mtt=print with the email template used
7/ Truncate the message_queue table
8/ Remove the sms alert number and repeat 2
9/ 2 notices should have been generated:
    mtt=print with the email template used (or sms I suppose)

10/ Apply this patch and repeat previous steps.
The print notices should be generated with the print template.

IMPORTANT NOTE: This test plan does not take into account the notices
generated for the staff ("These messages were not sent directly to the
patrons."). However the behavior will also change, the print template
will be used in all cases. Is it what we want?

Signed-off-by: Chris <chris@bigballofwax.co.nz>

Seems fine by me

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 581759e985)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit d55a5ca464)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2016-02-11 19:55:43 +01:00
Marcel de Rooy 7d81810d14 Bug 15240: [QA Follow-up] Minor adjustments
This patch does:
[1] It removes some unused modules.
[2] It adds some options not listed in the synopsis.
[3] It removes an unused sql expression from one query.
    Note: In fines related code the third parameter of CalcFine sometimes
    is named as days_overdue too.
[4] Corrects a few typos in comments or pod.

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

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 8d072272fa)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit b94fc3419d)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2016-02-11 19:31:26 +01:00
Jonathan Druart 153877f10f Bug 15240: Do not process issues with a date due later than today
There is no need to do this job in Perl, MySQL could do it instead.
The idea is to only retrieve the issues info which could be overdued.

To test:
1/ Run the script
2/ Apply the patch
3/ Run the script again, notice the exact same results but execution time is faster

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 0d36c27678)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit e46923af88)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2016-02-11 19:21:30 +01:00
Jonathan Druart 5ffe29c646 Bug 15188: Do not remove unused auths if zebra is not reachable
Other conn errors should be checked (wrong user/pwd, etc.)

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

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit a60943bc1b)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit 67b3f0196e)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2016-02-11 18:59:02 +01:00
Alex Arnaud 61c4621217 Bug 15188 - Fixes remove_unused_authorities.pl will delete all authorities if zebra is not running
Test plan:

1) Shut down zebra: koha-zebra-ctl.sh stop
2) Execute the script: remove_unused_authorities.pl (with -t if you
   don't want to really delete from your database).
3) Check that the script would have deleted all the authorities (eg:
   31449 authorities parsed, 31449 deleted and 0 unchanged because
   used).
4) Apply patch
5) Run, notice that the script dies because zebra is unavailable

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

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

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 128e7f54b1)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit 6b6213deea)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2016-02-11 18:57:37 +01:00
Frédéric Demians da58b67a1a Release notes 3.20.8 2016-01-28 10:35:34 +01:00
Frédéric Demians 01387008e9 Update .po files 2016-01-28 10:29:49 +01:00
Olli-Antti Kivilahti 43dd07d73a Bug 15080 - ./translate tool should tell if xgettext executable is missing
Just upgraded our Koha container to 14.04 and noticing the
misc/translator/translate doesn't work.  This is because of a missing
package gettext.

This patch makes ./translate die with a helpful suggestion to install
gettext if xgettext-program is missing.

Signed-off-by: Frederic Demians <f.demians@tamil.fr>
  I can reproduce the bug by desinstalling 'gettext' package on a Debian
  box. I confirm that without this patch, 'translate' command fails
  miserably. Suggesting to install gettext package is welcomed.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
(cherry picked from commit 37b0e2ce9c)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit 52a9bed15f)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2015-12-31 19:04:02 +01:00
Bernardo Gonzalez Kriegel 95a5b0ded0 Translation updates for Koha 3.20 release
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2015-12-24 16:20:45 +01:00
Frédéric Demians aa2a182b80 Version 3.20.7
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2015-12-24 16:20:04 +01:00
Fridolin Somers 4b10d5b610 Bug 15193 - Perl scripts missing exec permission
Some perl scripts have 644 permissions instead of 755.

I think some are special like install-CPAN.pl.

This patch corrects some common perl scripts.

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>

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

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 3410608b66)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit bff51cb38c)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2015-12-14 18:56:53 +01:00
Frédéric Demians c122b9b6f8 Revert "Bug 11190: sitemap.pl -- Generate a Catalog sitemap"
This reverts commit ed166abbf3.

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2015-12-05 08:31:59 +01:00
Frédéric Demians eb95e2beb1 Koha release 3.20.6
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2015-11-30 19:14:08 +01:00
Bernardo Gonzalez Kriegel eb707f6bad Translation updates for Koha 3.20.6 release
New languages: Malayalam and Occitan

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2015-11-30 18:43:18 +01:00
Frédéric Demians ed166abbf3 Bug 11190: sitemap.pl -- Generate a Catalog sitemap
Add a script sitemap.pl to process all biblio records from a Koha
instance and generate Sitemap files complying with this protocol as
described on http://sitemaps.org. The goal of this script is to be able
to provide to search engines direct access to biblio records. It avoid
leaving search engine browsing Koha OPAC and so generating a lot of
traffic, and workload, for a bad result.

Thanks Magnus for testing, and helping to improve the script design.

[2015.04.16] Switch from Moose to Moo.

[2015.08.20] Add complete (more) UT.

Signed-off-by: Magnus Enger <magnus@enger.priv.no>
All options to the script work as expected and the output looks
good. Nice enhancement!

Signed-off-by: Frederic Demians <f.demians@tamil.fr>

I signed-of my own patch after fixing various QA errors.

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Amended patch: replace tabs with spaces.
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

(cherry picked from commit ca341f6840)
2015-11-30 10:11:45 +01:00
Frédéric Demians bfbddd183c Bug 15133: encode correctly email generated by runreport.pl
/misc/cronjobs/runreport.pl send badly encoded email in text/csv
(partially ok in HTML).

TEST:

1. Send by email a report containing a subject with accented characters
   and resultset with accented characters. For example:

   ./runreport.pl --subject="éèà" --to=me@home.org  1
   ./runreport.pl --format=html --subject="éèà" --to=me@home.org  1

   The first email contains badly encoded subject & message. The second email
   contains badly encoded subject, but correct message.

2. Apply the patch

3. Repeat 1 => No more strange characters.

Signed-off-by: Liz Rea <liz@catalyst.net.nz>
Characters are correctly encoded now, thanks for that good spot.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 9515db57bd)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2015-11-29 22:04:40 +01:00
Liz Rea 5288b0d9b5 Bug 15120: runreport.pl cronjob doesn't allow custom subjects anymore
To test, well do something like

misc/cronjobs/runreport.pl --subject="My fancy subject!" --to=you@youraddress.com 1
where 1 is the number of your favourite saved report.

Success is your email arrives with the subject "My fancy subject!" Failure is
(with --subject defined) you get either the description of the report, or "Koha
saved report" as the subject. This is success without --subject defined.

Signed-off-by: Frederic Demians <f.demians@tamil.fr>
  Bug repeatable and fixed by this patch.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 4f8476e09c)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
2015-11-29 22:03:41 +01:00
Chris Cormack 0d0a5e977d Release notes 2015-10-28 09:28:25 +13:00
Bernardo Gonzalez Kriegel a2372222d9 Translation updates for Koha 3.20.5 release 2015-10-25 06:29:48 -03:00
Barton Chittenden 8a47fd191e Bug 14858: removed record length limit test
Signed-off-by: Nick Clemens <nick@quecheelibrary.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 1acb998beb)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2015-10-24 02:58:15 +13:00
Chris Cormack 773d776883 Release notes for 3.20.4 2015-09-23 06:33:40 +12:00
Jonathan Druart 715a7bf4f5 Bug 6756: Add info messages
NOTE: Before patch "./misc/cronjobs/batch_anonymise.pl --help" had no
      message, and neither did the anonymizing tool in the staff client.
      After the patch, both had informative messages.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
(cherry picked from commit 1acddd0f1b)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2015-09-23 05:42:29 +12:00
Chris Cormack f38f8b8758 Fixing release notes 2015-08-24 11:53:07 +12:00
Chris Cormack 7e81e366f4 Release notes for 3.20.3 2015-08-24 11:42:58 +12:00
Bernardo Gonzalez Kriegel b0cbdfe7e5 Translation updates for Koha 3.20.3 release 2015-08-23 19:57:35 -03:00
Ulrich Kleiber d14d01d760 Bug 14534: Stop overdue_notices.pl from issuing the warning: Use of uninitialized value $borrowernumber
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

To test:

1/ Run the overdue_notices.pl script (don't do this on production
obviously :))
2/ Notice the warns
3/ Apply patch
4/ Run again
5/ Notice no warns, but notices are still generated ok

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
(cherry picked from commit d873ed3b5d)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2015-08-12 08:25:54 +12:00
Chris Cormack cede10ef4b Release notes 2015-07-22 12:41:59 +12:00
Bernardo Gonzalez Kriegel ff2e10e2d0 Translation updates for Koha 3.20.02 release 2015-07-21 21:12:43 -03:00
Chris Cormack f9b7f93356 Release notes, txt format 2015-06-23 19:32:51 +12:00
Bernardo Gonzalez Kriegel 83789dd75c Translation updates for Koha 3.20.1 release 2015-06-22 21:51:44 -03:00
Dobrica Pavlinusic fefb788ff9 Bug 13815 - plack loose CGI qw(-utf8) flag creating incorrect utf-8 encoding everywhere
This is major problem for plack installations with utf-8 encoding.

In this case, we are overriding CGI->new to setup utf-8 flag and
get correctly decoded $cgi->params, and reset syspref cache using
C4::Context->clear_syspref_cache

Test scenario:
1. under plack try to search with utf-8 charactes
2. try to find patron with utf-8 characters

Signed-off-by: Gaetan Boisson <gaetan.boisson@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 3cd086b6b6)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2015-06-07 20:18:48 +12:00
Bernardo Gonzalez Kriegel a93957d53f Bug 14285: Bengali locale needs to be re-defined
This patch renames translation files for Bengali
language, from ben-* to bn-IN-*.
Also adds India as region

To test:
1) Apply the patch
2) Run updatedatabase
3) Install Bengali language
cd misc/translator
perl translate install bn-IN
enable

Check correct description

4) Create and install a fake Bengali variant
cd misc/translator
perl translate create bn-XX
perl translate install bn-XX
enable both variants

Check correct rendering of region

Results comply with expected test plan outcome. Signed off for bn-IN
Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit e365e6e535)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2015-06-04 13:53:38 +12:00