Main Koha release repository https://koha-community.org
Find a file
Tomas Cohen Arazi 115c4f348e Bug 14148: marc import broken if plugins are not enabled
Bug 12412 introduced a way to use plugins to generate MARC records
out of any arbitrary format. But failed to properly check for
a valid configuration (plugins_enabled entry on koha-conf.xml, and
even the UseKohaPlugins syspref).

This patch makes tools/stage-marc-import.pl test for the required
configuration before attempting to create the Koha::Plugins object.

To test:
1/ Make sure you don't have a plugins_enabled entry on your koha-conf.xml file
2/ On master, browse to tools/stage-marc-import.pl
=> FAIL: You get a nasty "Can't call method "GetPlugins"..." error
3/ Apply the patch and reload
=> SUCCESS: Stage MARC for import page renders correctly

Repeat with plugins_enabled == 0 and == 1. Also UseKohaPlugins enabled/disabled.
It should work as expected.

Regards
Tomas

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Works as described, no koha-qa errors

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2015-05-06 12:44:46 -03:00
acqui
admin Bug 1487: Store the "display only used tags/subf" value in a cookie 2015-04-30 15:23:01 -03:00
authorities
basket
C4 Bug 14066: Remove the Readonly[::XS] dependency 2015-05-06 11:05:22 -03:00
catalogue Bug 13773: add stock number to details and items display 2015-05-04 12:29:25 -03:00
cataloguing Bug 13364: Use SQL placeholder 2015-05-06 11:17:02 -03:00
circ
course_reserves
debian
docs
errors
etc
install_misc Bug 14066: Removing more Readonly 2015-05-06 11:05:22 -03:00
installer Bug 14119: Missing de-DE DISCHARGE message (German wording) 2015-05-06 10:40:07 -03:00
Koha Bug 14066: Correct and optimize 2015-05-06 11:05:22 -03:00
koha-tmpl Bug 13364: Fix table id + software error 2015-05-06 11:17:02 -03:00
labels
members
misc Bug 12192: Template toolkit code in HTML attributes is picked up into po-files 2015-05-06 10:40:14 -03:00
offline_circ
opac Bug 7843: (QA followup) Make news selection persistant 2015-04-30 16:33:21 -03:00
OpenILS
patron_lists
patroncards Bug 14122: Patron card: Software error when creating using borrower_number as parameter from URL 2015-05-06 10:40:00 -03:00
plugins
reports
reserve Bug 13887: Display the due date as a due date + sort on info 2015-05-04 11:24:07 -03:00
reviews
rotating_collections
selenium
serials Bug 11814: (follow-up) Use constants to describe statuses 2015-04-30 15:33:00 -03:00
services
skel
sms
suggestion
svc Bug 9528: Add delivery branch to the place hold display 2015-04-30 16:45:26 -03:00
t Bug 14057: Inventory is painfully slow 2015-05-06 10:40:23 -03:00
tags
test
tmp/modified_authorities
tools Bug 14148: marc import broken if plugins are not enabled 2015-05-06 12:44:46 -03:00
virtualshelves
xt
.editorconfig
.htaccess
.mailmap
about.pl Bug 14006: about.pl checks the wrong zebra index mode 2015-05-05 15:38:52 -03:00
changelanguage.pl
edithelp.pl
fix-perl-path.PL
help.pl
INSTALL
install-CPAN.pl
INSTALL.debian
INSTALL.fedora7
INSTALL.opensuse
INSTALL.ubuntu
koha_perl_deps.pl
kohaversion.pl Bug 13421: DBRev 3.19.00.038 2015-05-04 15:33:44 -03:00
LICENSE
mainpage.pl
Makefile.PL
MANIFEST.SKIP
README
README.robots
rewrite-config.PL

Koha is a free software integrated library system.

Koha is distributed under the GNU GPL version 3 or later.
Please read the file LICENSE for more details.

To install or upgrade Koha, please see the INSTALL file appropriate
to your platform.

Report bugs at http://bugs.koha-community.org/

Visit the Koha Project website at http://www.koha-community.org/