Commit graph

896 commits

Author SHA1 Message Date
Andrew Moore
556d9cc43d bug 2503: refactoring and bugfixing on create_koc_db.pl
This is the script that generates the patron and holdings database for the offline circ module. I
touched up a few parts of it:

* fixed the database syntax to squash a bug or two
* extracted some methods for readability and reuse
* added some documentation
* added a --file and --force command line argument
* made it die if DBD::SQLite is not present. That module is required for this feature.

Here's an example crontab line that will generate the borrowers.db file each midnight.

0 0 * * * create_koc_db.pl --file /tmp/borrowers.db

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2008-08-20 17:05:25 -05:00
Andrew Moore
8c4a44ed67 bug 2503: moving offline circulation db generator to misc/cronjobs directory
This script generates a sqlite database of patron and holdings data for the offline circulation tool.
It's a cronjob, so it should go into misc/cronjobs

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2008-08-20 17:05:25 -05:00
Kyle Hall
28594dd7dc Added offline circ sqlite database generator.
Signed-off-by: Andrew Moore <andrew.moore@liblime.com>
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2008-08-20 17:05:25 -05:00
Galen Charlton
8588c7d79e bug 2527: avoid targeting of items on hold shelf
SQL fix to properly ensure that if an item is on
the hold shelf, it will not be used for request
targeting, which applies only to items that are
not already on the hold shelf.

Prior to this fix, when checking out an item on the
hold shelf that fills patron A's hold request, it
was possible for that request to not be marked as
filled if another patron had an item-level request
on the item; the second patron's request was
incorrectly targeted by that item.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2008-08-18 07:17:36 -05:00
Galen Charlton
516ba77b8b bug 2522 [3/3]: populate hold_fill_targets
This batch job now automatically populates the
holds request targeting table hold_fill_targets.

This patch is essentially a revamp of the job,
and includes fixes for the following bugs:

2281 (holds queue report including unavailable items)
2331 (holds queue report not working with item-level
      holds)
2332 (holds queue script should attempt to fill
      many requests as possible).

Several functions in this batch job are candidates
for being moved to C4::Reserves:

GetBibsWithPendingHoldRequests()
GetPendingHoldRequestsForBib()
GetItemsAvailableToFillHoldRequestsForBib()
MapItemsToHoldRequests()

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2008-08-18 07:15:49 -05:00
Michael Hafen
f7c12ef49a Have zebrasrv log less
Better to fill the hard drive with biblio than with zebra logs ;)

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2008-08-13 16:37:07 -05:00
Joshua Ferraro
d95f1d6dc0 Nomenclature cleanup prior to release 2008-08-10 16:40:37 -05:00
Joshua Ferraro
a2fdf794d3 Changing nomenclature prior to release, removing -stable 2008-08-10 16:39:53 -05:00
Ryan Higgins
49ffa55a2e Update longoverdue.pl cron job to manage setting lost values.
This patch deprecates the NoReturnSetLost system preference, which, as it
turns out, was not implemented anyway.  New longoverdue script allows one to
specify on the commandline system-wide delays for changing items to different
lost statuses, and optionally charge for the item.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-08-10 15:54:29 -05:00
Joshua Ferraro
ef4f62e714 Adding three statistics files that NPL uses, they don't
work 100% with stock 3.0 yet but are good examples of
custom scripts that libraries might want to write and
schedule periodically
2008-08-10 15:38:42 -05:00
Joshua Ferraro
def09f5a21 Updates to the example crontab 2008-08-10 15:18:48 -05:00
Ryan Higgins
9153e3d425 Update fines cronjob: remove redundant scripts, remove some superfluous code in remaining fines.pl.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-08-10 13:06:52 -05:00
Joshua Ferraro
94d4d91852 Minor update to README for RM 2008-08-10 09:48:22 -05:00
Joshua Ferraro
afe8231229 Updates to the subtag registry for new translations
Updates to the RElease Manager's notes
Fix Danish langauge from dk to da
2008-08-10 09:45:05 -05:00
Joshua Ferraro
0a10dec77e Translation updates prior to 3.0-stable release 2008-08-10 08:24:00 -05:00
Joshua Ferraro
30fe8e713e Release Notes for 3.0-stable 2008-08-10 06:44:43 -05:00
Henri-Damien LAURENT
ca8d24546e Bug Fixing merge_authority.pl
merge works on the fly now.
But for an obscure reason, merge_authority.pl fails to update database when lanched on command line.
Adding one table to LOCK for noZebra UPDATE in Biblio.pm
You should remove C4::Search from merg_authority.pl

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-08-09 11:05:53 -05:00
Joshua Ferraro
482a87eaf9 Revert "Add missing to and from email addresses to user and admin EnqueueLetter calls, respectively. Add extra level to verbosity."
This reverts commit 67f229cba7.
2008-08-08 10:51:45 -05:00
Southeastern University
67f229cba7 Add missing to and from email addresses to user and admin EnqueueLetter calls, respectively. Add extra level to verbosity.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-08-08 06:10:31 -05:00
Galen Charlton
6e1869abcf bug 2473: correct display of items.content
Correct bug in output of overdue notices that has
items.content displaying only the number of columns
in each items.content structure (currently, 4).

Patch inspired by patch submitted by Paul Poulain.

[LL bug 31]

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-08-05 15:12:02 -05:00
Joe Atzberger
830d1f19b4 Rename crontab.example
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-08-04 15:28:15 -05:00
Paul POULAIN
ef44a8fcb4 very small french translation fix
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-08-04 08:12:58 -05:00
Paul POULAIN
c1f34d7dd9 french updated
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-31 23:01:26 -05:00
Paul POULAIN
e58beaf3bf french updated
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-31 23:01:21 -05:00
Jesse Weaver
ac0d340bd5 kohabug 2345: bad comparisons pervade reports
This patch changes all $foo eq undef's to !defined($foo). It also makes misc/spellcheck_suggest/build_spellcheck_suggest.pl have proper syntax.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-27 06:11:08 -05:00
Joe Atzberger
4998eeed4a Example cronjob file.
We have 5 or 6 different cron'd tasks for a single installation now,
so an example is in order.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-27 06:05:11 -05:00
Andrew Moore
cd6d0c5d60 bug 2386: adding newline between items in overdue notices
The lines for each item in the overdue notices were not separated by newlines. This cause them to
all be smashed together. I'm putting a newline between them.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-24 11:22:03 -05:00
Joshua Ferraro
9c68c22a0b Adds Arabic Staff Client translation 2008-07-22 15:38:03 -05:00
Ryan Higgins
3c304cdb3a Add no-replace option to stage_biblios_file.pl, allowing incoming bibs to not overwrite existing bibs.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-18 13:22:31 -05:00
3a15bf50ed ar-Arab po files--only OPAC is translated for now.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-16 18:26:32 -05:00
Paul POULAIN
982b7dab35 french translation updated
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-16 18:26:24 -05:00
Jesse Weaver
bf4a39d7ce new script to fix date code in accountlines
misc/maintenance/fix_accountlines_date.pl runs through the accountlines table and converts every date in the 'description' column from us or metric format (specified on the command line) to the format in the 'dateformat' syspref.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-14 20:10:05 -05:00
Joshua Ferraro
8fdd226323 Nomenclature update: s/Reserved on/Hold placed on/ and also updated translations 2008-07-10 13:31:10 -05:00
Andrew Moore
b5697e6fd1 bug 2274 [4/5]: removing obsolete misc/cronjobs/overduenotices*.pl programs
These three programs have been replaced by misc/cronjobs/overdue_notices.pl:

 overduenotices-30.pl
 overduenotices-csv.pl
 overduenotices.pl

This patch deletes them.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-10 09:10:50 -05:00
Andrew Moore
8ae66932cd Bug 2274 [3/5]: consolidating overdue notice cronjobs into one
This patch adds the misc/cronjobs/overdue_notices.pl script that is intended to replace
overduenotices.pl, overduenotices-30.pl and overduenotices-csv.pl. It adds messages to
the message_queue to be sent later (by process_message_queue.pl). It also marks borrowers
as debarred if their issues become too overdue.

It is intended to be run from cron nightly with usage something like:
0 2 * * * misc/cronjobs/overdue_notices.pl

C4::Members:
 - improved documentation on ModMember
 - made ModMember return a useful value (the return value of the database call)
 - added a DebarMember method
 - adding t/lib/KohaTest/Members/DebarMember.pm to test ModMember

misc/cronjobs/overdue_notices.pl
 - designed to replace overduenotices.pl, overduenotices-30.pl, and overduenotice-csv

Changes to C4::Letters:
 - EnqueueLetter now lets you pass in to_address and from_address which can override defaults
 - _send_message_by_email pays attention to these defaults.
 - now handles attachments with MIME::Lite

C4::Overdues
 - added GetBranchcodesWithOverdueRules
   - added t/lib/KohaTest/Overdues/GerBranchcodesWithOverdueRules.pm to test that.

circ/overdue.pl
 - replaced call to obsolete overduenotices-csv.pl with call to overdue_notices.pl

KohaTest:
 - added three helper methods: random_phone, random_email, random_ip
   - these can be used to populate example records
 - you can now pass an optional lengh to random_string

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-10 09:10:46 -05:00
Joshua Ferraro
47aa90c6ba Updates to German translation 2008-07-08 20:24:39 -05:00
Paul POULAIN
9467ce2ed7 french updated
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-08 14:50:16 -05:00
Joshua Ferraro
6032bde215 Updates to translations sent via email prior to release 2008-07-08 14:37:40 -05:00
Joshua Ferraro
5d741f7e2b Updates for translations on translate.koha.org prior to release 2008-07-08 13:44:06 -05:00
Paul POULAIN
55b9589295 french updated
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-07-02 12:25:24 -05:00
56b9c60e8d Documents translator dependency on 'gettext' Linux tools and add it to debian.packages
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-06-26 05:51:35 -05:00
Joshua Ferraro
bed151991b Updating release number 2008-06-23 08:05:49 -05:00
Joshua Ferraro
7ec3695cf2 Updating translations prior to RC1 release 2008-06-23 08:04:10 -05:00
Chris Nighswonger
c1b67b7b0d Correcting Release notes to read RC1 rather than Beta
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-06-23 07:59:58 -05:00
Joshua Ferraro
07f5b63173 translation fix 2008-06-23 07:20:21 -05:00
Joshua Ferraro
c141d271cf Fixed errors for translation 2008-06-23 07:11:40 -05:00
Joshua Ferraro
0c16bf4261 Fixed errors for translation 2008-06-23 07:11:06 -05:00
Joshua Ferraro
4eb3261c0d Updating all translations except for:
el-GR-i-staff-t-prog-v-3000000.po
es-ES-i-staff-t-prog-v-3000000.po
hy-Armn-i-staff-prog-v-3000000.po
ru-RU-i-staff-t-prog-v-3000000.po
tr-TR-i-staff-t-prog-v-3000000.po
uk-UA-i-staff-t-prog-v-3000000.po
zh-Hans-CN-i-staff-t-prog-v-3000000.po

These will require extensive modifs to apply correctly due to
syntax problems.
2008-06-20 23:23:07 -05:00
Joshua Ferraro
62dda1523b Adding release notes for 3.0 stable RC1 2008-06-20 21:34:26 -05:00
Joshua Ferraro
b87164c52b Updates to translation files (pre-update.pl) 2008-06-20 21:18:41 -05:00