X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Ftools%2Fmanage-marc-import.tt;h=e1119d13f19a6815b18e26b2d67b9cdbf18052b6;hb=1fcdef312be42c673d4ae017e3abe7722aba6048;hp=0e350fc75435e7dbe9005a31c7ab57cc68411385;hpb=67a630e81fa8b72dd1ae454f2f0f300a07bc0f8e;p=koha.git diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt index 0e350fc754..e1119d13f1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt @@ -1,6 +1,6 @@ [% BLOCK final_match_link %] [% IF ( record.record_type == 'biblio' ) %] - [% record.final_match_id %] + [% record.final_match_id %] [% ELSIF ( record.record_type == 'auth' ) %] [% record.final_match_id %] [% END %] @@ -10,24 +10,37 @@ [% IF ( record.record_type == 'biblio' ) %] - Matches biblio [% record_lis.match_id %] (score = [% record_lis.match_score %]): [% record_lis.match_citation %] + Matches biblio [% record_lis.match_id %] (score = [% record_lis.match_score %]): [% record_lis.match_citation %] [% ELSIF ( record.record_type == 'auth' ) %] - Matches authority [% record_lis.match_id %] (score = [% record_lis.match_score %]): [% record_lis.match_citation %] + Matches authority [% record_lis.match_id %] (score = [% record_lis.match_score %]): [% record_lis.match_citation %] | + Merge + [% END %] + [% ELSIF ( record.record_type == 'auth') %] + + + Search for a record to merge in a new window + [% END %] [% END %] + [% INCLUDE 'doc-head-open.inc' %] Koha › Tools › Manage staged MARC records [% IF ( import_batch_id ) %] › Batch [% import_batch_id %] [% END %] -[% INCLUDE 'greybox.inc' %] [% INCLUDE 'doc-head-close.inc' %] - - + +[% INCLUDE 'datatables.inc' %] + + #jobprogress{ width:200px;height:10px;border:1px solid #666;background:url('[% interface %]/[% theme %]/img/progress.png') -300px 0px no-repeat; } span.change-status { font-style:italic; color:#666; display:none; }#marcPreview { width : 80%; margin-left : -40%; } @media (max-width: 767px) { #marcPreview { margin: 0; width : auto; } } + [% INCLUDE 'header.inc' %] @@ -76,7 +186,7 @@ $(document).ready(function(){ [% IF ( alert ) %]
[% ELSE %] -
+
[% END %]

[% label_batch_msg %]

@@ -86,6 +196,10 @@ $(document).ready(function(){
Cleaned import batch #[% import_batch_id %]
[% END %] +[% IF ( did_delete ) %] +
Import batch deleted successfully
+[% END %] + [% UNLESS ( batch_list ) %] [% UNLESS ( batch_info ) %]
@@ -166,14 +280,60 @@ $(document).ready(function(){ No matching rule in effect [% END %][% END %] -
  • [% IF ( can_commit ) %] - [% INCLUDE 'tools-overlay-action.inc' %] Changed. Reset[% ELSE %]Action if matching record found:[% overlay_action %][% END %]
  • +
  • + [% IF ( can_commit ) %] + + [% INCLUDE 'tools-overlay-action.inc' %] Changed. Reset + [% ELSE %] + Action if matching record found: + [% IF ( overlay_action == 'replace' ) %] + Replace existing record with incoming record + [% ELSIF ( overlay_action == 'create_new' ) %] + Add incoming record + [% ELSIF ( overlay_action == 'ignore' ) %] + Ignore incoming record (its items may still be processed) + [% ELSE %] + [% overlay_action %] + [% END %] + [% END %]
  • -
  • [% IF ( can_commit ) %] - [% INCLUDE 'tools-nomatch-action.inc' %] Changed. Reset[% ELSE %]Action if no match found:[% nomatch_action %][% END %]
  • - -
  • [% IF ( can_commit ) %] - [% INCLUDE 'tools-item-action.inc' %] Changed. Reset[% ELSE %]Item processing:[% item_action %][% END %]
  • +
  • + [% IF ( can_commit ) %] + + [% INCLUDE 'tools-nomatch-action.inc' %] Changed. Reset + [% ELSE %] + Action if no match found: + [% IF ( nomatch_action == 'create_new' ) %] + Add incoming record + [% ELSIF ( nomatch_action == 'ignore' ) %] + Ignore incoming record (its items may still be processed) + [% ELSE %] + [% nomatch_action %] + [% END %] + [% END %] +
  • + + [% IF ( record_type == 'biblio' ) %] +
  • + [% IF ( can_commit ) %] + + [% INCLUDE 'tools-item-action.inc' %] Changed. Reset + [% ELSE %] + Item processing: + [% IF ( item_action == 'always_add' ) %] + Always add items + [% ELSIF ( item_action == 'add_only_for_matches' ) %] + Add items only if matching bib was found + [% ELSIF ( item_action == 'add_only_for_new' ) %] + Add items only if no matching bib was found + [% ELSIF ( item_action == 'ignore' ) %] + Ignore items + [% ELSE %] + [% item_action %] + [% END %] + [% END %] +
  • + [% END %] [% IF ( can_commit ) %]
    [% END %] @@ -189,6 +349,7 @@ $(document).ready(function(){

    + [% IF ( record_type != 'auth' ) %] Add new bibliographic records into this framework: + [% END %]
    Job progress:
    0%
    @@ -207,7 +369,7 @@ $(document).ready(function(){ -
    +
    Job progress:
    0%
    @@ -219,16 +381,21 @@ $(document).ready(function(){ Number of records added[% num_added %] Number of records updated[% num_updated %] Number of records ignored[% num_ignored %] - Number of items added[% num_items_added %] - Number of items ignored because of duplicate barcode[% num_items_errored %] + [% IF ( record_type == 'biblio' ) %] + Number of items added[% num_items_added %] + Number of items replaced[% num_items_replaced %] + Number of items ignored because of duplicate barcode[% num_items_errored %] + [% END %] [% END %] [% IF ( did_revert ) %]
    Success: Import reversed
    - - + [% IF ( record_type == 'biblio' ) %] + + + [% END %]
    Number of records deleted[% num_deleted %]
    Number of items deleted[% num_items_deleted %]
    Number of records not deleted due to items on loan[% num_errors %]
    Number of items deleted[% num_items_deleted %]
    Number of records not deleted due to items on loan[% num_errors %]
    Number of records changed back[% num_reverted %]
    Number of records ignored[% num_ignored %]
    @@ -262,7 +429,7 @@ Page Action [% FOREACH batch_lis IN batch_list %] - [% UNLESS ( loop.odd ) %][% ELSE %][% END %] + [% batch_lis.import_batch_id %] [% batch_lis.file_name %] [% batch_lis.comments %] @@ -287,11 +454,18 @@ Page [% batch_lis.upload_timestamp %] [% batch_lis.num_records %] [% batch_lis.num_items %][% IF ( batch_lis.num_items ) %] (Create label batch)[% END %] - [% IF ( batch_lis.can_clean ) %] + + [% IF ( batch_lis.can_clean ) %]
    - + +
    + [% ELSIF ( batch_lis.import_status == 'cleaned' ) %] +
    + + +
    [% END %] @@ -312,60 +486,33 @@ Page [% END %] [% END %] -[% IF ( record_list ) %] - [% IF ( pages ) %] -
    -Page - [% FOREACH page IN pages %] - [% IF ( page.current_page ) %] - [% page.page_number %] - [% ELSE %] - [% page.page_number %] - [% END %] - [% END %] -
    - [% END %] - - - - - - - +[% IF import_batch_id %] +
    #CitationStatusMatch?Record
    + + + + + + + + + + + +
    #CitationStatusMatch typeMatch detailsDiffRecord
    - - [% FOREACH record_lis IN record_list %] - [% UNLESS ( loop.odd ) %][% ELSE %][% END %] - [% record_lis.record_sequence %] - [% record_lis.citation %] - [% record_lis.status %] - [% record_lis.overlay_status %] - [% IF ( record_lis.final_match_id ) %] - [% PROCESS final_match_link record=record_lis %] - [% END %] - - - [% PROCESS match_link record=record_lis %] - [% END %] - - [% IF ( pages ) %] -
    -Page - [% FOREACH page IN pages %] - [% IF ( page.current_page ) %] - [% page.page_number %] - [% ELSE %] - [% page.page_number %] - [% END %] - [% END %] -
    - [% END %] -[% ELSE %] - [% IF ( batch_info ) %] -
    There are no records in this batch to import. - Manage staged MARC records.
    - - [% END %] + [% END %]