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

--- Comment #1 from Ian Walls <[email protected]> 2011-10-20 
20:11:10 UTC ---
Created attachment 6014
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=6014
Proposed Patch

This patch changes the GetCOinsBiblio subroutine to take a MARC record object
(as returned from GetMarcBiblio) instead of a biblionumber.  The first thing
the subroutine did was GetMarcBiblio, and the $biblionumber passed was never
used again.

This subroutine was only used 3 places: opac/opac-search.pl,
opac/opac-detail.pl, and C4/VirtualShelves/Page.pm.  In the first and last
cases, it was used in a loop. In the last two cases, a call to GetMarcBiblio
had already been done.  This is expensive, and we were doing it twice per
record.

For opac/opac-search.pl, the call to GetMarcBiblio was moved to just outside
GetCOinSBiblio; this will not change the performance at all.  But for
opac/opac-detail.pl and C4/VirtualShelves/Page.pm, a redudant call to
GetMarcBiblio is now avoided.

To Test:
1. Enable COinSinOPACResults in system preferences.  Perform a search in the
OPAC. Verify that the COinS spans are showing up
2. View the detail record of one of the returned items.  Confirm that the COinS
span exists on the detail page.
3. View a list in the OPAC.  Confirm that COinS spans are still showing up

-- 
Configure bugmail: 
http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to