]> git.koha-community.org Git - koha.git/commit
Bug 12720 - Turn off Authority logging when running "bulkmarcimport.pl"
authorDavid Cook <dcook@prosentient.com.au>
Wed, 6 Aug 2014 05:25:17 +0000 (15:25 +1000)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sun, 24 Aug 2014 15:49:49 +0000 (12:49 -0300)
commit11446fcb0ed74f58bfcdaa971666dad62bf16304
tree51245f2c241bec21592526f78ea4f7c877bebb8d
parentd1be7a1506df1ab51a4a0d0d1fb8d500ec11df48
Bug 12720 - Turn off Authority logging when running "bulkmarcimport.pl"

This patch turns off the AuthoritiesLogging syspref when running the
bulkmarcimport.pl script.

It also temporarily disables the syspref caching which will have
been making the CataloguingLogging handling ineffectual. (That is,
updating the CataloguingLogging syspref in the script wouldn't
have an effect as the original cached value would be used anyway.)

_TEST PLAN_

0) Turn on "AuthoritiesLogging" syspref
1) Load an authority record using bulkmarcimport.pl
2) Note a new Authorities entry in action_logs

3) Apply the patch

4) Repeat Step 1
5) Note that no new entry is made in action_logs

(Bonus points: Do the same thing with CataloguingLogging and a
bibliographic record.)

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Tested with biblio and auth imports.
Work as described, no koha-qa errors.

Note: If you begin to load a big file and get impatient and hit ^C,
seems that current syspref value is lost...

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes tests and QA script.
Patch copies what was already done for the CatalougingLog, no problems found.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
misc/migration_tools/bulkmarcimport.pl