diff --git a/koha-tmpl/opac-tmpl/css/en/opac-main.tmpl b/koha-tmpl/opac-tmpl/css/en/opac-main.tmpl index b398a44b64..0105b0f79d 100644 --- a/koha-tmpl/opac-tmpl/css/en/opac-main.tmpl +++ b/koha-tmpl/opac-tmpl/css/en/opac-main.tmpl @@ -13,99 +13,107 @@ -
- - " title="koha" alt="koha" /> +
+ + " title="koha" alt="koha" /> - koha + koha +
- -
-

-

Search the catalogue

-
-

- - - - - - - Quick search :
-

-

- Advanced Search, More Options -

-
- -

Recent acquisitions

-
-

- - - - - - - - acquired in the last - - days - - -

-
-

Search recent acquisitions by branch

-

Other options

- -

- - Virtual shelves - - - Suggestions - - - My details - - - My reading history - - - Log Out - - -

Message from the library

- - -

- -

Log in to Koha to have personal options.

- - -
+ +
+
+

Search the catalogue

+

- - + + + + + + + Quick search :
+

+

+ Advanced Search, More Options

- - - - - - +

Recent acquisitions

+
+

+ + + + + + + + acquired in the last + + days + + +

+
+

Search recent acquisitions by branch

+

Other options

+ +

+ + Virtual shelves + + + Suggestions + + + My details + + + My reading history + + + Log Out + + +

Message from the library

+ + +

+ +

Log in to Koha to have personal options.

+ + +
+

+ + +

+
+ +
+
+
+ + + + +
- diff --git a/koha-tmpl/opac-tmpl/css/en/opac-search.tmpl b/koha-tmpl/opac-tmpl/css/en/opac-search.tmpl index ab02174772..d61e80df71 100644 --- a/koha-tmpl/opac-tmpl/css/en/opac-search.tmpl +++ b/koha-tmpl/opac-tmpl/css/en/opac-search.tmpl @@ -69,7 +69,13 @@ - +

diff --git a/opac/opac-main.pl b/opac/opac-main.pl index d07e3f4f6f..30ca8ddb21 100755 --- a/opac/opac-main.pl +++ b/opac/opac-main.pl @@ -15,20 +15,14 @@ my $dbh = C4::Context->dbh; my $query="Select itemtype,description from itemtypes order by description"; my $sth=$dbh->prepare($query); $sth->execute; -my @itemtype; +my @itemtypeloop; my %itemtypes; -push @itemtype, ""; -$itemtypes{''}="Any Document Type"; while (my ($value,$lib) = $sth->fetchrow_array) { - push @itemtype, $value; - $itemtypes{$value}=$lib; + my %row =( value => $value, + description => $lib, + ); + push @itemtypeloop, \%row; } - -my $CGIitemtype=CGI::scrolling_list( -name => 'value', - -values => \@itemtype, - -labels => \%itemtypes, - -size => 1, - -multiple => 0 ); $sth->finish; my @branches; @@ -69,7 +63,7 @@ my $languages_count = @options; if($languages_count > 1){ $template->param(languages => \@options); } -$template->param(CGIitemtype => $CGIitemtype, +$template->param(itemtypeloop => \@itemtypeloop, branchloop=>\@branchloop, suggestion => C4::Context->preference("suggestion"), virtualshelves => C4::Context->preference("virtualshelves"), diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 3bbb7f7f23..6692bf31bf 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -173,22 +173,17 @@ if ($op eq "do_search") { }); - $sth=$dbh->prepare("Select itemtype,description from itemtypes order by description"); + my $query="Select itemtype,description from itemtypes order by description"; + my $sth=$dbh->prepare($query); $sth->execute; - my @itemtype; + my @itemtypeloop; my %itemtypes; - push @itemtype, ""; - $itemtypes{''} = "Any Document Type"; while (my ($value,$lib) = $sth->fetchrow_array) { - push @itemtype, $value; - $itemtypes{$value}=$lib; + my %row =( value => $value, + description => $lib, + ); + push @itemtypeloop, \%row; } - - my $CGIitemtype=CGI::scrolling_list( -name => 'value', - -values => \@itemtype, - -labels => \%itemtypes, - -size => 1, - -multiple => 0 ); $sth->finish; my @oldbranches; @@ -225,7 +220,7 @@ if ($op eq "do_search") { $template->param('Disable_Dictionary'=>C4::Context->preference("Disable_Dictionary")) if (C4::Context->preference("Disable_Dictionary")); $template->param(classlist => $classlist, branchloop=>\@branchloop, - CGIitemtype => $CGIitemtype, + itemtypeloop => \@itemtypeloop, CGIbranch => $CGIbranch, suggestion => C4::Context->preference("suggestion"), virtualshelves => C4::Context->preference("virtualshelves"),