Lines 2-8
Link Here
|
2 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
[% INCLUDE 'doc-head-open.inc' %] |
3 |
<title>Koha › Tools › Batch record modification</title> |
3 |
<title>Koha › Tools › Batch record modification</title> |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
5 |
[% INCLUDE 'greybox.inc' %] |
|
|
6 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
5 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
7 |
[% INCLUDE 'datatables.inc' %] |
6 |
[% INCLUDE 'datatables.inc' %] |
8 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
7 |
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
Lines 55-69
$(document).ready(function() {
Link Here
|
55 |
$("#marc_modification_template_id").change(function(){ |
54 |
$("#marc_modification_template_id").change(function(){ |
56 |
var url = "/cgi-bin/koha/svc/records/preview?" |
55 |
var url = "/cgi-bin/koha/svc/records/preview?" |
57 |
var mmtid = $(this).val(); |
56 |
var mmtid = $(this).val(); |
58 |
$("a.preview").each(function(){ |
57 |
$("a.previewMARC").each(function(){ |
59 |
$(this).attr("href", url + "record_type=" + $(this).attr("data-record_type") + "&record_id=" + $(this).attr("data-record_id") + "&mmtid=" + mmtid); |
58 |
$(this).attr("href", url + "record_type=" + $(this).attr("data-record_type") + "&record_id=" + $(this).attr("data-record_id") + "&mmtid=" + mmtid); |
60 |
}); |
59 |
}); |
61 |
}); |
60 |
}); |
62 |
|
61 |
|
63 |
$("a.preview").click(function(){ |
62 |
$("body").on("click",".previewMARC", function(e){ |
64 |
// Equivalent to rel="gb_page_center[600,500]" |
63 |
e.preventDefault(); |
65 |
return GB_showCenter(_("Preview MARC"), this.href , 600, 500); |
64 |
var ltitle = $(this).text(); |
66 |
}); |
65 |
var page = $(this).attr("href"); |
|
|
66 |
$("#marcPreviewLabel").text(ltitle); |
67 |
$("#marcPreview .modal-body").load(page + " div"); |
68 |
$('#marcPreview').modal({show:true}); |
69 |
}); |
70 |
$("#marcPreview").on("hidden", function(){ |
71 |
$("#marcPreviewLabel").html(""); |
72 |
$("#marcPreview .modal-body").html("<div id=\"loading\"><img src=\"[% interface %]/[% theme %]/img/loading-small.gif\" alt=\"\" /> "+_("Loading")+"</div>"); |
73 |
}); |
67 |
|
74 |
|
68 |
}); |
75 |
}); |
69 |
//]]> |
76 |
//]]> |
Lines 191-202
$(document).ready(function() {
Link Here
|
191 |
<td><input type="checkbox" name="record_id" value="[% biblio.biblionumber %]" data-items="[% biblio.itemnumbers.size %]" data-issues="[% biblio.issues_count %]" data-reserves="[% biblio.reserves.size %]" /></td> |
198 |
<td><input type="checkbox" name="record_id" value="[% biblio.biblionumber %]" data-items="[% biblio.itemnumbers.size %]" data-issues="[% biblio.issues_count %]" data-reserves="[% biblio.reserves.size %]" /></td> |
192 |
<td>[% biblio.biblionumber %]</td> |
199 |
<td>[% biblio.biblionumber %]</td> |
193 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.title %]</a></td> |
200 |
<td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber %]">[% biblio.title %]</a></td> |
194 |
<td><a href="/cgi-bin/koha/svc/records/preview?record_type=biblio&record_id=[% biblio.biblionumber %]&mmtid=[% mmtid %]" class="preview" data-record_type="biblio" data-record_id="[% biblio.biblionumber %]" data-mmtid="[% mmtid %]" title="Preview MARC" >Preview MARC</a> |
201 |
<td><a href="/cgi-bin/koha/svc/records/preview?record_type=biblio&record_id=[% biblio.biblionumber %]&mmtid=[% mmtid %]" class="previewMARC" data-record_type="biblio" data-record_id="[% biblio.biblionumber %]" data-mmtid="[% mmtid %]" title="Preview MARC" >Preview MARC</a> |
195 |
</tr> |
202 |
</tr> |
196 |
[% END %] |
203 |
[% END %] |
197 |
</tbody> |
204 |
</tbody> |
198 |
</table> |
205 |
</table> |
199 |
<div class="note">Reminder: this action will modify all selected biblios!</div> |
206 |
<div class="note">Reminder: this action will modify all selected biblios!</div> |
|
|
207 |
|
208 |
<div id="marcPreview" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true"> |
209 |
<div class="modal-header"> |
210 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
211 |
<h3 id="marcPreviewLabel">MARC preview</h3> |
212 |
</div> |
213 |
<div class="modal-body"> |
214 |
<div id="loading"> <img src="[% interface %]/[% theme %]/img/loading-small.gif" alt="" /> Loading </div> |
215 |
</div> |
216 |
<div class="modal-footer"> |
217 |
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> |
218 |
</div> |
219 |
</div> |
220 |
|
200 |
[% ELSE %] |
221 |
[% ELSE %] |
201 |
<div id="toolbar"> |
222 |
<div id="toolbar"> |
202 |
<a id="selectall" href="#">Select all</a> |
223 |
<a id="selectall" href="#">Select all</a> |
Lines 217-229
$(document).ready(function() {
Link Here
|
217 |
<td><input type="checkbox" name="record_id" value="[% authority.authid %]" data-usage="[% authority.count_usage %]" /></td> |
238 |
<td><input type="checkbox" name="record_id" value="[% authority.authid %]" data-usage="[% authority.count_usage %]" /></td> |
218 |
<td><a href="/cgi-bin/koha/authorities/detail.pl?authid=[% authority.authid %]">[% authority.authid %]</a></td> |
239 |
<td><a href="/cgi-bin/koha/authorities/detail.pl?authid=[% authority.authid %]">[% authority.authid %]</a></td> |
219 |
<td>[% PROCESS authresult summary=authority.summary %]</td> |
240 |
<td>[% PROCESS authresult summary=authority.summary %]</td> |
220 |
<td><a href="/cgi-bin/koha/svc/records/preview?record_type=authority&record_id=[% authority.authid %]&mmtid=[% mmtid %]" class="preview" data-record_type="authority" data-record_id="[% authority.authid %]" data-mmtid="[% mmtid %]" title="Preview MARC" rel="gb_page_center[600,500]">Preview MARC</a> |
241 |
<td><a href="/cgi-bin/koha/svc/records/preview?record_type=authority&record_id=[% authority.authid %]&mmtid=[% mmtid %]" data-record_type="authority" data-record_id="[% authority.authid %]" data-mmtid="[% mmtid %]" class="previewMARC">Preview MARC</a> |
221 |
</tr> |
242 |
</tr> |
222 |
[% END %] |
243 |
[% END %] |
223 |
</tbody> |
244 |
</tbody> |
224 |
</table> |
245 |
</table> |
225 |
<div class="note">Reminder: this action will modify all selected authorities!</div> |
246 |
<div class="note">Reminder: this action will modify all selected authorities!</div> |
226 |
[% END %] |
247 |
[% END %] |
|
|
248 |
|
249 |
<div id="marcPreview" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="marcPreviewLabel" aria-hidden="true"> |
250 |
<div class="modal-header"> |
251 |
<button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button> |
252 |
<h3 id="marcPreviewLabel">MARC preview</h3> |
253 |
</div> |
254 |
<div class="modal-body"> |
255 |
<div id="loading"> <img src="[% interface %]/[% theme %]/img/loading-small.gif" alt="" /> Loading </div> |
256 |
</div> |
257 |
<div class="modal-footer"> |
258 |
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> |
259 |
</div> |
260 |
</div> |
261 |
|
227 |
<fieldset class="action"> |
262 |
<fieldset class="action"> |
228 |
<input type="hidden" name="op" value="modify" /> |
263 |
<input type="hidden" name="op" value="modify" /> |
229 |
<input type="hidden" name="recordtype" value="[% recordtype %]" /> |
264 |
<input type="hidden" name="recordtype" value="[% recordtype %]" /> |
230 |
- |
|
|