|
Lines 66-72
$(document).ready(function(){
Link Here
|
| 66 |
{ "mDataProp": "status" }, |
66 |
{ "mDataProp": "status" }, |
| 67 |
{ "mDataProp": "overlay_status" }, |
67 |
{ "mDataProp": "overlay_status" }, |
| 68 |
{ "mDataProp": "match_citation" }, |
68 |
{ "mDataProp": "match_citation" }, |
| 69 |
{ "mDataProp": "matched" }, |
69 |
{ "mDataProp": "diff_url" }, |
|
|
70 |
{ "mDataProp": "matched" } |
| 70 |
], |
71 |
], |
| 71 |
"fnServerData": function ( sSource, aoData, fnCallback ) { |
72 |
"fnServerData": function ( sSource, aoData, fnCallback ) { |
| 72 |
aoData.push( { "name": "import_batch_id", "value": [% import_batch_id %] } ); |
73 |
aoData.push( { "name": "import_batch_id", "value": [% import_batch_id %] } ); |
|
Lines 122-129
$(document).ready(function(){
Link Here
|
| 122 |
+ aData['match_id'] + '">' + aData['match_citation'] + '</a>') |
123 |
+ aData['match_id'] + '">' + aData['match_citation'] + '</a>') |
| 123 |
); |
124 |
); |
| 124 |
} |
125 |
} |
| 125 |
|
126 |
if (aData['diff_url']){ |
| 126 |
$('td:eq(5)', nRow).html( |
127 |
$('td:eq(5)', nRow).html( |
|
|
128 |
'<a rel="gb_page_center[960,600]" href="'+aData['diff_url']+'">View</a>' |
| 129 |
); |
| 130 |
} |
| 131 |
$('td:eq(6)', nRow).html( |
| 127 |
'<a target="_blank" href="' + record_details_url |
132 |
'<a target="_blank" href="' + record_details_url |
| 128 |
+ aData['matched'] + '">' + aData['matched'] + '</a>' |
133 |
+ aData['matched'] + '">' + aData['matched'] + '</a>' |
| 129 |
); |
134 |
); |
|
Lines 475-574
Page
Link Here
|
| 475 |
<th>Status</th> |
480 |
<th>Status</th> |
| 476 |
<th>Match type</th> |
481 |
<th>Match type</th> |
| 477 |
<th>Match details</th> |
482 |
<th>Match details</th> |
|
|
483 |
<th><abbr title="Differences between the original biblio and the imported" lang="en">Diff</abbr></th> |
| 478 |
<th>Record</th> |
484 |
<th>Record</th> |
| 479 |
</tr> |
485 |
</tr> |
| 480 |
</thead> |
486 |
</thead> |
| 481 |
</table> |
487 |
</table> |
| 482 |
[% END %] |
488 |
[% END %] |
| 483 |
|
489 |
|
| 484 |
[% IF ( record_list ) %] |
|
|
| 485 |
[% IF ( pages ) %] |
| 486 |
<div class="pages"> |
| 487 |
Page |
| 488 |
[% FOREACH page IN pages %] |
| 489 |
[% IF ( page.current_page ) %] |
| 490 |
<span class="current">[% page.page_number %]</span> |
| 491 |
[% ELSE %] |
| 492 |
<a class="nav" href="[% page.script_name %]?import_batch_id=[% import_batch_id %]&offset=[% page.offset %]">[% page.page_number %]</a> |
| 493 |
[% END %] |
| 494 |
[% END %] |
| 495 |
</div> |
| 496 |
[% END %] |
| 497 |
<table> |
| 498 |
<tr> |
| 499 |
<th>#</th> |
| 500 |
<th>Citation</th> |
| 501 |
<th>Status</th> |
| 502 |
<th>Match?</th> |
| 503 |
<th>Record</th> |
| 504 |
<th><abbr title="Differences between the original biblio and the imported" lang="en">Diff</abbr></th> |
| 505 |
|
| 506 |
</tr> |
| 507 |
[% FOREACH record_lis IN record_list %] |
| 508 |
[% UNLESS ( loop.odd ) %]<tr data-id="[% record_lis.import_record_id %]" class="highlight">[% ELSE %]<tr data-id="[% record_lis.import_record_id %]">[% END %] |
| 509 |
<td>[% record_lis.record_sequence %]</td> |
| 510 |
<td><a class="citation" href="/cgi-bin/koha/catalogue/showmarc.pl?importid=[% record_lis.import_record_id %]" rel="gb_page_center[600,500]">[% record_lis.citation %]</a></td> |
| 511 |
<td> |
| 512 |
[% IF ( record_lis.status == 'imported' ) %] |
| 513 |
Imported |
| 514 |
[% ELSIF ( record_lis.status == 'ignored' ) %] |
| 515 |
Ignored |
| 516 |
[% ELSIF ( record_lis.status == 'reverted' ) %] |
| 517 |
Reverted |
| 518 |
[% ELSIF ( record_lis.status == 'staged' ) %] |
| 519 |
Staged |
| 520 |
[% ELSIF ( record_lis.status == 'error' ) %] |
| 521 |
Error |
| 522 |
[% ELSE %] |
| 523 |
[% record_lis.status %] |
| 524 |
[% END %] |
| 525 |
</td> |
| 526 |
<td> |
| 527 |
[% IF ( record_lis.overlay_status == 'no_match' ) %] |
| 528 |
No match |
| 529 |
[% ELSIF ( record_lis.overlay_status == 'match_applied' ) %] |
| 530 |
Match applied |
| 531 |
[% ELSIF ( record_lis.overlay_status == 'auto_match' ) %] |
| 532 |
Match found |
| 533 |
[% ELSE %] |
| 534 |
[% record_lis.overlay_status %] |
| 535 |
[% END %] |
| 536 |
</td> |
| 537 |
<td>[% IF ( record_lis.final_match_id ) %] |
| 538 |
[% PROCESS final_match_link record=record_lis %] |
| 539 |
[% END %] |
| 540 |
</td> |
| 541 |
[% IF ( record_lis.match_id ) %] |
| 542 |
<td> |
| 543 |
<a rel="gb_page_center[960,600]" href="/cgi-bin/koha/catalogue/showdiffmarc.pl?importid=[% record_lis.import_record_id %]&id=[% record_lis.match_id %]">View</a> |
| 544 |
</td> |
| 545 |
[% ELSE %] |
| 546 |
<td> </td> |
| 547 |
[% END %] |
| 548 |
</tr> |
| 549 |
[% PROCESS match_link record=record_lis %] |
| 550 |
[% END %] |
| 551 |
</table> |
| 552 |
[% IF ( pages ) %] |
| 553 |
<div class="pages"> |
| 554 |
Page |
| 555 |
[% FOREACH page IN pages %] |
| 556 |
[% IF ( page.current_page ) %] |
| 557 |
<span class="current">[% page.page_number %]</span> |
| 558 |
[% ELSE %] |
| 559 |
<a class="nav" href="[% page.script_name %]?import_batch_id=[% import_batch_id %]&offset=[% page.offset %]">[% page.page_number %]</a> |
| 560 |
[% END %] |
| 561 |
[% END %] |
| 562 |
</div> |
| 563 |
[% END %] |
| 564 |
[% ELSE %] |
| 565 |
[% IF ( batch_info ) %] |
| 566 |
<div class="dialog alert">There are no records in this batch to import. |
| 567 |
<a href="/cgi-bin/koha/tools/manage-marc-import.pl">Manage staged MARC records</a>.</div> |
| 568 |
|
| 569 |
[% END %] |
| 570 |
[% END %] |
| 571 |
|
| 572 |
</div> |
490 |
</div> |
| 573 |
</div> |
491 |
</div> |
| 574 |
<div class="yui-b"> |
492 |
<div class="yui-b"> |