]> git.koha-community.org Git - koha.git/commit
Bug 8648: searchResults uses SQL query rather than GetMarcFromKohaField
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Wed, 15 Aug 2012 19:48:05 +0000 (15:48 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 29 Aug 2012 16:05:36 +0000 (18:05 +0200)
commit1adb0afa4c90473cbea4b2d8b54ed53477744322
treee5e9734489341bc571d3680afbd8b1fd7194a0bd
parent98d1f473841cc22b9d8589d21f86526495857596
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.

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/Search.pm