View | Details | Raw Unified | Return to bug 33418
Collapse All | Expand All

(-)a/misc/bin/connexion_import_daemon.pl (-1 / +5 lines)
Lines 55-65 Config file format: Link Here
55
  password - koha user password, authentication
55
  password - koha user password, authentication
56
  match          - marc_matchers.code: ISBN or ISSN
56
  match          - marc_matchers.code: ISBN or ISSN
57
  overlay_action - import_batches.overlay_action: replace, create_new or ignore
57
  overlay_action - import_batches.overlay_action: replace, create_new or ignore
58
  overlay_framework - if overlaying records - move to a new framework, if blank will use default
59
                      if not included it will use the framework of the existing record
58
  nomatch_action - import_batches.nomatch_action: create_new or ignore
60
  nomatch_action - import_batches.nomatch_action: create_new or ignore
59
  item_action    - import_batches.item_action:    always_add,
61
  item_action    - import_batches.item_action:    always_add,
60
                      add_only_for_matches, add_only_for_new or ignore
62
                      add_only_for_matches, add_only_for_new or ignore
61
  import_mode    - stage or direct
63
  import_mode    - stage or direct
62
  framework      - to be used if import_mode is direct
64
  framework      - to be used if import_mode is direct, if blank, will use default
63
  connexion_user      - User sent from connexion client
65
  connexion_user      - User sent from connexion client
64
  connexion_password  - Password sent from connexion client
66
  connexion_password  - Password sent from connexion client
65
67
Lines 359-364 sub handle_request { Link Here
359
                               'match'          => $self->{params}->{match},
361
                               'match'          => $self->{params}->{match},
360
                               'import_mode'    => $self->{params}->{import_mode},
362
                               'import_mode'    => $self->{params}->{import_mode},
361
                               'framework'      => $self->{params}->{framework},
363
                               'framework'      => $self->{params}->{framework},
364
                               'overlay_framework' => $self->{params}->{overlay_framework},
362
                               'item_action'    => $self->{params}->{item_action},
365
                               'item_action'    => $self->{params}->{item_action},
363
                               'xml'            => $data});
366
                               'xml'            => $data});
364
367
Lines 373-378 sub handle_request { Link Here
373
                               'match'          => $self->{params}->{match},
376
                               'match'          => $self->{params}->{match},
374
                               'import_mode'    => $self->{params}->{import_mode},
377
                               'import_mode'    => $self->{params}->{import_mode},
375
                               'framework'      => $self->{params}->{framework},
378
                               'framework'      => $self->{params}->{framework},
379
                               'overlay_framework' => $self->{params}->{overlay_framework},
376
                               'item_action'    => $self->{params}->{item_action},
380
                               'item_action'    => $self->{params}->{item_action},
377
                               'xml'            => $data})
381
                               'xml'            => $data})
378
          if $resp->is_success;
382
          if $resp->is_success;
(-)a/svc/import_bib (-2 / +3 lines)
Lines 60-65 sub import_bib { Link Here
60
60
61
    my $import_mode = delete $params->{import_mode} || '';
61
    my $import_mode = delete $params->{import_mode} || '';
62
    my $framework   = delete $params->{framework}   || '';
62
    my $framework   = delete $params->{framework}   || '';
63
    my $overlay_framework = delete $params->{overlay_framework} || '';
63
64
64
    if (my $matcher_code = delete $params->{match}) {
65
    if (my $matcher_code = delete $params->{match}) {
65
        $params->{matcher_id} = C4::Matcher::GetMatcherId($matcher_code);
66
        $params->{matcher_id} = C4::Matcher::GetMatcherId($matcher_code);
Lines 94-100 sub import_bib { Link Here
94
    # XXX we are ignoring the result of this;
95
    # XXX we are ignoring the result of this;
95
    BatchCommitRecords({
96
    BatchCommitRecords({
96
        batch_id  => $batch_id,
97
        batch_id  => $batch_id,
97
        framework => $framework
98
        framework => $framework,
99
        overlay_framework => $overlay_framework
98
    }) if lc($import_mode) eq 'direct';
100
    }) if lc($import_mode) eq 'direct';
99
101
100
    my $dbh = C4::Context->dbh();
102
    my $dbh = C4::Context->dbh();
101
- 

Return to bug 33418