Lines 1-6
Link Here
|
1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Acquisitions › [% IF ( opsearch ) %]Order from external source[% ELSE %]Order from external source › Search results[% END %]</title> |
2 |
<title>Koha › Acquisitions › [% IF ( opsearch ) %]Order from external source[% ELSE %]Order from external source › Search results[% END %]</title> |
3 |
[% INCLUDE 'greybox.inc' %] |
|
|
4 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
3 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
5 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
[% INCLUDE 'datatables.inc' %] |
5 |
[% INCLUDE 'datatables.inc' %] |
Lines 40-58
Link Here
|
40 |
/* Inline edit/delete links */ |
39 |
/* Inline edit/delete links */ |
41 |
$("td").click(function(event){ |
40 |
$("td").click(function(event){ |
42 |
var $tgt = $(event.target); |
41 |
var $tgt = $(event.target); |
|
|
42 |
var row = $(this).parent(); |
43 |
$(".linktools").hide(); |
43 |
$(".linktools").hide(); |
44 |
$("tr").removeClass("selected"); |
44 |
$("tr").removeClass("selected"); |
45 |
if($tgt.is("a")||$tgt.is(":nth-child(5)")||$tgt.is(":nth-child(6)")||$tgt.is(":nth-child(7)")||$tgt.is(":nth-child(8)")){ |
45 |
row.addClass("selected"); |
46 |
return true; |
46 |
if($tgt.is("a")||$tgt.is(":nth-child(6)")||$tgt.is(":nth-child(7)")){ |
|
|
47 |
//Don't show inline links for cells containing links of their own. |
47 |
} else { |
48 |
} else { |
48 |
var position = $(this).offset(); |
49 |
var position = $(this).offset(); |
49 |
var top = position.top+5; |
50 |
var top = position.top+5; |
50 |
var left = position.left+5; |
51 |
var left = position.left+5; |
51 |
$(".linktools",row).show().css("position","absolute").css("top",top).css("left",left); |
52 |
$(".linktools",row).show().css("position","absolute").css("top",top).css("left",left); |
52 |
} |
53 |
} |
53 |
var row = $(this).parent(); |
|
|
54 |
row.addClass("selected"); |
55 |
}); |
54 |
}); |
|
|
55 |
$(".previewData").on("click", function(e){ |
56 |
e.preventDefault(); |
57 |
var ltitle = $(this).text(); |
58 |
var page = $(this).attr("href"); |
59 |
$("#dataPreviewLabel").text(ltitle); |
60 |
$("#dataPreview .modal-body").load(page + " div"); |
61 |
$('#dataPreview').modal({show:true}); |
62 |
}); |
63 |
$("#dataPreview").on("hidden", function(){ |
64 |
$("#dataPreviewLabel").html(""); |
65 |
$("#dataPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
66 |
}); |
56 |
}); |
67 |
}); |
57 |
|
68 |
|
58 |
[% IF ( total_pages ) %] |
69 |
[% IF ( total_pages ) %] |
Lines 78-84
function validate_goto_page(){
Link Here
|
78 |
.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;} |
89 |
.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;} |
79 |
.linktools a { font-size : 85%; text-decoration:none; padding:.3em;;background-color:#FFF; display:block;float:left;border-right:1px solid #DDD;} |
90 |
.linktools a { font-size : 85%; text-decoration:none; padding:.3em;;background-color:#FFF; display:block;float:left;border-right:1px solid #DDD;} |
80 |
.linktools a:hover { background-color:#EEE;color:#CC3300;border-right:1px solid #CCC;} |
91 |
.linktools a:hover { background-color:#EEE;color:#CC3300;border-right:1px solid #CCC;} |
81 |
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : transparent !important; } |
92 |
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : transparent !important; } #dataPreview { width : 80%; margin-left : -40%; } @media (max-width: 767px) { #dataPreview { margin: 0; width : auto; } } |
82 |
</style> |
93 |
</style> |
83 |
</head> |
94 |
</head> |
84 |
<body id="acq_z3950_search" class="acq"> |
95 |
<body id="acq_z3950_search" class="acq"> |
Lines 174-186
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
Link Here
|
174 |
<tbody>[% FOREACH breeding_loo IN breeding_loop %] |
185 |
<tbody>[% FOREACH breeding_loo IN breeding_loop %] |
175 |
[% IF ( breeding_loo.breedingid ) %] |
186 |
[% IF ( breeding_loo.breedingid ) %] |
176 |
|
187 |
|
177 |
[% IF ( breeding_loo.toggle ) %]<tr class="highlight">[% ELSE %]<tr>[% END %] |
188 |
<tr> |
178 |
<td>[% breeding_loo.server %] <div class="linktools"><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" rel="gb_page_center[600,500]">Preview MARC</a> <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" rel="gb_page_center[600,500]">Preview card</a> <a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode %]&breedingid=[% breeding_loo.breedingid %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Order</a> <a href="#" id="closemenu" title="Close this menu"> X </a></div></td> |
189 |
<td>[% breeding_loo.server %] <div class="linktools"><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" class="previewData">Preview MARC</a> <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" class="previewData">Preview card</a> <a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode %]&breedingid=[% breeding_loo.breedingid %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Order</a> <a href="#" id="closemenu" title="Close this menu"> X </a></div></td> |
179 |
<td>[% breeding_loo.title |html %]</td> |
190 |
<td>[% breeding_loo.title |html %]</td> |
180 |
<td>[% breeding_loo.author %]</td> |
191 |
<td>[% breeding_loo.author %]</td> |
181 |
<td>[% breeding_loo.isbn %]</td> |
192 |
<td>[% breeding_loo.isbn %]</td> |
182 |
<td>[% breeding_loo.lccn %]</td> |
193 |
<td>[% breeding_loo.lccn %]</td> |
183 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" title="MARC" rel="gb_page_center[600,500]">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" title="Card" rel="gb_page_center[600,500]">Card</a></td> |
194 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% breeding_loo.breedingid %]" title="MARC" class="previewData">MARC</a> | <a href="/cgi-bin/koha/catalogue/showmarc.pl?viewas=card&importid=[% breeding_loo.breedingid %]" title="Card" class="previewData">Card</a></td> |
184 |
<td><a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode %]&breedingid=[% breeding_loo.breedingid %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Order</a></td> |
195 |
<td><a href="/cgi-bin/koha/acqui/neworderempty.pl?frameworkcode=[% frameworkcode %]&breedingid=[% breeding_loo.breedingid %]&booksellerid=[% booksellerid %]&basketno=[% basketno %]">Order</a></td> |
185 |
|
196 |
|
186 |
</tr> |
197 |
</tr> |
Lines 188-193
tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
Link Here
|
188 |
[% END %]</tbody> |
199 |
[% END %]</tbody> |
189 |
</table> |
200 |
</table> |
190 |
|
201 |
|
|
|
202 |
|
203 |
<div id="dataPreview" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="dataPreviewLabel" aria-hidden="true"> |
204 |
<div class="modal-header"> |
205 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
206 |
<h3 id="dataPreviewLabel">MARC preview</h3> |
207 |
</div> |
208 |
<div class="modal-body"> |
209 |
<div id="loading"> <img src="[% interface %]/[% theme %]/img/loading-small.gif" alt="" /> Loading </div> |
210 |
</div> |
211 |
<div class="modal-footer"> |
212 |
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> |
213 |
</div> |
214 |
</div> |
215 |
|
191 |
<form method="post" action="z3950_search.pl" id="page_form" name="page_form" class="checkboxed"> |
216 |
<form method="post" action="z3950_search.pl" id="page_form" name="page_form" class="checkboxed"> |
192 |
<input type="hidden" name="op" id="op" value="do_search" /> |
217 |
<input type="hidden" name="op" id="op" value="do_search" /> |
193 |
<input type="hidden" name="current_page" id="current_page" value="[% current_page %]" /> |
218 |
<input type="hidden" name="current_page" id="current_page" value="[% current_page %]" /> |
194 |
- |
|
|