[Koha-bugs] [Bug 11401] Add support for Norwegian national library card

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 21 09:56:52 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11401

--- Comment #18 from Magnus Enger <magnus at enger.priv.no> ---
(In reply to Chris Cormack from comment #8)
> The only suggestion I have is that we could perhaps use
> Module::Load::Conditional
> in C4/Members.pm, so that we don't have to load the module unless we need it.

It looks like Module::Load::Conditional can't take a list of subs to import, so
I went with Module::Load (which is already used a couple of places in Koha)
instead, e.g.:

use Module::Load;
if ( C4::Context->preference('NorwegianPatronDBEnable') == 1 ) {
    load Koha::NorwegianPatronDB, qw( NLMarkForDeletion NLSync );
}

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list