[Koha-bugs] [Bug 11175] Show the parent record's component parts in the detailed views

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 3 14:40:44 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11175

--- Comment #169 from Martin Renvoize <martin.renvoize at 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.


More information about the Koha-bugs mailing list