[Koha-patches] [PATCH] BugFixing : 2656
Henri-Damien LAURENT
henridamien.laurent at biblibre.com
Wed Oct 1 16:12:41 CEST 2008
Adds booksellerid information to search form.
---
acqui/newordersuggestion.pl | 13 +++++++++----
.../prog/en/includes/suggestions-add-search.inc | 1 +
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/acqui/newordersuggestion.pl b/acqui/newordersuggestion.pl
index ee7bb94..4b229e9 100755
--- a/acqui/newordersuggestion.pl
+++ b/acqui/newordersuggestion.pl
@@ -127,13 +127,18 @@ if ( $op eq 'connectDuplicate' ) {
# getting all suggestions.
my $suggestions_loop =
&SearchSuggestion( $borrowernumber, $author, $title, $publishercode,'ACCEPTED',
- -1 );
+ "" );
my $vendor = GetBookSellerFromId($supplierid);
$template->param(
- suggestions_loop => $suggestions_loop,
+ suggestions_loop => $suggestions_loop,
+ ) if scalar(@$suggestions_loop)>0;
+$template->param(
+ supplierid => $supplierid,
+ name => $vendor->{'name'},
+ ) if ($supplierid);
+
+$template->param(
basketno => $basketno,
- supplierid => $supplierid,
- name => $vendor->{'name'},
"op_$op" => 1,
);
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/suggestions-add-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/suggestions-add-search.inc
index a027dba..c17a484 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/suggestions-add-search.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/suggestions-add-search.inc
@@ -51,6 +51,7 @@ YAHOO.util.Event.onContentReady("header_search", function() {
<label for="searchtitle">Title:</label> <input type="text" id="searchtitle" name="title" size="10" value="<!-- TMPL_VAR NAME="title"-->" />
<label for="searchauthor">Author:</label> <input type="text" id="searchauthor" name="author" size="10" value="<!-- TMPL_VAR NAME="author" -->" />
<label for="searchpublishercode">Publisher:</label> <input type="text" id="searchpublishercode" name="publishercode" size="10" value="<!-- TMPL_VAR NAME="publishercode"-->" />
+ <input type="hidden" id="booksellerid" name="booksellerid" value="<!-- TMPL_VAR NAME="supplierid"-->" />
<input type="submit" class="submit" value="Search" />
</form>
</div>
--
1.5.4.3
More information about the Koha-patches
mailing list