Koha-clms/opac
Ian Walls f56e6c0a58 Bug 7073: GetCOinSBiblio should take $record object, not biblionumber
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

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
2011-11-24 11:44:02 +01:00
..
errors Bugfix in errors/*.pl and opac/errors/*.pl 2010-02-14 20:04:40 -05:00
rss adding file just for creating the rss directory 2007-08-02 08:50:43 +00:00
sco Bug 5995 Follow up: variable scope in koha/sco/sco-main.pl 2011-10-22 06:32:03 +13:00
changelanguage.pl Bug 6755 Followup setlanguagecookie used in 2 places 2011-09-27 08:22:18 +13:00
ilsdi.pl Bug 5639 (MT #3605) Fix escaping in ILSDI 2011-08-05 09:07:15 +12:00
maintenance.pl Bug 2505: Add warnings to opac/maintenance.pl 2010-02-18 11:10:30 -05:00
oai.pl bug 4903: enable OAI-DC output when install done in standard mode 2011-04-07 21:38:53 +12:00
opac-ISBDdetail.pl Bug 5453 Move declarations out of conditionals in opac 2011-07-15 15:50:22 +12:00
opac-MARCdetail.pl 6829: Remove two warnings for opac-MARCdetail 2011-09-14 22:22:37 +12:00
opac-account.pl Bug 4192: Fixes warnings generated by opac-account.pl. 2010-02-16 06:12:38 -05:00
opac-addbybiblionumber.pl Bug 6096 Correctly return arrayref from GetAllShelves 2011-04-08 11:17:04 +12:00
opac-alert-subscribe.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-authorities-home.pl Bug 5453 Move declarations out of conditionals in opac 2011-07-15 15:50:22 +12:00
opac-authoritiesdetail.pl Bug 5453 Move declarations out of conditionals in opac 2011-07-15 15:50:22 +12:00
opac-basket.pl Bug 5990: Lists and Cart show LOC code not Location Authorized value 2011-04-01 12:07:46 +13:00
opac-browser.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-changelanguage.pl Bug 6755 Problems with switching languages 2011-09-23 09:47:09 +12:00
opac-detail.pl Bug 7073: GetCOinSBiblio should take $record object, not biblionumber 2011-11-24 11:44:02 +01:00
opac-downloadcart.pl bug 5579 : Fixes several exports to embed items 2011-04-19 22:35:15 +12:00
opac-downloadshelf.pl Fix for Bug 3140 - It is possible to email someone else's private list 2011-05-26 09:50:52 +12:00
opac-export.pl Bug 6822: fix RIS export from OPAC 2011-09-01 21:39:10 +12:00
opac-ics.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-main.pl Bug 6755 Problems with switching languages 2011-09-23 09:47:09 +12:00
opac-messaging.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-modrequest.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-mymessages.pl bug 2615: remove unneeded 'require Exporter' 2008-09-26 09:05:08 -05:00
opac-passwd.pl Bug 2505: Enable warnings in opac-passwd.pl an opac-renew.pl. 2009-08-12 21:28:24 -04:00
opac-privacy.pl Bug 3881: OPAC Privacy reimplementation 2011-01-31 22:23:50 +13:00
opac-readingrecord.pl Bug 6162 Fix passing of borrower details to reading history 2011-04-14 15:01:17 +12:00
opac-renew.pl Bug 5199 : Followup patch, fixing a bug with NULL option 2011-07-03 08:48:52 +12:00
opac-reserve.pl Bug 5528: Analytic records support 2011-10-13 10:03:39 +13:00
opac-review.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-search-history.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-search.pl Bug 7073: GetCOinSBiblio should take $record object, not biblionumber 2011-11-24 11:44:02 +01:00
opac-sendbasket.pl Bug 6050 Make calls to GetItemsInfo consistent 2011-06-14 14:12:02 +12:00
opac-sendshelf.pl Fix for Bug 6957, authors disappearing when emailing lists 2011-10-20 11:34:39 +13:00
opac-serial-issues.pl Bug 6195 : Opac user should not have serial manage tab 2011-04-19 13:29:01 +12:00
opac-shelves.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-showmarc.pl Bug 6972: Hardcoded template paths to en in showmarc 2011-10-20 01:48:52 +13:00
opac-showreviews.pl Bug 6298 : Create new ShowReviewerPhoto preference 2011-07-05 15:01:13 +12:00
opac-suggestions.pl Bug 5928 :wr77152 : AllowPurchaseSuggestionBranchChoice sys pref 2011-03-23 10:35:16 +13:00
opac-tags.pl Fix for Bug 5812 - Tag Cloud - capitalized words come before lower-case words 2011-02-28 10:38:29 +13:00
opac-tags_subject.pl Bug 4289: 'OpacPublic' feature 2011-01-19 14:30:34 +13:00
opac-topissues.pl Bug 5453 Move declarations out of conditionals in opac 2011-07-15 15:50:22 +12:00
opac-user.pl Bug 6303: Display Organisation and Parent Organisation names when viewing a borrower of type organisation 2011-11-24 11:30:08 +01:00
opac-userdetails.pl Fix FSF address in directory opac/ 2010-03-16 20:17:54 -04:00
opac-userupdate.pl Bug 6870 [enh] - allow opac-userupdate.pl to use the patron's email as 'from' address 2011-09-24 10:09:14 +12:00
unapi fixing various links to point to *.koha-community.org 2010-10-21 22:08:24 -04:00