]> git.koha-community.org Git - koha.git/commit
Bug 28375: Inefficiencies in fetching COinS
authorNick Clemens <nick@bywatersolutions.com>
Tue, 18 May 2021 15:59:53 +0000 (15:59 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 20 Oct 2022 14:50:53 +0000 (11:50 -0300)
commit70325d48a0fa71a0937b40bf76ead2e841e90697
tree136bb43595aa39c56917e71932f28852dda7828d
parent919736afccd4ad3dd34588706d8191d097fca13b
Bug 28375: Inefficiencies in fetching COinS

This patchset adds an 'interface' parameter to XSLTParseForDisplay to avoid fetching
coins when not needed

Additionally we move some logic from the scripts to searchResults to avoid an extra fetch fo the biblio object

To test:
1 - Enable  COinSinOPACResults syspref
2 - Also enable  OPACShowOpenURL  and  OPACOpenURLItemTypes  - adding an itemtype that you can find
3 - Perform a search on the OPAC and confirm coins are included and openurl shown
4 - Perform a search on staff client and confirm openurls do not show
5 - Apply patch
6 - Results should be the same

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Search.pm
C4/XSLT.pm
catalogue/detail.pl
opac/opac-detail.pl
opac/opac-search.pl
opac/opac-shelves.pl
opac/opac-tags.pl
virtualshelves/shelves.pl