Around line 1470-something: my $sth = $dbh->prepare( "SELECT tagfield FROM marc_subfield_structure WHERE kohafield LIKE 'items.itemnumber'" ); $sth->execute;
Created attachment 11629 [details] [review] Bug 8648: searchResults uses SQL query rather than GetMarcFromKohaField Around line 1470-something: my $sth = $dbh->prepare( "SELECT tagfield FROM marc_subfield_structure WHERE kohafield LIKE 'items.itemnumber'" ); $sth->execute; This patch replaces that with a call to GetMarcFromKohaField. To test: 1) Apply patch. 2) Do a search that returns both available and unavailable items. You'll know if the patch isn't working.
Created attachment 11635 [details] [review] [SIGNED-OFF] Bug 8648: searchResults uses SQL query rather than GetMarcFromKohaField Simple change. Does not break anything. Save 1 query to database because result of GetMarcFromKohaField is cached. Signed off.
QA Comment: use the routine GetMarcFromKohaField instead of execute an sql query. Marked as Passed QA
Pushed to 3.8.x, will be in 3.8.5