From da19fa993fa16c0d1cc3b6738d0eef5ba91b3666 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 25 Apr 2011 22:47:08 +0200 Subject: [PATCH] Bug 5445: Nicer breadcrumbs when ordering from different sources Content-Type: text/plain; charset="utf-8" While it was possible to go back to vendor and basket page when ordering from a new suggestion the other odering options missed those 'crumbs'. This patch makes the breadcrumbs for all orderings options consistent and makes it possible to navigate back to the vendor or basket from all pages. --- acqui/z3950_search.pl | 8 +++++++- .../prog/en/modules/acqui/addorderiso2709.tt | 2 +- .../prog/en/modules/acqui/neworderempty.tt | 2 +- .../prog/en/modules/acqui/z3950_search.tt | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/acqui/z3950_search.pl b/acqui/z3950_search.pl index b0a8b92..47dbe52 100755 --- a/acqui/z3950_search.pl +++ b/acqui/z3950_search.pl @@ -30,6 +30,7 @@ use C4::Context; use C4::Breeding; use C4::Koha; use C4::Charset; +use C4::Bookseller qw/ GetBookSellerFromId /; use ZOOM; my $input = new CGI; @@ -44,6 +45,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( } ); + my $dbh = C4::Context->dbh; my $error = $input->param('error'); my $biblionumber = $input->param('biblionumber'); @@ -102,10 +104,14 @@ foreach my $thisframeworkcode ( keys %$frameworks ) { push @frameworkcodeloop, \%row; } +my $vendor = GetBookSellerFromId($booksellerid); $template->param( frameworkcode => $frameworkcode, frameworkcodeloop => \@frameworkcodeloop, booksellerid => $booksellerid, - basketno => $basketno); + basketno => $basketno, + name => $vendor->{'name'} + ); + if ( $op ne "do_search" ) { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt index e10e297..04d0c58 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt @@ -24,7 +24,7 @@ [% INCLUDE 'header.inc' %] [% INCLUDE 'acquisitions-search.inc' %] - +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt index 7abe043..d6c8459 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt @@ -110,7 +110,7 @@ $(document).ready(function() [% INCLUDE 'header.inc' %] [% INCLUDE 'acquisitions-search.inc' %] - +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt index ca52536..bbcb973 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt @@ -63,7 +63,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : [% INCLUDE 'header.inc' %] [% INCLUDE 'acquisitions-search.inc' %] - +
[% IF ( opsearch ) %] -- 1.7.1