reduce bib fetches during search and OPAC display
authorGalen Charlton <galen.charlton@liblime.com>
Tue, 10 Feb 2009 22:38:11 +0000 (16:38 -0600)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 26 May 2009 19:14:57 +0000 (21:14 +0200)
commitaacefca565a0242f361a7df3eb91de9d4bf55c39
tree75db3f38170ec7f86caac497f2b64ced4896cabb
parentb51d24db9f3505fc6330dc2df7fde29fd101ca32
reduce bib fetches during search and OPAC display

Speed up bib search and OPAC bib display, especially
when the XSLT OPAC results and details display sysprefs are
ON, by passing an existing MARC::Record object to three
functions:

C4::Biblio::get_biblio_authorised_values()
C4::XSLT::XSLTParse4Display()
C4::XSLT::transformMARCXML4XSLT (internal)

These functions previously fetched the bib from the
database, incurring the cost of DB retrieval and MARCXML
parsing even though client code already had a
MARC::Record object available.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
C4/Biblio.pm
C4/Search.pm
C4/XSLT.pm
opac/opac-detail.pl