Commit Graph

1379 Commits

Author SHA1 Message Date
Chris Cormack 36cf50e27d Bug 7238 : Shifting SIPconfig.xml to the etc dir and the scripts to misc/bin
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
The scripts run with the caveat that you must specify the path to SIPconfig.xml. The followup previously attached should take care of that issue.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 43b3fb9701)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2012-02-19 21:00:13 -05:00
Paul Poulain a616321929 Bug 7157 follow-up: j2a.pl executable again
This patch just update the permission of the script, that must be executable
(cherry picked from commit e8b83c665a)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2012-02-19 15:51:20 -05:00
Liz Rea 14396956c9 Bug 7157 - Improve the j2a.pl cronjob
- Calculates updates date based on the upper age limit defined in the patron categories.
- Allows libraries to work on all branches or only one.
- Allows libraries to specify which Adult patron category to update child categories to.
- Allows libraries to specify a single Child patron category to update to an adult category.
- Has a test mode to display what transforms would be done on the database without executing the changes.

Includes improved help, copyright statement, and uses warnings. Also incorporates Paul's suggestions regarding --help and --man, changes -fromcat and -tocat to -f and -t, and removes a redundant update to categorycode (per M. deRooy).

To test:

Create two patron categories, a child and an adult category. Make sure they
have an upper age limit.

Create or modify some patrons in multiple branches that fall into the category
of "my birthdate is less than or equal to today's date minus the upper age
limit"

1. Run the script with no flags - nothing should  happen, it will suggest you try the --help flag.
2. Run the script with the --help flag - you should see the help
3. Run the script with the -f=<child category> -t=<adult category> -v -n - should show you results from all branches but take no action and tell you what its computations are.
4. Run the script with the -f=<child category> -t=<adult category> -b=<branchcode> -v -n - should show you results from your specified branch, but take no action and tell you what it's computations are.
5. Run the script with the -f=<child category> -t=<adult category> -v -b=<branchcode> - should show you the computations and tell you how many patrons were modified in your single branch. It will not show you the information on which patrons were updated.
6. Run the script with the -f=<child category> -t=<adult category> -v - should show you the computations and tell you how many patrons were modified across all branches.
7. Run the script without the -v flag, if you care what the non-verbose output looks like.

Fixed in this revision: Known limitation - if you give it an unknown tocat, it will fail with a rather ugly error.

Minor changes to the commit message to reflect new longopts (which I missed the last time)
There is more this script could do, please feel free to take it and run.

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

Bug 7157 : Follow up, fixing FSF address

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit fe1a642a1a)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2012-02-19 15:51:20 -05:00
Colin Campbell 960da426a8 Bug 6752: Be stricter with utf-8 encoding of output
use encoding(UTF-8) rather than utf-8 for stricter
encoding
Marking output as ':utf8' only flags the data as utf8
using :encoding(UTF-8) also checks it as valid utf-8
see binmode in perlfunc for more details
In accordance with the robustness principle input
filehandles have not been changed as code may make
the undocumented assumption that invalid utf-8 is present
in the imput
Fixes errors reported by t/00-testcritic.t
Where feasable some filehandles have been made lexical rather than
reusing global filehandle vars

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 263dded818)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2012-02-19 15:51:19 -05:00
Chris Nighswonger f064f9c5d5 Release Notes for 3.06.03.000 26 Jan 2012 15:06:56 Z 2012-01-26 10:06:56 -05:00
Frédéric Demians 5a57875407 Version 3.6.3 Strings Update
(cherry picked from commit bbf0f71d59f14ef78a32ef191c62e7e5b2c333ef)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2012-01-26 09:52:42 -05:00
Chris Nighswonger 048cd82afe Release Notes for 3.06.03.000 18 Jan 2012 14:25:43 Z 2012-01-18 10:11:06 -05:00
Dobrica Pavlinusic 17b3c7ce91 Bug 7247 - rebuild_zebra.pl -v should show all Zebra log output
Currently, -v option resets Zebra log output to default system values.

This produce amount of log specified in system defaults which is usually
too low for debugging.

This change explicitly forces all Zebra log output which create much more
chatter so it triggers with verbosity level 2

Test scenario:
1. pick koha site to reindex
2. use -v -v options to rebuild_zebra.pl to see additional output

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Verified help corrections and  loglevel 2 output vs. loglevel 1 output. No issues found.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 90d68d6f5c)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2012-01-18 10:11:02 -05:00
Marcel de Rooy c6bfb51390 Bug 7240: Cleaning up import tables and action_logs
This patch lets cleanup_database also purge older records from the (five) import tables and the action_logs table.
Two new command line parameters are introduced: --import and --logs.
If no number of days is specified for --zebraqueue, --import or --logs, it defaults to 30 days, 60 days resp. 180 days.
I did not add a default for --sessdays, because this parameter cannot be seen separately from parameter --sessions.

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

Adds new parameters and code, does not change existing behaviour

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 73c5cb3277)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2012-01-18 10:10:55 -05:00
Marc Balmer 2a10211d90 Bug 7356 - Fix various typos and mis-spellings
Fix typos: the the -> the, wether -> whether, developper -> developer.

http://bugs.koha-community.org/show_bug.cgi?id=7356
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit c9c6bbdea8)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2012-01-18 10:10:53 -05:00
Paul Poulain 6dad2fa252 Revert "Bug 6015 : Improving load_testing"
sorry, was not supposed to be pushed (follow-up needed)

This reverts commit 47d74bb3fb.
(cherry picked from commit 93e597b5ea)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2012-01-18 10:10:51 -05:00
Henri-Damien LAURENT 919a450271 Bug 6015 : Improving load_testing
Adding a benchmark for OPAC
it tests :
 - mainpage
 - search page
 - detail page

Staff :
Adding a test on member searches
(cherry picked from commit 47d74bb3fb)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2012-01-18 10:10:50 -05:00
Chris Nighswonger 22c5dfac72 Release Notes for 3.06.03.000 17 Jan 2012 19:39:50 Z 2012-01-17 14:42:33 -05:00
Chris Nighswonger 5f2f5921b5 Release Notes for 3.06.03.000 17 Jan 2012 12:46:33 Z 2012-01-17 07:46:33 -05:00
Sophie Meynieux f2adf05026 BUG 5607 : Adds parsing of issues fields in overdue letters
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Patch makes it possible to add fields from the issues table to overdue notices.

Template used for testing:
<item>"<<biblio.title>>" by <<biblio.author>>, <<items.itemcallnumber>>, Barcode: <<items.barcode>> , Checkout date: <<issues.issuedate>>, Due date: <<issues.date_due>> Fine: <fine>GBP</fine> Checkout date from items: <<items.onloan>></item>

Possible improvements:
- Dates are not formatted according to dateformat system preference

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 940652a6c7)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2012-01-16 15:47:30 -05:00
Chris Cormack 19c7059573 Bug 7370 : Missing use call
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 525c7bc4af)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2012-01-16 15:47:29 -05:00
Sophie Meynieux a7ef90ff87 Bug 6292 : Followup 2. several letters where generated if a borrower had overdues with different due_date triggering the same level
This patch fixes the SQL request giving the list of borrowers

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 1be4678a57)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2012-01-16 15:43:08 -05:00
Chris Cormack f497930d66 Bug 6292 : Overdue notices not being generated when borrower had an overdue older than the max value of the notice triggers
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
(cherry picked from commit 410975a7f7)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2012-01-16 15:43:08 -05:00
Sophie Meynieux 7d9ca3f1e4 Bug 6292 followup
selection of items to be listed in an overdue notice included
both limits (upper and lower). So items with an overdue equal
to a limit appeared on both notices. This patch fix this,
including lower limit and excluding upper limit for the selection.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
(cherry picked from commit d86d62adba)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2012-01-16 15:43:07 -05:00
Marc Balmer a284baee17 Bail out early if an invalid language is used.
Signed-off-by: Marc Balmer <marc@msys.ch>

http://bugs.koha-community.org/show_bug.cgi?id=7346
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit d9f7922ad7)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2012-01-16 15:43:04 -05:00
Ian Walls 5133a9df21 Bug 7326: longoverdue.pl hardcoded to 366 days maximum
Adds --maxdays command line flag to longoverdue.pl to allow the user to specify
their own $endrange value.  Because sometimes 366 isn't enough!

Also adds help documentation for both --quiet and --maxdays params

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

Simple change, works well

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 1f5f4981c0)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2012-01-16 15:43:03 -05:00
Chris Nighswonger 7b496cec62 Release Notes for 3.06.02.000 22 Dec 2011 22:53:23 Z 2011-12-22 17:53:24 -05:00
Frédéric Demians 22e6da41d4 3.6.2 Translation Update
(cherry picked from commit 54c7a82ac861a2f443d142b8e8dd3fa0fd17ce43)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-12-22 17:33:12 -05:00
Chris Nighswonger 3d18ff4466 Release Notes for 3.06.02.000 14 Dec 2011 17:57:42 Z 2011-12-14 12:57:42 -05:00
Chris Nighswonger 3b2c3edfb1 Followup on bug 7185 to correct Marcel de Rooy's name 2011-12-14 12:57:13 -05:00
Sophie Meynieux 1737da5bef Bug 7287 : Fix overdue notification if a branch given as parameter does not have rules
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit a1e3174668)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-12-14 12:47:04 -05:00
Chris Nighswonger 3235e0a127 Release Notes for 3.06.02.000 13 Dec 2011 20:00:36 Z 2011-12-13 15:00:36 -05:00
Chris Nighswonger 950924bc3e Release Notes for 3.06.02.000 08 Dec 2011 19:48:55 Z 2011-12-08 14:48:55 -05:00
Chris Nighswonger 3ba8234c63 Release Notes for 3.06.02.000 08 Dec 2011 16:17:37 Z 2011-12-08 11:18:04 -05:00
Chris Nighswonger a89471913e Release Notes for 3.06.02.000 07 Dec 2011 16:41:07 Z 2011-12-07 11:41:07 -05:00
Chris Nighswonger 83f87a9d9b Release Notes for 3.06.02.000 06 Dec 2011 23:44:14 Z 2011-12-06 18:44:14 -05:00
Chris Nighswonger 20fcd965a9 Release Notes for 3.06.02.000 06 Dec 2011 19:23:39 Z 2011-12-06 14:23:39 -05:00
Paul Poulain 6cbd92b24f Bug 2346 follow-up (UpdateBorrowerDebarred subroutine removed)
notifyMailsOp.pl is deprecated : is was written by and for Ouest Provence (thus the OP) and is not used anymore.

it's probably not working anymore.
Removing the script
(cherry picked from commit 00894ac495)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-12-06 14:10:13 -05:00
Frédérick Capovilla 49e38381f3 Bug 7251 : Corrects a problem in overdue_notices.pl when delimiter is set to tabulation
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
checked that others values for the separator are OK = it is (space, semicolon,... see syspref "delimiter")
(cherry picked from commit 478c2b139c)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-12-06 14:10:06 -05:00
Chris Nighswonger 4b4040ab85 Release Notes for 3.06.02.000 06 Dec 2011 12:57:05 Z 2011-12-06 07:57:05 -05:00
Srdjan Jankovic cbcf2cfbd6 bug_5211: LostItem() - added charge_fee param to control fee charging
Pass charge_fee = yes wherever is LostItem() called, which effectively
means tha there's no change.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 1713133fdd)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-12-06 07:56:00 -05:00
Chris Nighswonger 27675100a9 Adding template for autogeneration of 3.6.x release notes 2011-12-04 21:02:01 -05:00
Chris Nighswonger f2f49daf4c Release Notes for 3.06.02.000 05 Dec 2011 01:51:54 Z 2011-12-04 20:51:54 -05:00
Chris Nighswonger c1ae162cff Release Notes for 3.06.02.000 04 Dec 2011 21:10:25 Z 2011-12-04 16:10:25 -05:00
Robin Sheat 5c60288a30 Bug 7008 - create tmp dir for zebra
Sometimes zebra needs a tmp dir in order to work. This ensures that it
is created both by koha-create-dirs in the packages, and by
rebuild_zebra when it runs.
--

tested ok, signing off
Signed-off-by: Mason James <mtj@kohaaloha.com>
(cherry picked from commit 849547df68)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-12-03 07:13:30 -05:00
Paul Poulain 87e12ef6fa Bug 6926 : overdue_notices don't send itemcount to notification
In advanced_notices.pl you can return the number of due items using <<count>>
flag.
If you use this flag in overdue_notices, it does not work, no number is
displayed.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 6d8ea30401)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-12-03 07:12:53 -05:00
Katrin Fischer db92d1cdc8 Bug 7250: stage_biblios_file.pl is missing options for encoding
- adds command line options for encoding, defaulting to utf8
- options match options availablen in the stage marc records form
  of the staff interface
- activates warnings
- adds copyright statement

To test:
Import records with diacritics using the stage_biblios_file.pl
Records can be imported into the catalog using the staff interface
or the commit_biblios_file.pl script.

Signed-off-by: Ulrich Kleiber <ulrich.kleiber@bsz-bw.de>

Successfully tested with default encoding utf8.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 1b49f54b88)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-12-02 14:53:54 -05:00
Frédéric Demians 34df64b03f 3.6.1 Translation Update
(cherry picked from commit d3c1927a0763adc8aa54e211e9289c386c8c8e9f)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-11-29 21:02:53 -05:00
Chris Nighswonger 9237ad075d Release Notes for 3.06.01.000 2011-11-28 21:37:44 -05:00
Chris Nighswonger ab04c8f27a Release Notes for 3.06.01.000 2011-11-28 20:20:19 -05:00
Frédéric Demians 4d09e48384 Bug 6799 rebuild_zebra.pl -x produces invalid XML records
This patch allow to handle properly items containing extended characters and
send valid XML records to zebraidx

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 4ce57a102b)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-11-19 17:02:56 -05:00
Nahuel ANGELINETTI 8c4e0fbd23 (bug #4518) enhance 2.2 to 3.0 scripts
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit e0b029a4f5)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-11-16 12:37:59 -05:00
Chris Cormack f9af3fc79b Bug 6895 : First attempt at fixing the diacritics bug
This is a fairly hacky solution, a counter patch would be more than
welcome

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

Updated, translated and installed German po files after applying this patch.
No problems found.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit afaf7eaffa)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-11-16 07:39:50 -05:00
Chris Cormack f4d9b8e9dc Release notes for 3.6.0 2011-10-22 10:24:05 +13:00
Chris Cormack 69333c9f79 Moving po files to 3.6.0 filenames 2011-10-22 05:33:40 +13:00