From 9cb04e03c2424f66c124899591372db11a62330f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 11 Mar 2021 15:03:07 +0100 Subject: [PATCH] Bug 27900: Add a link back to the basket view if no result MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Since bug 24347 the neworderbiblio view has been removed and we now display the usual search result. When adding a new order from a search, if there is no result we should let the user get back to the basket view. Test plan: Add to basket from an existing record Do a search with no results and confirm that there is a new "Go to the basket view" link Signed-off-by: Séverine QUEUNE Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit 191184f28a5efd95994f42cafbe1e94ffff38475) Signed-off-by: Fridolin Somers (cherry picked from commit e2571bb7fc408468b27313b8aa842483c8dd5a88) Signed-off-by: Andrew Fuerste-Henry --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index e79d39284a..cc63cb40ef 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -315,6 +315,9 @@

No results match your search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %][% IF ( LibraryName ) %] in [% LibraryName | html %] Catalog[% END %].

+ [% IF CAN_user_acquisition_order_manage && searchtoorder_basketno && searchtoorder_vendorid %][%# Coming from the basket or vendor view %] +

Go to the basket view

+ [% END %] [% ELSE %]

You did not specify any search criteria.

[% END %] -- 2.39.5