https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34739

Thomas Klausner <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #19 from Thomas Klausner <[email protected]> ---
I'm not sure how expensive calling
C4::Context->preference('IncludeSeeFromInSearches') is, but probably it would
be better fetch both sysprefs once, put them into a variable and inside the
loop just access those vars:

so instead of

        if (
              !$update
            && $reindex_if_needed
            && (   C4::Context->preference('IncludeSeeFromInSearches')
                || C4::Context->preference('IncludeSeeAlsoFromInSearches') )
            ) 

do

    my $syspref_include_see_from =
C4::Context->preference('IncludeSeeFromInSearches') ||
C4::Context->preference('IncludeSeeAlsoFromInSearches') || 0;

    while ( my $biblio = $biblios->next ) {
        ...

        if (
              !$update
            && $reindex_if_needed
            && $syspref_include_see
            )



Also maybe $update should be renamed to $update_biblio?

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to