[koha-commits] main Koha release repository branch master updated. v3.14.00-alpha2-150-gb062847
Git repo owner
gitmaster at git.koha-community.org
Thu Oct 31 23:44:25 CET 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".
The branch, master has been updated
via b062847364d82873c8a54aac544c9109102b3625 (commit)
via 7a1c343c91e2e4db55cb0d166c304b5757c87444 (commit)
via 7ad9e8a42684cd6602652aa53d75c0e3a221ff19 (commit)
via b686fa007359de53e5d031b038486f43c1599d5d (commit)
via 88e6ae78217584c7365610c11154bafff080ea1a (commit)
via 3952c2028974d1e589b2d37d3a07aa38bc28a9c9 (commit)
via 083f90cc44c4c02d544a55feb321c07d4e44f86c (commit)
via f75c878e87d538338028ae9c42b0884e4abb7681 (commit)
via 5d170aa26865ee308f9d44992ea9f8eb9c6e0c19 (commit)
via 7362776897c702bbabe49e24a4875afae5d11a9a (commit)
via 0a176d4648fdce78a31ace4dab75dbe365c6fa64 (commit)
via b38f0213fe2358a50344478bccd2cf6a543cbbd7 (commit)
via 5775529ae328ac4f957353abb63b59de98cee525 (commit)
via 622430cfb5bb1b9886e00a835d96b8434d6ef1db (commit)
from 7c521a8cf20d73e7435d43450ba887689e60841b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit b062847364d82873c8a54aac544c9109102b3625
Author: Galen Charlton <gmc at esilibrary.com>
Date: Thu Oct 31 22:36:39 2013 +0000
Bug 8015: (follow-up) don't require userenv
Core routines probably should never assume that they're
running with a valid userenv defined.
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
commit 7a1c343c91e2e4db55cb0d166c304b5757c87444
Author: Galen Charlton <gmc at esilibrary.com>
Date: Thu Oct 31 22:10:31 2013 +0000
Bug 8015: (follow-up) update stage_file.pl
This patch fixes the call to BatchStageMarcRecords() made
by the comand-line record importer. At some point in the future
we could go further and teach that tool how to apply modification
templates.
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
commit 7ad9e8a42684cd6602652aa53d75c0e3a221ff19
Author: Galen Charlton <gmc at esilibrary.com>
Date: Thu Oct 31 22:04:22 2013 +0000
Bug 8015: (follow-up) update DBIx::Class schema classes
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
commit b686fa007359de53e5d031b038486f43c1599d5d
Author: Galen Charlton <gmc at esilibrary.com>
Date: Thu Oct 31 22:02:25 2013 +0000
Bug 8015: DBRev 3.13.00.040
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
commit 88e6ae78217584c7365610c11154bafff080ea1a
Author: Kyle M Hall <kyle at bywatersolutions.com>
Date: Tue Oct 22 14:24:36 2013 -0400
Bug 8015: QA Followup 2
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
commit 3952c2028974d1e589b2d37d3a07aa38bc28a9c9
Author: Kyle M Hall <kyle at bywatersolutions.com>
Date: Tue Oct 22 12:55:02 2013 -0400
Bug 8015: QA Followup
* Add bug number to database update
* Fix capitalization errors
* Fix JavaScript string translation errors
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
commit 083f90cc44c4c02d544a55feb321c07d4e44f86c
Author: Kyle M Hall <kyle at bywatersolutions.com>
Date: Tue Oct 22 12:24:10 2013 -0400
Bug 8015: (follow-up) remove references to C4::Koha::Log
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
commit f75c878e87d538338028ae9c42b0884e4abb7681
Author: Kyle M Hall <kyle at bywatersolutions.com>
Date: Tue Oct 22 12:19:21 2013 -0400
Bug 8015: (follow-up) add user permissions to all languages
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
commit 5d170aa26865ee308f9d44992ea9f8eb9c6e0c19
Author: Jonathan Druart <jonathan.druart at biblibre.com>
Date: Fri Mar 29 17:29:27 2013 +0100
Bug 8015: Add unit tests for SimpleMARC and MarcModificationTemplates routines
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Bug 8015: Fix complains from qa tools
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>
Bug 8015: Get rid of the eval in ModifyRecordWithTemplate
This patch removes the use of eval in the
C4::MarcModificationTemplates::ModifyRecordWithTemplate routine.
Now this routine call the wanted modification routine with the list of
parameters.
This call is done only if the condition is respected.
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>
Bug 8015: Get rid of eval for evaluating =~ m//
Koha::SimpleMarc::field_equals uses eval in order to check if a string
matches a pattern.
Now this eval is removed and the "regex" variable does not contain the
regex separated character (/ or |).
Regression: Before this patch, the user was able to user a modifier. Now
it is not possible.
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>
Bug 8015: Get rid of the eval for substitution
Before this patch, the regex substitution was contain into only one
variable (e.g. my $regex = "/foo/bar/i").
Now each member of the regex is stored into a field in the
marc_modification_template_actions sql table.
In order to avoid a complex code, only modifiers i and g are take into
account.
Note: If you already add the mmta table, you have to drop it.
This patch also adds a foreign key from mmta to mmt tables.
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>
Bug 8015: FIX ui issue
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>
Bug 8015: The template name is a required field
Test plan:
Try to add a template with an empty string as name.
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
commit 7362776897c702bbabe49e24a4875afae5d11a9a
Author: Kyle M Hall <kyle at bywatersolutions.com>
Date: Tue Mar 19 03:27:46 2013 -0700
Bug 8015: (follow-up) fix various issues (squashed patch)
Bug 8015: Fix template capitalization amd other template issues
Signed-off-by: Leila <koha.aixmarseille at gmail.com>
Bug 8015: Fix error where field object is returned instead of field value for fields without subfields
Signed-off-by: Leila <koha.aixmarseille at gmail.com>
Bug 8015: Fix bad ordering on function parameters
Signed-off-by: Leila <koha.aixmarseille at gmail.com>
Bug 8015: Escape escape characters for strings
Signed-off-by: Leila <koha.aixmarseille at gmail.com>
Bug 8015: Fix bad parameter list for direct external call to update_field
Signed-off-by: Leila <koha.aixmarseille at gmail.com>
Bug 8015: Fix problem with moving existing subfield value to nonexistent field/subfield
Signed-off-by: Leila <koha.aixmarseille at gmail.com>
Bug 8015: FIX QA issues
This patch fixes some stuffs failing qa tests: POD, indentation (tabs),
perlcritic
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
commit 0a176d4648fdce78a31ace4dab75dbe365c6fa64
Author: Jonathan Druart <jonathan.druart at biblibre.com>
Date: Tue Oct 16 09:45:07 2012 +0200
Bug 8015: (follow-up) trap exceptions thrown by SetUTF8Flag()
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Leila <koha.aixmarseille at gmail.com>
Bug 8015: Catch error in the SetUTF8Flag routine
The eval avoids the interface to run endlessly if an error occurred.
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Leila <koha.aixmarseille at gmail.com>
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
commit b38f0213fe2358a50344478bccd2cf6a543cbbd7
Author: Kyle M Hall <kyle at bywatersolutions.com>
Date: Fri Sep 28 08:39:58 2012 -0400
Bug 8015: (follow-up) move from the Koha to the C4 namespace
Signed-off-by: Leila <koha.aixmarseille at gmail.com>
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
commit 5775529ae328ac4f957353abb63b59de98cee525
Author: Jonathan Druart <jonathan.druart at biblibre.com>
Date: Mon Aug 13 17:04:05 2012 +0200
Bug 8015: (follow-up) fix copy and move if subfields don't exist.
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Leila <koha.aixmarseille at gmail.com>
Bug 8015: Followup: On move, we cant delete existing fields
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Leila <koha.aixmarseille at gmail.com>
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
commit 622430cfb5bb1b9886e00a835d96b8434d6ef1db
Author: Kyle M Hall <kyle at bywatersolutions.com>
Date: Thu Apr 26 16:08:57 2012 -0400
Bug 8015: Add MARC Modifications Templates
The MARC Modification Templates system gives Koha users
the power to make alterations to MARC records automatically
while staging MARC records for import.
This tool is useful for altering MARC records from
various venders work with your MARC framework.
The system essentially allows one to create a basic script
using actions to Copy, Move, Add, Update and Delete fields.
Each action can also have an optional condition to check
the value or existance of another field.
The Copy & Move actions also support Regular Expressions,
which can be used to automatically modify field values during the
copy/move. An example would be to strip out the '$' character
in field 020$c.
Furthermore, the value for an update can include variables
that change each time the template is used. Currently,
the system supports two variables, __BRANCHCODE__ which
is replaced with the branchcode of the library currently
using the template, and __CURRENTDATE__ which is replaced
with the current date in ISO format ( YYYY-MM-DD ).
At its simplist, it can perform functions such as:
Copy field 092$a to 952$c
At its most complex it can run actions like:
Copy field 020$c to 020$c using RegEx s/\$// if 020$c equals RegEx m/^\$/
Signed-off-by: Leila <koha.aixmarseille at gmail.com>
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
-----------------------------------------------------------------------
Summary of changes:
C4/Charset.pm | 37 +-
C4/ImportBatch.pm | 8 +-
C4/MarcModificationTemplates.pm | 606 ++++++++++++++++++++
Koha/Schema/Result/MarcModificationTemplate.pm | 81 +++
.../Result/MarcModificationTemplateAction.pm | 236 ++++++++
Koha/SimpleMARC.pm | 305 ++++++++++
.../data/mysql/de-DE/mandatory/userpermissions.sql | 1 +
.../data/mysql/en/mandatory/userpermissions.sql | 1 +
.../data/mysql/es-ES/mandatory/userpermissions.sql | 1 +
.../mysql/fr-FR/1-Obligatoire/userpermissions.sql | 1 +
.../data/mysql/it-IT/necessari/userpermissions.sql | 1 +
installer/data/mysql/kohastructure.sql | 38 ++
.../mysql/nb-NO/1-Obligatorisk/userpermissions.sql | 1 +
.../data/mysql/pl-PL/mandatory/userpermissions.sql | 1 +
.../ru-RU/mandatory/permissions_and_user_flags.sql | 1 +
.../uk-UA/mandatory/permissions_and_user_flags.sql | 1 +
installer/data/mysql/updatedatabase.pl | 42 ++
.../intranet-tmpl/prog/en/includes/tools-menu.inc | 3 +
.../prog/en/modules/admin/admin-home.tt | 4 +-
.../modules/tools/marc_modification_templates.tt | 513 +++++++++++++++++
.../prog/en/modules/tools/stage-marc-import.tt | 17 +
.../prog/en/modules/tools/tools-home.tt | 7 +-
kohaversion.pl | 2 +-
misc/stage_file.pl | 2 +-
t/SimpleMARC.t | 199 +++++++
t/db_dependent/MarcModificationTemplates.t | 262 +++++++++
tools/marc_modification_templates.pl | 144 +++++
tools/stage-marc-import.pl | 11 +-
28 files changed, 2501 insertions(+), 25 deletions(-)
create mode 100644 C4/MarcModificationTemplates.pm
create mode 100644 Koha/Schema/Result/MarcModificationTemplate.pm
create mode 100644 Koha/Schema/Result/MarcModificationTemplateAction.pm
create mode 100644 Koha/SimpleMARC.pm
create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt
create mode 100644 t/SimpleMARC.t
create mode 100644 t/db_dependent/MarcModificationTemplates.t
create mode 100755 tools/marc_modification_templates.pl
hooks/post-receive
--
main Koha release repository
More information about the koha-commits
mailing list