From 86b0fe28a429be67d2a6954f2215945047c56e3f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 27 Sep 2017 12:54:18 -0300 Subject: [PATCH] Bug 19372: (bug 15801 follow-up) pass selected frameworkcode to the template Bug 15801 removes the 2 lines that were necessary to retrieve the framework selected by the user and pass it to the template. All bibliographic records created when adding an order to the basket using an external source used the default framework. Test plan: Add an order to a basket from an external source Select another framework than the default one => Without this patch, whatever the framework you picked, the default one is used => With this patch applied the framework code you will pick will be used --- acqui/z3950_search.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/acqui/z3950_search.pl b/acqui/z3950_search.pl index d7bd2ee99e..59f9f3637c 100755 --- a/acqui/z3950_search.pl +++ b/acqui/z3950_search.pl @@ -34,6 +34,7 @@ use Koha::BiblioFrameworks; my $input = new CGI; my $biblionumber = $input->param('biblionumber')||0; +my $frameworkcode = $input->param('frameworkcode') || q{}; my $title = $input->param('title'); my $author = $input->param('author'); my $isbn = $input->param('isbn'); @@ -63,6 +64,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( } ); $template->param( + frameworkcode => $frameworkcode, frameworks => $frameworks, booksellerid => $booksellerid, basketno => $basketno, -- 2.11.0