From 394d67e506684d047c19accfd0e4f55f51049918 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 6 Nov 2007 15:05:17 -0600 Subject: [PATCH] Fixing zebra-striping of z3950 search results, YUI-ing z3950 search button, tweaking layout of z3950 search popup Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- cataloguing/z3950_search.pl | 4 +- .../en/modules/cataloguing/addbiblio.tmpl | 11 ++++- .../en/modules/cataloguing/z3950_search.tmpl | 40 ++++++++++--------- 3 files changed, 33 insertions(+), 22 deletions(-) diff --git a/cataloguing/z3950_search.pl b/cataloguing/z3950_search.pl index 01952a7359..51605c4449 100755 --- a/cataloguing/z3950_search.pl +++ b/cataloguing/z3950_search.pl @@ -207,10 +207,10 @@ else { = ImportBreeding( $marcdata, 2, $serverhost[$k], $encoding[$k], $random, 'z3950' ); my %row_data; if ( $i % 2 ) { - $toggle = "#ffffcc"; + $toggle = 1; } else { - $toggle = "white"; + $toggle = 0; } $row_data{toggle} = $toggle; $row_data{server} = $serverhost[$k]; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl index f036f3fdb8..b7945675ca 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl @@ -473,6 +473,7 @@ function unHideSubfield(index,labelindex) { // FIXME :: is it used ? // prepare DOM for YUI Toolbar $(document).ready(function() { + $("#z3950searchc").empty(); yuiToolbar(); }); @@ -480,7 +481,13 @@ function unHideSubfield(index,labelindex) { // FIXME :: is it used ? function yuiToolbar() { new YAHOO.widget.Button("addbiblio"); - // this breaks z3950 search new YAHOO.widget.Button("z3950search"); + new YAHOO.widget.Button({ + id: "z3950search", + type: "button", + label: "z39.50 Search", + container: "z3950searchc", + onclick: {fn:function(){PopupZ3950()}} + }); } //]]> @@ -488,7 +495,7 @@ function unHideSubfield(index,labelindex) { // FIXME :: is it used ?
  • -
  • +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl index 37f3d70dff..9e8d03514d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_search.tmpl @@ -10,39 +10,43 @@ } //]]> + -

Search for

-

Title:

-

Author:

-

ISBN:

-

ISSN:

+
+
+ +

Search for:

+

Title:

+

Author:

+

ISBN:

+

ISSN:

-

on following servers

- - +
+ Search these servers: + " /> " /> " /> " /> " /> " /> - +
    -

    - +

  1. - " checked="checked" /> + id" value="" checked="checked" /> - " /> + id" value="" /> -

    - - + +
  2. +
+

Results

@@ -53,12 +57,12 @@ Author ISBN   -   - "> + + -- 2.39.2