]> 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)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 14 Sep 2012 00:21:08 +0000 (20:21 -0400)
commit56e07e5e9d3446bd9195c5cd3072296f3dfca6c1
tree12aa9952fd83814f35332b28426635064f5c7424
parentd07df17bd5358a8eee4de92f5917fe51e8f8e973
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>
(cherry picked from commit b6724f8544cfb7c3952cc8c981dafc88693c4cf3)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
C4/Search.pm