Commit Graph

1118 Commits

Author SHA1 Message Date
Colin Campbell f9f78672ea Avoid numeric comparisons with leading zeroes
Numbers in perl with leading zeros are interpreted in octal
Ensure that comparisons are done using string operators
or where appropriate use the MARC::Field method

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-09-16 23:19:28 +02:00
Frédéric Demians 5bdb9abf8b Remove utility script replaced by a test case
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-09-16 23:19:26 +02:00
J. David Bavousett cafd704a12 Created database-tidying cron script
This little script establishes a framework for database cleanup on some regular
schedule.  Initial implementation provides for brute truncation of the sessions
table, and selective-by-age cleanup of the zebraqueue.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-09-16 23:19:23 +02:00
Nahuel ANGELINETTI 6515ee9678 (bug #3393) take care of default rules in overdues
This fix the overdues notices script, that doesn't take care of default rules.
Now if there is no specific rules for a branchcode, the script use the default rule if it exists.

Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-09-16 23:19:19 +02:00
Frédéric Demians 0053486cfa Bug 3301 - Speed up rebuild_zebra script
With this patch, rebuild_zebra can re-index a whole Koha DB
quickly:

  rebuild_zebra -r -b -nosanitize

Biblio (authority) records are dump directly in a file
from marcxml field without beeing transformed into
MARC::Record object and corrected.

DOCUMENTATION:

rebuild_zebra.pl new paramater:

-nosanitize  export biblio/authority records directly from DB marcxml
             field without sanitizing records. It speed up
             dump process but could fail if DB contains badly
             encoded records. Works now only with -x and -b

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-09-16 23:19:14 +02:00
Brian Harrington 26b4f072e8 Bug 3313, bulkauthimport.pl skips MARC21 subdivision records.
This patch adds the MARC21 subdivsion record tags (18x) to the
block which recognizes and assigns authtypecodes to imported
authority records.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-09-16 23:19:08 +02:00
Daniel Sweeney 14f22b64cd Fixed a typo that kept branches out of the Advance Notice and Item Due notifications.
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-16 23:19:05 +02:00
Galen Charlton 18a7bd2ace holds policies fixes
* use item branch instead of patron's branch to
look up the applicable hold policies - this makes
requesting in the OPAC consistent with the intranet.
* when generating pick list using build_holds_queue.pl, only match items
to patrons if request is allowed.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-16 23:19:03 +02:00
Paul Poulain 474dca7cb7 (not new_acq related) smallfix to avoid a die in case of an invalid record
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-09-16 23:19:00 +02:00
Joe Atzberger 4786946693 Bug 3133 - correct typos
This corrects 3 typographical errors.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-09-16 23:18:48 +02:00
Joe Atzberger ddd1995cf4 Multi-bug fix - SetMarcUnicodeFlag for records coming from Koha
This has bearing on bugs 2905, 2665, 2514 and other "wide character" crashes
related to diacritics and Unicode.  This should help open the door for reliable
input of diacriticals via acquisitions.

MARC21_utf8_flag_fix.pl diagnoses and fixes existing problems with MARC data
affected by the bug.

Adding SetMarcUnicodeFlag to TransformKohaToMarc prevents the bug from corrupting
further data.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-09-16 23:18:47 +02:00
Galen Charlton 43b919a41e bug 2677: restore RandomizeHoldsQueueWeight and StaticHoldsQueueWeight
Restoring the functionality of these sysprefs as part of the
rework of build_holds_queue.pl:

* StaticHoldsQueueWeight is an ordered list of library codes.
  The order of the libraries in this list determines the order
  of libraries in which available items will be chosen to be
  targeted to holds.  Note that if this list does not include
  a library, items from that library will never be targeted to
  holds and staff will never be asked to retrieve items for
  title-level holds from those libraries.

* RandomizeHoldsQueueWeight is a Boolean parameter, indicating
  whether to randomize the libraries in the StaticHoldsQueueWeight
  list.

If neither RandomizeHoldsQueueWeight nor StaticHoldsQueueWeight is
set, then the libraries will be used to target items to holds in
alphabetical order by library code.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-04 13:29:55 +12:00
Joe Atzberger 4c54059844 Fines fixes: apparent problems with fines prevent processing.
CalcFine returned values that mismatched expectations in fines.pl.

fines.pl refactored: added debugging, prevent needless recreation of
Calendar objects by storing them in hash by branch.
Still outstanding problems with fines, including the output of a field
that has no other references in Koha (so is always undef) and the
incorrect description of FinesMode.

Calendar exported "new" erroneously.  I also cleaned up the queries to
avoid needlessly compiling additional statement handles.

Please test and consider application to 3.0 maintenance.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-09-04 11:12:41 +12:00
Galen Charlton a2c4c5353b 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>
2009-09-04 09:38:21 +12:00
Galen Charlton 5eafcf52de 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>
2009-09-04 09:35:24 +12:00
Chris Cormack 2505e0f415 French opac updates 2009-09-01 10:22:49 +12:00
Chris Cormack 825d6c2a04 Italian updates
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-08-29 21:38:41 +12:00
Chris Cormack fcdefd6bcf Italian Translation updates
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-08-26 22:24:52 +12:00
Chris Cormack 8acf94bf5b Malay po files
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-08-24 20:58:51 +12:00
Chris Cormack 7a4cf8f0d1 Dutch language updates
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-08-23 22:45:54 +12:00
Chris Cormack 5bfe971add Italian and Turkish updates
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-08-20 22:35:47 +12:00
Chris Cormack ad68fe2ba4 Turkish updates for 3.0.x
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-08-16 06:58:02 +12:00
Chris Cormack 6c1bc4f5c4 Turkish and German updates 2009-08-15 18:09:03 +12:00
Chris Cormack dd10f84c98 Fixing a bug in Turkish 2009-08-09 21:42:26 +12:00
Chris Cormack d0c80f1b1a Dutch, German and Turkish language updates 2009-08-08 20:25:50 +12:00
Chris Cormack c8be5c0f87 German and French updates 2009-08-05 14:58:22 +12:00
Chris Cormack 587cddf618 German, French, NZ english, and Tagalog updates 2009-08-01 07:29:25 +12:00
Chris Cormack 66a52cd2d2 German, French, Italian, Dutch and Tetum updates 2009-07-28 20:17:39 +12:00
Chris Cormack b5cb46d241 Tagalog added for translation 2009-07-09 15:54:41 +12:00
Chris Cormack 0a5face5df German updates 2009-07-09 15:53:08 +12:00
Chris Cormack 449d705ea9 Little fix to Maori 2009-07-06 13:33:00 +12:00
Chris Cormack 979883d2b3 Maori Opac Translation finished 2009-07-06 13:18:20 +12:00
Chris Cormack ab8053f376 Bengali, french canadian and tetun updates 2009-07-04 22:44:37 +12:00
Henri-Damien LAURENT b2a4853fc5 Preparing 3.0.3 2009-06-26 15:57:18 +02:00
Chris Cormack 676f8059b7 French and greek updates 2009-06-23 11:23:30 +12:00
Chris Cormack 31bb66a8cb Tetun, German and Turkish updates 2009-06-19 01:57:56 +12:00
Chris Cormack c2d419b147 Turkish updates 2009-06-16 14:53:17 +12:00
Chris Cormack b06857bb49 German and Turkish updates 2009-06-15 07:31:27 +12:00
Chris Cormack 331dab859f Turkish updates 2009-06-11 23:01:05 +12:00
Chris Cormack 5a5fbf6306 Hindi and Turkish translations 2009-06-10 07:46:20 +12:00
Chris Cormack e2c7abae77 Turkish and Greek updates 2009-06-07 23:08:06 +12:00
Chris Cormack 94b32bac6a Hindi, German and Turkish updates 2009-06-06 07:03:24 +12:00
Henri-Damien LAURENT 65ac4e38ab minor update on release notes 2009-06-04 14:18:46 +02:00
Henri-Damien LAURENT 0d92114107 Update release tarball upload proceedings 2009-06-04 14:04:22 +02:00
Henri-Damien LAURENT d010503b80 release notes and version 3.0.2 2009-06-04 00:02:05 +02:00
Chris Cormack 4b812f1b40 Turkish and Tetun updates 2009-06-03 20:18:17 +12:00
Chris Cormack f18bd4530b Spanish and Turkish updates 2009-06-02 07:19:57 +12:00
Chris Cormack d8c6e142d7 Slovakian and Turkish updates 2009-05-29 19:41:43 +12:00
Chris Cormack ef3cfdb209 Portuguese changes 2009-05-29 13:48:51 +12:00
Chris Cormack cb62b8e3e0 Portuguese and Turkish 2009-05-29 10:38:24 +12:00