From d3e3cc1780eb7e126b43f1d4e46fa5d77de11615 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 18 Mar 2008 15:03:28 -0500 Subject: [PATCH] Cleanup of z39.50 search form, addition of checkall js. Addition of tablesorter js to z39.50 results. Signed-off-by: Joshua Ferraro --- .../prog/en/css/staff-global.css | 13 +++ .../jquery/plugins/jquery.tablesorter.pack.js | 1 + .../en/modules/cataloguing/addbiblio.tmpl | 2 +- .../en/modules/cataloguing/z3950_search.tmpl | 91 ++++++++++++------ koha-tmpl/intranet-tmpl/prog/img/asc.gif | Bin 0 -> 250 bytes koha-tmpl/intranet-tmpl/prog/img/ascdesc.gif | Bin 0 -> 264 bytes koha-tmpl/intranet-tmpl/prog/img/desc.gif | Bin 0 -> 61 bytes 7 files changed, 76 insertions(+), 31 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.tablesorter.pack.js create mode 100644 koha-tmpl/intranet-tmpl/prog/img/asc.gif create mode 100644 koha-tmpl/intranet-tmpl/prog/img/ascdesc.gif create mode 100644 koha-tmpl/intranet-tmpl/prog/img/desc.gif diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index 37e079e232..725faac01e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -1481,3 +1481,16 @@ ul#i18nMenu li.more ul li a { color : #999; font-style : italic; } +/* Tablesorter */ +.header { + background-image:url("../../img/ascdesc.gif"); + background-position:right center; + background-repeat:no-repeat; + cursor:pointer; +} +.headerSortUp { + background-image:url("../../img/asc.gif"); +} +.headerSortDown { + background-image:url("../../img/desc.gif"); +} \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.tablesorter.pack.js b/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.tablesorter.pack.js new file mode 100644 index 0000000000..36040b78d3 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.tablesorter.pack.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(8($){$.1V({I:D 8(){7 C=[],1d=[];k.2v={28:"3Z",2b:"48",29:"49",2P:"4a",2D:"4b",1I:1E,1w:"25",C:{},1d:[],1m:{S:["2c","2L"]},x:{},2u:K,2Q:13,u:[],1y:[],1l:"2O",J:K};8 17(s,d){1h(s+","+(D T().1e()-d.1e())+"4c")}k.17=17;8 1h(s){q(1u 1P!="2S"&&1u 1P.J!="2S"){1P.1h(s)}N{2V(s)}}8 1T(6,$x){q(6.f.J){7 1O=""}7 G=6.L[0].G;q(6.L[0].G[0]){7 Z=[],12=G[0].12,l=12.w;y(7 i=0;i1){1k=1k.3b(2K(6,3c,1c++))}N{q(6.1t.w==1||(11.3e>1||!r[1c+1])){1k.R(11)}}}m 1k};8 2d(11){q(($.1o)&&($(11).16().1g===K)){m 13};m K}8 2e(6,i){q((6.f.x[i])&&(6.f.x[i].1g===K)){m 13};m K}8 1z(6){7 c=6.f.1d;7 l=c.w;y(7 i=0;i\');$("2j:3l 3H",6.L[0]).1s(8(){1v.3G($(\'<3o>\').S(\'2l\',$(k).2l()))});$(6).3r(1v)}}8 2M(6,u){7 c=6.f,l=u.w;y(7 i=0;ib)?1:0))};8 2o(a,b){m((ba)?1:0))};8 2p(a,b){m a-b};8 2q(a,b){m b-a};8 2s(C,i){m C[i].Q};k.2f=8(2w){m k.1s(8(){q(!k.1t||!k.L)m;7 $k,$3E,$x,F,f,3F=0,3I;k.f={};f=$.1V(k.f,$.I.2v,2w);$k=$(k);$x=2x(k);k.f.C=1T(k,$x);F=1U(k);7 1X=[f.29,f.2b];2z(k);$x.3K(8(e){7 19=($k[0].L[0]&&$k[0].L[0].G.w)||0;q(!k.1C&&19>0){7 $11=$(k);7 i=k.1D;k.18=k.1a++%2;q(!e[f.2D]){f.u=[];q(f.1I!=1E){7 a=f.1I;y(7 j=0;j0){$k.1R("2J",[f.u])}1z(k)})};k.P=8(1B){7 l=C.w,a=13;y(7 i=0;i"+strQuery,"z3950search",'width=740,height=450,location=yes,toolbar=no,resize=yes'); + window.open("/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber="+strQuery,"z3950search",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes'); } } 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 847ce0df8c..bccaa14f7e 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 @@ -2,6 +2,8 @@ Koha › Z39.50 Search Results + + - + -

Search Z39.50 Targets:

- -
-
- - - - - - - - - - - - - - -
Search points
" /> " />
" />
+
+
+ +

Z39.50 Search Points

+ + +
+
+
+
  1. " />
  2. +
  3. " />
  4. +
+
+
+
+
  1. " />
  2. +
  3. +
" /> " /> +
-

Search targets:

+
+

Search targets Select AllClear All

+

@@ -53,20 +78,22 @@

+ +

Results

- - +
+ - - + - + @@ -75,17 +102,21 @@ - + - +
Server Title Author ISBN LCCNPreview + Preview  
" title="MARC" rel="gb_page_center[600,500]">MARC | " title="MARC" rel="gb_page_center[600,500]">Card" title="MARC" rel="gb_page_center[600,500]">MARC" title="MARC" rel="gb_page_center[600,500]">Card ,)">Import
Nothing found
+ + +
+

Still servers to search

diff --git a/koha-tmpl/intranet-tmpl/prog/img/asc.gif b/koha-tmpl/intranet-tmpl/prog/img/asc.gif new file mode 100644 index 0000000000000000000000000000000000000000..3074264e5bba2a137385715233897088a8e1f78c GIT binary patch literal 250 zcmZ?wbhEHb6lGvxxXQ$kmS#M2W*Wng1&Tje7#SFt7<52B0Qrf5P28cez(a(k>%*!oo25SK8?GWt% literal 0 HcmV?d00001 -- 2.39.5