From 919523a5246b54a18469d53174cd6f8112b1c097 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 18 Oct 2021 16:32:57 +0100 Subject: [PATCH] Bug 11175: (QA follow-up) Restore link to more results This patch restores the link to 'more results' should you exceed the hard coded limit of 300 component parts. Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- catalogue/detail.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 +++- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 5 ++++- opac/opac-detail.pl | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index cb2d00734c..1660ac15d3 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -230,6 +230,7 @@ if ( $showcomp eq 'both' || $showcomp eq 'staff' ) { ); } $template->param( ComponentParts => $parts ); + $template->param( ComponentPartsQuery => $biblio->get_components_query ); } } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index e7f928afe4..ecf61132e6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -687,7 +687,9 @@ Note that permanent location is a code, and location may be an authval. [% END %] - + [% IF ComponentParts.size == 300 %] +

Only 300 results are shown: show all component parts

+ [% END %] [% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index e5ba19d242..79f50e10eb 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -408,7 +408,7 @@ [% ELSE %]
  • [% END %] - Components ([% ( ComponentParts.size || 1 ) %]) + Components ([% ( ComponentParts.size ) %])
  • [% END %] [% IF ( SYNDETICS_TOC ) %] @@ -605,6 +605,9 @@ [% END %] + [% IF ComponentParts.size == 300 %] +

    Only 300 results are shown: show all component parts

    + [% END %] [% END %] diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index c8903411cf..0e647f7bc6 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -676,6 +676,7 @@ if ( $showcomp eq 'both' || $showcomp eq 'opac' ) { ); } $template->param( ComponentParts => $parts ); + $template->param( ComponentPartsQuery => $biblio->get_components_query ); } } -- 2.39.5