|
Lines 1-22
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 ) %] |
|
Lines 26-31
Link Here
|
| 26 |
[% INCLUDE 'greybox.inc' %] |
7 |
[% INCLUDE 'greybox.inc' %] |
| 27 |
[% INCLUDE 'doc-head-close.inc' %] |
8 |
[% INCLUDE 'doc-head-close.inc' %] |
| 28 |
<script type="text/javascript" src="[% themelang %]/js/background-job-progressbar.js"></script> |
9 |
<script type="text/javascript" src="[% themelang %]/js/background-job-progressbar.js"></script> |
|
|
10 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
| 11 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script> |
| 12 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.columnFilter.js"></script> |
| 13 |
[% INCLUDE 'datatables-strings.inc' %] |
| 14 |
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> |
| 29 |
<script type="text/JavaScript" language="JavaScript"> |
15 |
<script type="text/JavaScript" language="JavaScript"> |
| 30 |
//<![CDATA[ |
16 |
//<![CDATA[ |
| 31 |
var MSG_CONFIRM_CLEAN = _("Clear all reservoir records staged in this batch? This cannot be undone."); |
17 |
var MSG_CONFIRM_CLEAN = _("Clear all reservoir records staged in this batch? This cannot be undone."); |
|
Lines 41-46
$(document).ready(function(){
Link Here
|
| 41 |
$("#"+str+" option[selected='selected']").attr("selected","selected"); |
27 |
$("#"+str+" option[selected='selected']").attr("selected","selected"); |
| 42 |
$(this).parent().hide(); |
28 |
$(this).parent().hide(); |
| 43 |
}); |
29 |
}); |
|
|
30 |
|
| 31 |
$("#records-table").dataTable({ |
| 32 |
"bProcessing": true, |
| 33 |
"bServerSide": true, |
| 34 |
"sAjaxSource": 'batch_records_ajax.pl', |
| 35 |
"sPaginationType": "full_numbers", |
| 36 |
"fnServerData": function ( sSource, aoData, fnCallback ) { |
| 37 |
aoData.push( { "name": "import_batch_id", "value": [% import_batch_id %] } ); |
| 38 |
|
| 39 |
$.getJSON( sSource, aoData, function (json) { |
| 40 |
fnCallback(json) |
| 41 |
} ); |
| 42 |
}, |
| 43 |
"fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) { |
| 44 |
$('td:eq(1)', nRow).html( '<a rel="gb_page_center[600,500]" href="/cgi-bin/koha/catalogue/showmarc.pl?importid=' + aData[0] + '">' + aData[1] + '</a>' ); |
| 45 |
$('td:eq(5)', nRow).html( '<a target="_blank" href="http://staff.kohadev/cgi-bin/koha/catalogue/detail.pl?biblionumber=' + aData[5] + '">' + aData[5] + '</a>' ); |
| 46 |
}, |
| 47 |
}); |
| 44 |
}); |
48 |
}); |
| 45 |
//]]> |
49 |
//]]> |
| 46 |
</script> |
50 |
</script> |
|
Lines 317-369
Page
Link Here
|
| 317 |
[% END %] |
321 |
[% END %] |
| 318 |
|
322 |
|
| 319 |
[% IF ( record_list ) %] |
323 |
[% IF ( record_list ) %] |
| 320 |
[% IF ( pages ) %] |
324 |
<table id="records-table"> |
| 321 |
<div class="pages"> |
325 |
<thead> |
| 322 |
Page |
326 |
<tr> |
| 323 |
[% FOREACH page IN pages %] |
327 |
<th>#</th> |
| 324 |
[% IF ( page.current_page ) %] |
328 |
<th>Citation</th> |
| 325 |
<span class="current">[% page.page_number %]</span> |
329 |
<th>Status</th> |
| 326 |
[% ELSE %] |
330 |
<th>Match?</th> |
| 327 |
<a class="nav" href="[% page.script_name %]?import_batch_id=[% import_batch_id %]&offset=[% page.offset %]">[% page.page_number %]</a> |
331 |
<th> </th> |
| 328 |
[% END %] |
332 |
<th>Record</th> |
| 329 |
[% END %] |
333 |
</tr> |
| 330 |
</div> |
334 |
</thead> |
| 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 |
|
335 |
|
| 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> |
336 |
</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 %] |
337 |
[% ELSE %] |
| 368 |
[% IF ( batch_info ) %] |
338 |
[% IF ( batch_info ) %] |
| 369 |
<div class="dialog alert">There are no records in this batch to import. |
339 |
<div class="dialog alert">There are no records in this batch to import. |