Koha/tools
Jonathan Druart 5d170aa268 Bug 8015: Add unit tests for SimpleMARC and MarcModificationTemplates routines
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Bug 8015: Fix complains from qa tools

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@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@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@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@gmail.com>

Bug 8015: FIX ui issue

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@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@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-10-31 22:50:11 +00:00
..
csv-profiles
quotes
background-job-progress.pl
batchMod.pl Bug 10601: Add a counter on batch items modifications 2013-09-18 17:10:00 +00:00
cleanborrowers.pl Bug 6506: When AnonymousPatron not set, deletion of issue history silently failed. 2013-05-01 08:44:11 -04:00
copy-holidays.pl
csv-profiles.pl Bug 10853 - followup to correct tabs 2013-10-11 02:16:17 +00:00
exceptionHolidays.pl
export.pl Bug 9300 - filtering Export (MARC) data by accession date does not work 2013-06-07 08:41:31 -07:00
holidays.pl Bug 10080 - Change system pref IndependantBranches to IndependentBranches 2013-05-22 07:58:23 -07:00
import_borrowers.pl Bug 7785: (follow-up) standardize POD 2013-08-13 16:15:30 +00:00
inventory.pl Bug 10550: Fix database typo wthdrawn 2013-09-08 01:58:41 +00:00
koha-news.pl
letter.pl Bug 10080 - Change system pref IndependantBranches to IndependentBranches 2013-05-22 07:58:23 -07:00
manage-marc-import.pl Bug 7131: teach MARC import how to overlay items 2013-10-30 04:31:07 +00:00
marc_modification_templates.pl Bug 8015: Add unit tests for SimpleMARC and MarcModificationTemplates routines 2013-10-31 22:50:11 +00:00
modborrowers.pl Bug 2720 - Overdues which debar automatically should undebar automatically when returned 2013-10-31 01:53:22 +00:00
newHolidays.pl
overduerules.pl
pdfViewer.pl Convert to UTF-8. 2010-05-06 17:58:54 -04:00
picture-upload.pl Bug 10636 - patronimage should have borrowernumber as PK, not cardnumber 2013-10-14 21:08:02 +00:00
quotes-upload.pl
quotes.pl
scheduler.pl Bug 9108: Followup: send the dateformat value from C4::Auth 2013-01-17 21:59:30 -05:00
stage-marc-import.pl Bug 8015: (follow-up) move from the Koha to the C4 namespace 2013-10-31 22:48:20 +00:00
tools-home.pl
upload-cover-image.pl Bug 9065 - set correct permission for upload local cover image 2013-01-13 08:32:18 -05:00
upload-file-progress.pl
upload-file.pl Bug 7775 - tools/upload-file.pl: scoping for plack 2012-03-26 18:17:45 +02:00
viewlog.pl Bug 10636 - patronimage should have borrowernumber as PK, not cardnumber 2013-10-14 21:08:02 +00:00