https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38181 --- Comment #12 from David Cook <dcook@prosentient.com.au> --- You know looking again at C4/XSLT.pm.... I think C4::XSLT::buildKohaItemsNamespace() might actually still cause a problem regardless of PassItemMarcToXSLT... C4::Search uses PassItemMarcToXSLT to delete all the items from a MARC record retrieved from the search engine before C4::XSLT::XSLTParse4Display runs. C4::Search doesn't pass any items_rs to XSLTParse4Display, which means it then does its own DB lookups after all, which includes pre-fetching all reserves. In my experience, the particularly problematic functions in buildKohaItemsNamespace are "$item->has_pending_hold", "$item->holds->waiting->count", and "$item->get_transfer". -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.