[Koha-bugs] [Bug 8648] searchResults uses SQL query rather than GetMarcFromKohaField

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 15 21:49:36 CEST 2012


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

--- Comment #1 from Jared Camins-Esakov <jcamins at cpbibliography.com> ---
Created attachment 11629
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=11629&action=edit
Bug 8648: searchResults uses SQL query rather than GetMarcFromKohaField

Around line 1470-something:

    my $sth =
    $dbh->prepare(
            "SELECT tagfield FROM marc_subfield_structure WHERE kohafield LIKE
            'items.itemnumber'"
            );
    $sth->execute;

This patch replaces that with a call to GetMarcFromKohaField.

To test:
1) Apply patch.
2) Do a search that returns both available and unavailable items.
   You'll know if the patch isn't working.

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


More information about the Koha-bugs mailing list