Lines 18-23
$.tablesorter.addParser({
Link Here
|
18 |
type: 'text' |
18 |
type: 'text' |
19 |
}); |
19 |
}); |
20 |
|
20 |
|
|
|
21 |
function closemenu(){ |
22 |
$(".linktools").hide(); |
23 |
$("tr").removeClass("selected"); |
24 |
} |
21 |
$(document).ready(function(){ |
25 |
$(document).ready(function(){ |
22 |
$("#CheckAll").click(function(){ |
26 |
$("#CheckAll").click(function(){ |
23 |
$(".checkboxed").checkCheckboxes(); |
27 |
$(".checkboxed").checkCheckboxes(); |
Lines 29-40
$(document).ready(function(){
Link Here
|
29 |
}); |
33 |
}); |
30 |
$("#resultst").tablesorter({ |
34 |
$("#resultst").tablesorter({ |
31 |
sortList: [[1,0]], |
35 |
sortList: [[1,0]], |
32 |
headers: { 0: {sorter:false}, 1: { sorter: 'articles' },5: { sorter: false },6: { sorter: false } }, |
36 |
headers: { 1: { sorter: 'articles' },7: { sorter: false },8: { sorter: false } }, |
33 |
widgets: ['zebra'] |
37 |
widgets: ['zebra'] |
34 |
}); |
38 |
}); |
|
|
39 |
/* Inline edit/delete links */ |
40 |
$("td").click(function(event){ |
41 |
$(".linktools").hide(); |
42 |
$("tr").removeClass("selected"); |
43 |
var row = $(this).parent(); |
44 |
row.addClass("selected"); |
45 |
|
46 |
var $tgt = $(event.target); |
47 |
if($tgt.is("a")||$tgt.is(":nth-child(7)")||$tgt.is(":nth-child(8)")||$tgt.is(":nth-child(9)")||$tgt.is(":nth-child(10)")){ return true; } else { |
48 |
var position = $(this).offset(); |
49 |
var top = position.top+5; |
50 |
var left = position.left+5; |
51 |
$(".linktools",row).show().css("position","absolute").css("top",top).css("left",left); |
52 |
} |
53 |
}); |
35 |
}); |
54 |
}); |
|
|
55 |
|
36 |
//]]> |
56 |
//]]> |
37 |
</script> |
57 |
</script> |
|
|
58 |
<style type="text/css"> |
59 |
.linktools { background-color:#FFF;border-top:1px solid #DDD; border-left: 1px solid #DDD; border-right: 1px solid #666; border-bottom:1px solid #666;display: none; white-space: nowrap;} |
60 |
.linktools a { font-size : 85%; text-decoration:none; padding:.3em;;background-color:#FFF; display:block;float:left;border-right:1px solid #DDD;} |
61 |
.linktools a:hover { background-color:#EEE;color:#CC3300;border-right:1px solid #CCC;} |
62 |
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : transparent; } |
63 |
</style> |
64 |
<!-- TMPL_IF name="opsearch" --> |
38 |
<style type="text/css"> |
65 |
<style type="text/css"> |
39 |
#custom-doc { width:53em;*width:51.72em;min-width:689px; margin:auto; text-align:left; } |
66 |
#custom-doc { width:53em;*width:51.72em;min-width:689px; margin:auto; text-align:left; } |
40 |
</style> |
67 |
</style> |
Lines 42-47
$(document).ready(function(){
Link Here
|
42 |
<body> |
69 |
<body> |
43 |
|
70 |
|
44 |
<div id="custom-doc" class="yui-t7"> |
71 |
<div id="custom-doc" class="yui-t7"> |
|
|
72 |
<!-- TMPL_ELSE --> |
73 |
</head> |
74 |
<body style="padding:.5em;"> |
75 |
<div> |
76 |
<!-- /TMPL_IF --> |
45 |
<div id="bd"> |
77 |
<div id="bd"> |
46 |
<!-- TMPL_IF name="opsearch" --> |
78 |
<!-- TMPL_IF name="opsearch" --> |
47 |
<h2>Z39.50 Search Points</h2> |
79 |
<h2>Z39.50 Search Points</h2> |
Lines 103-115
$(document).ready(function(){
Link Here
|
103 |
</tr></thead> |
135 |
</tr></thead> |
104 |
<tbody><!-- TMPL_LOOP name="breeding_loop" --> |
136 |
<tbody><!-- TMPL_LOOP name="breeding_loop" --> |
105 |
<!-- TMPL_IF NAME="breedingid" --> |
137 |
<!-- TMPL_IF NAME="breedingid" --> |
106 |
|
138 |
|
107 |
<!-- TMPL_UNLESS NAME="__odd__" --> |
139 |
<tr id="row<!-- TMPL_VAR NAME="breedingid" -->"> |
108 |
<tr class="highlight"> |
140 |
<td><!-- TMPL_VAR name="server" --> <div class="linktools"><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=<!-- TMPL_VAR NAME="breedingid" -->" rel="gb_page_center[600,500]">Preview MARC</a> <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=<!-- TMPL_VAR NAME="breedingid" -->" rel="gb_page_center[600,500]">Preview Card</a> <a href="#" onclick="Import(<!-- TMPL_VAR NAME="breedingid" -->,0); return false">Import</a><a href="#" onclick="closemenu();return false;" title="Close this menu"> X </a></div> </td> |
109 |
<!-- TMPL_ELSE --> |
|
|
110 |
<tr> |
111 |
<!-- /TMPL_UNLESS --> |
112 |
<td><!-- TMPL_VAR name="server" --></td> |
113 |
<td><!-- TMPL_VAR NAME="title" escape="html" --></td> |
141 |
<td><!-- TMPL_VAR NAME="title" escape="html" --></td> |
114 |
<td><!-- TMPL_VAR NAME="author" --></td> |
142 |
<td><!-- TMPL_VAR NAME="author" --></td> |
115 |
<td><!-- TMPL_VAR NAME="date" --></td> |
143 |
<td><!-- TMPL_VAR NAME="date" --></td> |
Lines 118-124
$(document).ready(function(){
Link Here
|
118 |
<td><!-- TMPL_VAR NAME="lccn" --></td> |
146 |
<td><!-- TMPL_VAR NAME="lccn" --></td> |
119 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=<!-- TMPL_VAR NAME="breedingid" -->" title="MARC" rel="gb_page_center[600,500]">MARC</a></td> |
147 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=<!-- TMPL_VAR NAME="breedingid" -->" title="MARC" rel="gb_page_center[600,500]">MARC</a></td> |
120 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=<!-- TMPL_VAR NAME="breedingid" -->" title="MARC" rel="gb_page_center[600,500]">Card</a></td> |
148 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=<!-- TMPL_VAR NAME="breedingid" -->" title="MARC" rel="gb_page_center[600,500]">Card</a></td> |
121 |
<td><a href="javascript:Import(<!-- TMPL_VAR NAME="breedingid" -->,<!-- TMPL_VAR NAME="biblionumber" -->)">Import</a></td> |
149 |
<td><a href="#" onclick="Import(<!-- TMPL_VAR NAME="breedingid" -->,<!-- TMPL_VAR NAME="biblionumber" -->); return false">Import</a></td> |
122 |
</tr> |
150 |
</tr> |
123 |
<!-- /TMPL_IF --> |
151 |
<!-- /TMPL_IF --> |
124 |
<!-- /TMPL_LOOP --></tbody> |
152 |
<!-- /TMPL_LOOP --></tbody> |
125 |
- |
|
|