From a71a6a78ad99b248eebcdb7d91a3e53634a0c535 Mon Sep 17 00:00:00 2001 From: hdl Date: Wed, 4 May 2005 12:46:27 +0000 Subject: [PATCH] Dictionary feature implemented --- .../default/en/search.marc/dictionary.tmpl | 62 ++++++++----------- search.marc/dictionary.pl | 10 +-- 2 files changed, 32 insertions(+), 40 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/default/en/search.marc/dictionary.tmpl b/koha-tmpl/intranet-tmpl/default/en/search.marc/dictionary.tmpl index f5dd4421b6..f089b7e6c5 100644 --- a/koha-tmpl/intranet-tmpl/default/en/search.marc/dictionary.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/search.marc/dictionary.tmpl @@ -46,26 +46,28 @@ a.catalogue:hover { " size="35"> "> + ">

+

Dictionary Search results

- &marclist=&search=&resultsperpage=&type=intranet&op=do_search"><<Previous + &marclist=&search=&resultsperpage=&type=intranet&op=do_search&index="><<Previous - &marclist=&search=&resultsperpage=&type=intranet&op=do_search"> + &marclist=&search=&resultsperpage=&type=intranet&op=do_search&index="> - &marclist=&search=&resultsperpage=&type=intranet&op=do_search">Next>> + &marclist=&search=&resultsperpage=&type=intranet&op=do_search&index=">Next>>

@@ -77,17 +79,20 @@ a.catalogue:hover {

- + + @@ -96,7 +101,7 @@ a.catalogue:hover {

No results in Authorities

- +

@@ -108,9 +113,8 @@ a.catalogue:hover {

AuthoritiesAuthorities
Summary UsedSelect
&operator==&value=&and_or=and&excluding=" class="button catalogue"> biblio(s) + +
- - - + + @@ -124,29 +128,7 @@ a.catalogue:hover { - @@ -154,17 +136,17 @@ a.catalogue:hover { - + - + \ No newline at end of file diff --git a/search.marc/dictionary.pl b/search.marc/dictionary.pl index 8112b65324..8bdda22ca7 100755 --- a/search.marc/dictionary.pl +++ b/search.marc/dictionary.pl @@ -38,7 +38,9 @@ my ($tablename, $kohafield)=split /./,$field; $tablename="biblio" unless ($tablename); #my $kohafield = $input->param('kohafield'); my @search = $input->param('search'); -#warn " ".$search[0]; +warn " ".$search[0]; +my $index = $input->param('index'); +warn " index: ".$index; my $op=$input->param('op'); if (($search[0]) and not ($op eq 'do_search')){ $op='do_search'; @@ -191,6 +193,7 @@ if ($op eq "do_search") { } else { $to = (($startfrom+1)*$resultsperpage); } + $template->param(anindex => $input->param('index')); $template->param(result => \@results, catresult=> \@catresults, search => $search[0], @@ -219,15 +222,14 @@ if ($op eq "do_search") { authnotrequired => 0, flagsrequired => {catalogue => 1}, debug => 1, - search => $search[0], - marclist =>$field, }); #warn "type : $type"; } $template->param(search => $search[0], marclist =>$field, - type=>$type); + type=>$type, + anindex => $input->param('index')); # Print the page output_html_with_http_headers $input, $cookie, $template->output; -- 2.39.5
SummaryItem CountLocation Biblio CountSelect
class="hilighted"> - -

- - - On Loan until - - - () - - - - () - -

- -

On order

-
class="hilighted"> - - ">Request - -

Not Reservable

- + ',)" class="button catalogue">Select