]> 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)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 29 Aug 2012 21:48:17 +0000 (09:48 +1200)
commitb6724f8544cfb7c3952cc8c981dafc88693c4cf3
treedfec5ab5954fd48a9d7d1183685f1485d70a2321
parentb503f539ee1eda98e957e20586ebb3c33a2d077c
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>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Search.pm