Commit Graph

1059 Commits

Author SHA1 Message Date
Joe Atzberger 0de0981480 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-05-26 21:15:10 +02:00
Joe Atzberger fa10183204 Tweak perldoc (--help) for leader_fix.pl
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-05-26 21:15:10 +02:00
Joe Atzberger f52c1226bb Script to repair MARC21 leader/09.
Acquisitions process seems to be adding records with incorrect
representation of the MARC encoding in leader/09.  It should be
'a' meaning UTF-8, for all Koha's internalized records, but in
many cases it appears blank (for MARC-8).  This script diagnoses
and repairs the value in the leader, depending on runtime options.

The symptom of this problem is that high-value UNICODE characters
in the record will cause Koha to crash whenever it tries to parse
the MARCXML, giving a "Wide character" fatal.  While we work on
fixing the input, this script will fix the existing data.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-05-26 21:15:10 +02:00
Joe Atzberger 42e0f5c873 Bug 3090 - Add perldoc details
This is half of the fix for 3090.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-05-26 21:15:08 +02:00
Henri-Damien LAURENT dace9673b4 3040 : seriestitle mistaken as collection title
If series title was previously taken as collectiontitle
then you should launch
misc/maintenance/UNIMARC_fix_collectiontitle.pl
misc/batchRebuildBiblioTables.pl

[RM note: applies only to UNIMARC users - MARC21
users should not run the batch jobs.]

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-05-26 21:15:07 +02:00
Joe Atzberger 2419838963 Bug 3066 - Overhaul guided reports
execute_query now refactored, returns reliable results, does
zero presentation-layer crap.  Arguments reduced, client scripts
adapted to new API and performance improved.  Text::CSV now used
to generate CSV output, ensuring portability, encoding and accuracy.

Replaced tools/runreport.pl with misc/cronjobs/runreport.pl:
    ~ security fixed
    ~ documentation improved
    ~ TODO: finish sendmail option.

Bug 3077 also fixed.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-05-26 21:15:07 +02:00
Joe Atzberger 4319a13d8c runreport.pl and prep work on Guided.pm
The old location of runreport.pl was under tools, leaving it exposed
to web requests.  This is a security flaw since it does NOT check any
Auth and allows the user to request any Saved Report be run.  This is
not a problem under misc/crontab/ and it suggests the more appropriate use.

Guided.pm is not fixed here (see bug 3066), but it is prepared to be fixed
and made compatible with runreport as detailed in the perldoc.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-05-26 21:15:07 +02:00
J. David Bavousett ddea584788 Changes to bulkmarcimport.pl
Adds three new switches:

-idmap <filename> - optional output file of
                    map of source record ID numbers
                    to Koha biblionumber
-x                - if idmap is supplied, MARC tag
                    to get source record ID from
-y                - if idmap is supplied, MARC subfield
                    to get source record ID from

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-05-26 21:15:06 +02:00
Joe Atzberger 7f5c71598e Improve performance and fault tolerance for sync_items...
Pulled the GetMarcFromKohaField outside the loop, since we only need to
check it once.  Same for $item_sth.  Added safety checks for success of
delete_field and GetMarcItem, with warnings on failure.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-05-26 21:15:04 +02:00
Galen Charlton 5473a35070 bug 3028: remove reservefix.pl cronjob
Removed cronjob, which was written to work around
a bug in 2.2 that no longer applies and is specific
to a single library in any event.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-05-26 21:15:02 +02:00
Joe Atzberger d0370b1144 Bug 2617: Add strict (and warnings), partial fix.
These are some of the simpler scripts to add strict to.
Corrected perldoc for Bookfund.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-05-26 21:15:01 +02:00
Joe Atzberger 42b94b22e9 Remove outmoded (and possibly dangerous) cronjob.
This script is superceded by rebuild_zebra and the sync_items scripts.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-05-26 21:15:01 +02:00
Joe Atzberger 8e7682b736 Bug 2883 - longoverdue cronjob fails to implement required functionality.
This does not fix all problems recorded in 2883 (see all the FIXME's), but
it does improve the script's basic feedback to an intelligible level.
It also adjusts the documentation and examples to correct bogus usage
instructions.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-05-26 21:14:59 +02:00
Brian Harrington 4c4817bf92 bug 2924 fixed rebuild_zebra.pl to work when export is skipped
reindexing now occurs if there are $num_records_exported or if
$skip_export is set

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-05-26 21:14:58 +02:00
Joe Atzberger c549a4396b Cleanup and perltidy.
Add "use warnings", remove unused variables and unnecessary finish/disconnect
at the end.  This script could be improved to run only on tables that need to
be altered instead of touching all of them.  It should also probably contain
warnings to the effect that it does not rescue your DATA that was forced into
whatever encoding the table used previously.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-05-26 21:14:55 +02:00
Joe Atzberger 426d28629f Obsolete harness for tests, replaced by make and other test structures.
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-05-26 21:14:55 +02:00
Chris Cormack 754040a9ce Greek, Croatian, Portuguese and Turkish updates 2009-05-26 14:42:11 +12:00
Chris Cormack 4650e7b6c0 French Canadia, Greek, Dari and Turkish updates 2009-05-24 17:22:45 +12:00
Chris Cormack a6fa34edb4 Turkish and dari updates 2009-05-22 21:13:24 +12:00
Chris Cormack c4038e6284 Turkish and Greek updates 2009-05-21 22:01:06 +12:00
Chris Cormack a8768df37a Greek, french canadian, and Turkish updates 2009-05-20 09:47:22 +12:00
Chris Cormack e6a1da8cbc Greek, French (canada), Slovak, Turkish and Tetun updates 2009-05-19 21:01:05 +12:00
Chris Cormack 3869c88bda More updates 2009-05-19 02:49:42 +12:00
Chris Cormack 4df6663b58 More language updates 2009-05-18 23:01:19 +12:00
Chris Cormack db6b8ad4a8 Arabic and german updates 2009-05-18 21:41:12 +12:00
Chris Cormack 40394788e0 Updated strings for 3.0.2 release 2009-05-18 21:22:58 +12:00
Chris Cormack 6f463c2553 Slovak opac update 2009-05-17 22:01:32 +12:00
Chris Cormack dbb3f616c9 Lots of language updates 2009-05-17 21:51:01 +12:00
Chris Cormack 6bab161ad0 Slovak translations 2009-05-17 21:50:37 +12:00
Chris Cormack cb4b0557b0 Updated po files for 3.0.2 release 2009-05-09 23:19:30 +12:00
Chris Cormack cd718d3bf3 Tetun intranet updates 2009-05-07 20:39:42 +12:00
Chris Cormack 16a49c2fa8 German OPAC update 2009-05-07 20:38:16 +12:00
Chris Cormack c3b6654569 Chinese (Taiwan) Intranet and OPAC updates 2009-05-07 20:37:32 +12:00
Chris Cormack ced904358a Tetun language updates 2009-05-03 09:45:15 +12:00
Chris Cormack 0bb06f9b57 Updating French Canadian intranet adding US english Academic 2009-05-03 08:41:04 +12:00
Chris Cormack 536fd8ad24 Dutch opac updates 2009-04-26 07:37:27 +12:00
Chris Cormack 3ed836d928 German opac updates 2009-04-26 07:34:46 +12:00
Chris Cormack 772f05bc8b Tetun opac updates 2009-04-25 15:51:16 +12:00
Chris Cormack 4501975c4a Portuguese opac and intranet updates 2009-04-25 15:50:52 +12:00
Chris Cormack 91976b5e25 Tetun staff interface updates 2009-04-24 15:34:35 +12:00
Chris Cormack 598543068f Tetun and French canadian update 2009-04-19 02:46:17 +12:00
Chris Cormack 0f6359539c Tetun intranet updates 2009-04-13 17:54:36 +12:00
Chris Cormack 31d89595ca Tetun Intranet 2009-04-10 18:05:19 +12:00
Chris Cormack c858bac018 Tetun Opac 2009-04-10 18:02:44 +12:00
Chris Cormack 5d8123b6ea German Intranet and Brazilian Portuguese Intranet updates 2009-04-10 18:01:51 +12:00
Chris Cormack 02fe346861 Brazilian Portuguese Opac updates 2009-04-06 19:04:53 +12:00
Chris Cormack a52501c753 Catalan opac updates 2009-04-06 18:55:01 +12:00
Chris Cormack c4360860fc Starting Brazilian Portuguese translations 2009-04-05 07:57:11 +12:00
Chris Cormack 52798f0035 Pashto opac and intranet 2009-03-31 22:12:25 +13:00
Chris Cormack b8f605f469 Dari opac and intranet 2009-03-31 22:11:43 +13:00