https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11175
--- Comment #169 from Martin Renvoize <martin.renvo...@ptfs-europe.com> --- Comment on attachment 123087 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=123087 Bug 11175: Limit the amount of component parts returned Review of attachment 123087: --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=11175&attachment=123087) ----------------------------------------------------------------- ::: Koha/Util/Search.pm @@ +34,5 @@ > +=cut > + > +sub get_component_part_query { > + my ($biblionumber) = @_; > + I think perhaps we should be taking UseControlNumber into account here... See opac-details.pl and details.pl controllers for a near the same case. my $cleaned_title = $biblio->title; $cleaned_title =~ tr|/||; my $query = ( C4::Context->preference('UseControlNumber') and $record->field('001') ) ? 'rcn:'. $record->field('001')->data . ' AND (bib-level:a OR bib-level:b)' : "Host-item:($cleaned_title)"; We should really utilise something similar here I feel.. and even better.. start using this in those two locations too.. or rather.. move that handling into XSLT.pm as you have done for the overall show parts code. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/