Koha/koha-tmpl/opac-tmpl/bootstrap/en/includes
Jonathan Druart ac541e0fa1 Bug 15344: Remove unucessary call to GetMemberDetails
This subroutine does a lot a processing and should only be called when
necessary.
In the get_template_and_user subroutine (so called from any pages of
Koha), it is call to pass the branchcode, title, firstname, surname and
borrowernumber values for the logged in user.
This subroutine calls GetMemberAccountRecords which retrieve the items
infos for all accountlines entries of the logged in user.
On members/members.pl, let's say you have 74 entries in the accountlines
tables, the page will execute 115 SELECT instead of 35 if you don't have any
accountlines entries.
With this patch, the number of SELECT is always 31.

To test this patch you should have technical skills to know what to do.

Note that USER_INFO was an array of... 1 element. Now it's a hashref.

Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2015-12-30 11:53:18 +00:00
..
search
authorities-search-results.inc Bug 10985: [UNIMARC] Fix authority summary 2015-04-22 11:54:36 -03:00
av-build-dropbox.inc Bug 9468: make av-build-dropbox.inc available to OPAC 2015-11-05 10:46:57 -03:00
bodytag.inc Bug 12162 - Add class="branchcode" to body tag to make OPAC CSS-styleable per branch 2014-09-23 15:39:31 -03:00
calendar.inc Bug 12072: Make datepicker and templates to be aware of dmydot format 2015-11-19 13:15:19 -03:00
datatables.inc
date-format.inc
doc-head-close.inc Bug 13696: Add support for Font Awesome icons in Koha 2015-10-27 09:57:23 -03:00
doc-head-open.inc Bug 13948: Prevent explosion when Template::Plugin::Stash not installed 2015-07-28 10:30:21 -03:00
greybox.inc Bug 8992: Add the greybox include file for the bootstrap theme 2015-04-28 15:47:39 -03:00
item-status-schema-org.inc
item-status.inc Bug 9214 - Show damaged status in the OPAC for items which are not for loan 2014-11-11 15:13:03 -03:00
masthead-langmenu.inc Bug 15039: Move top language menu to include and streamline logic 2015-10-22 11:53:42 -03:00
masthead-sco.inc Bug 14776: Remove 'selfcheck' patron related links from and add language selector to SCO header 2015-10-23 10:12:41 -03:00
masthead.inc Bug 15344: Remove unucessary call to GetMemberDetails 2015-12-30 11:53:18 +00:00
navigation.inc
opac-authorities.inc
opac-bottom.inc Bug 5685: [OPAC follow-up] Validation of email address field 2015-07-24 13:47:57 -03:00
opac-detail-sidebar.inc Bug 13695: Add ISBD export option to OPAC (detail) 2015-03-31 10:34:30 -03:00
opac-facets.inc Bug 15345: Translatability: fix issue in facets (Availability') 2015-12-29 20:23:49 +00:00
opac-topissues.inc Bug 14100: Fix some missing occurrences 2015-10-27 12:34:07 -03:00
page-numbers.inc Bug 12399: Small change to remove the whole paging 2015-03-15 09:09:51 -03:00
patron-title.inc
resort_form.inc
shelfbrowser.inc Bug 14607: (QA followup) Fix typo in shelfbrowser.inc 2015-10-06 11:09:53 -03:00
subtypes_unimarc.inc
usermenu.inc Bug 14544: Make the OPAC side independent of Page.pm 2015-11-05 09:58:01 -03:00