Lines 1-31
Link Here
|
1 |
[% BLOCK final_match_link %] |
|
|
2 |
[% IF ( record.record_type == 'biblio' ) %] |
3 |
<a target="_blank" href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% record.final_match_id %]">[% record.final_match_id %]</a> |
4 |
[% ELSIF ( record.record_type == 'auth' ) %] |
5 |
<a href="/cgi-bin/koha/authorities/detail.pl?authid=[% record.final_match_id %]">[% record.final_match_id %]</a> |
6 |
[% END %] |
7 |
[% END %] |
8 |
[% BLOCK match_link %] |
9 |
[% IF ( record_lis.match_id ) %] |
10 |
<tr> |
11 |
<td /> |
12 |
[% IF ( record.record_type == 'biblio' ) %] |
13 |
<td class="highlight" colspan="4">Matches biblio [% record_lis.match_id %] (score = [% record_lis.match_score %]): <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% record_lis.match_id %]">[% record_lis.match_citation %]</a></td> |
14 |
[% ELSIF ( record.record_type == 'auth' ) %] |
15 |
<td class="highlight" colspan="4">Matches authority [% record_lis.match_id %] (score = [% record_lis.match_score %]): <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% record_lis.match_id %]">[% record_lis.match_citation %]</a></td> |
16 |
[% END %] |
17 |
</tr> |
18 |
[% END %] |
19 |
[% END %] |
20 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
21 |
<title>Koha › Tools › Manage staged MARC records |
2 |
<title>Koha › Tools › Manage staged MARC records |
22 |
[% IF ( import_batch_id ) %] |
3 |
[% IF ( import_batch_id ) %] |
23 |
› Batch [% import_batch_id %] |
4 |
› Batch [% import_batch_id %] |
24 |
[% END %] |
5 |
[% END %] |
25 |
</title> |
6 |
</title> |
26 |
[% INCLUDE 'greybox.inc' %] |
|
|
27 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
28 |
<script type="text/javascript" src="[% themelang %]/js/background-job-progressbar.js"></script> |
8 |
<script type="text/javascript" src="[% themelang %]/js/background-job-progressbar.js"></script> |
|
|
9 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
10 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script> |
11 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script> |
12 |
[% INCLUDE 'datatables-strings.inc' %] |
13 |
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> |
29 |
<script type="text/JavaScript" language="JavaScript"> |
14 |
<script type="text/JavaScript" language="JavaScript"> |
30 |
//<![CDATA[ |
15 |
//<![CDATA[ |
31 |
var MSG_CONFIRM_CLEAN = _("Clear all reservoir records staged in this batch? This cannot be undone."); |
16 |
var MSG_CONFIRM_CLEAN = _("Clear all reservoir records staged in this batch? This cannot be undone."); |
Lines 41-47
$(document).ready(function(){
Link Here
|
41 |
$("#"+str+" option[selected='selected']").attr("selected","selected"); |
26 |
$("#"+str+" option[selected='selected']").attr("selected","selected"); |
42 |
$(this).parent().hide(); |
27 |
$(this).parent().hide(); |
43 |
}); |
28 |
}); |
|
|
29 |
|
30 |
$("#records-table").dataTable({ |
31 |
"aLengthMenu": [[10, 15, 20, 25, 50, 100], [10, 15, 20, 25, 50, 100]], |
32 |
"iDisplayLength" : 20, |
33 |
"bAutoWidth": false, |
34 |
"bFilter": false, |
35 |
"bProcessing": true, |
36 |
"bServerSide": true, |
37 |
"sAjaxSource": 'batch_records_ajax.pl', |
38 |
"sPaginationType": "full_numbers", |
39 |
"aoColumns": [ |
40 |
{ "mDataProp": "import_record_id" }, |
41 |
{ "mDataProp": "citation" }, |
42 |
{ "mDataProp": "status" }, |
43 |
{ "mDataProp": "overlay_status" }, |
44 |
{ "mDataProp": "match_citation" }, |
45 |
{ "mDataProp": "matched" }, |
46 |
], |
47 |
"fnServerData": function ( sSource, aoData, fnCallback ) { |
48 |
aoData.push( { "name": "import_batch_id", "value": [% import_batch_id %] } ); |
49 |
|
50 |
$.getJSON( sSource, aoData, function (json) { |
51 |
fnCallback(json) |
52 |
} ); |
53 |
}, |
54 |
"fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) { |
55 |
$('td:eq(1)', nRow).html( |
56 |
'<a href="javascript:void()" onclick="show_marc(' |
57 |
+ aData['import_record_id'] |
58 |
+ ')">' + aData['citation'] + '</a>' |
59 |
); |
60 |
|
61 |
if ( aData['match_id'] ) { |
62 |
$('td:eq(4)', nRow).html( |
63 |
_("Matches biblio ") |
64 |
+ aData['match_id'] |
65 |
+ " (" + _("score") + "=" |
66 |
+ aData['score'] |
67 |
+ '):' + '<a target="_blank" href="http://staff.kohadev/cgi-bin/koha/catalogue/detail.pl?biblionumber=' |
68 |
+ aData['match_id'] + '">' + aData['match_citation'] + '</a>' |
69 |
); |
70 |
} |
71 |
|
72 |
$('td:eq(5)', nRow).html( |
73 |
'<a target="_blank" href="http://staff.kohadev/cgi-bin/koha/catalogue/detail.pl?biblionumber=' |
74 |
+ aData['matched'] + '">' + aData['matched'] + '</a>' |
75 |
); |
76 |
}, |
77 |
}); |
44 |
}); |
78 |
}); |
|
|
79 |
|
80 |
function show_marc( id ) { |
81 |
var page = "/cgi-bin/koha/catalogue/showmarc.pl?importid=" + id; |
82 |
|
83 |
var $dialog = $('<div></div>') |
84 |
.html('<iframe style="border: 0px; " src="' + page + '" width="100%" height="100%"></iframe>') |
85 |
.dialog({ |
86 |
autoOpen: false, |
87 |
modal: true, |
88 |
height: 625, |
89 |
width: 500, |
90 |
title: _("MARC Preview") |
91 |
}); |
92 |
|
93 |
$dialog.dialog('open'); |
94 |
} |
45 |
//]]> |
95 |
//]]> |
46 |
</script> |
96 |
</script> |
47 |
<style type="text/css"> |
97 |
<style type="text/css"> |
Lines 316-376
Page
Link Here
|
316 |
[% END %] |
366 |
[% END %] |
317 |
[% END %] |
367 |
[% END %] |
318 |
|
368 |
|
319 |
[% IF ( record_list ) %] |
369 |
<table id="records-table"> |
320 |
[% IF ( pages ) %] |
370 |
<thead> |
321 |
<div class="pages"> |
371 |
<tr> |
322 |
Page |
372 |
<th>#</th> |
323 |
[% FOREACH page IN pages %] |
373 |
<th>Citation</th> |
324 |
[% IF ( page.current_page ) %] |
374 |
<th>Status</th> |
325 |
<span class="current">[% page.page_number %]</span> |
375 |
<th>Match?</th> |
326 |
[% ELSE %] |
376 |
<th> </th> |
327 |
<a class="nav" href="[% page.script_name %]?import_batch_id=[% import_batch_id %]&offset=[% page.offset %]">[% page.page_number %]</a> |
377 |
<th>Record</th> |
328 |
[% END %] |
378 |
</tr> |
329 |
[% END %] |
379 |
</thead> |
330 |
</div> |
|
|
331 |
[% END %] |
332 |
<table> |
333 |
<tr> |
334 |
<th>#</th> |
335 |
<th>Citation</th> |
336 |
<th>Status</th> |
337 |
<th>Match?</th> |
338 |
<th>Record</th> |
339 |
|
380 |
|
340 |
</tr> |
|
|
341 |
[% FOREACH record_lis IN record_list %] |
342 |
[% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %] |
343 |
<td>[% record_lis.record_sequence %]</td> |
344 |
<td><a href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% record_lis.import_record_id %]" rel="gb_page_center[600,500]">[% record_lis.citation %]</a></td> |
345 |
<td>[% record_lis.status %]</td> |
346 |
<td>[% record_lis.overlay_status %]</td> |
347 |
<td>[% IF ( record_lis.final_match_id ) %] |
348 |
[% PROCESS final_match_link record=record_lis %] |
349 |
[% END %] |
350 |
</td> |
351 |
</tr> |
352 |
[% PROCESS match_link record=record_lis %] |
353 |
[% END %] |
354 |
</table> |
381 |
</table> |
355 |
[% IF ( pages ) %] |
|
|
356 |
<div class="pages"> |
357 |
Page |
358 |
[% FOREACH page IN pages %] |
359 |
[% IF ( page.current_page ) %] |
360 |
<span class="current">[% page.page_number %]</span> |
361 |
[% ELSE %] |
362 |
<a class="nav" href="[% page.script_name %]?import_batch_id=[% import_batch_id %]&offset=[% page.offset %]">[% page.page_number %]</a> |
363 |
[% END %] |
364 |
[% END %] |
365 |
</div> |
366 |
[% END %] |
367 |
[% ELSE %] |
368 |
[% IF ( batch_info ) %] |
369 |
<div class="dialog alert">There are no records in this batch to import. |
370 |
<a href="/cgi-bin/koha/tools/manage-marc-import.pl">Manage staged MARC records</a>.</div> |
371 |
|
372 |
[% END %] |
373 |
[% END %] |
374 |
|
382 |
|
375 |
</div> |
383 |
</div> |
376 |
</div> |
384 |
</div> |