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

(-)a/acqui/addorderiso2709.pl (-5 / +11 lines)
Lines 31-36 use C4::Auth; Link Here
31
use C4::Output;
31
use C4::Output;
32
use C4::ImportBatch;
32
use C4::ImportBatch;
33
use C4::Matcher;
33
use C4::Matcher;
34
use C4::Search qw/FindDuplicate/;
34
use C4::Acquisition;
35
use C4::Acquisition;
35
use C4::Biblio;
36
use C4::Biblio;
36
use C4::Items;
37
use C4::Items;
Lines 159-171 if ($op eq ""){ Link Here
159
        # 1st insert the biblio, or find it through matcher
160
        # 1st insert the biblio, or find it through matcher
160
        unless ( $biblionumber ) {
161
        unless ( $biblionumber ) {
161
            if ($matcher_id) {
162
            if ($matcher_id) {
162
                my $matcher = C4::Matcher->fetch($matcher_id);
163
                if ( $matcher_id eq '_TITLE_AUTHOR_' ) {
163
                my @matches = $matcher->get_matches( $marcrecord, my $max_matches = 1 );
164
                    $duplinbatch = $import_batch_id if FindDuplicate($marcrecord);
164
                if ( @matches ) {
165
                    $duplinbatch = $import_batch_id;
166
                    next;
167
                }
165
                }
166
                else {
167
                    my $matcher = C4::Matcher->fetch($matcher_id);
168
                    my @matches = $matcher->get_matches( $marcrecord, my $max_matches = 1 );
169
                    $duplinbatch = $import_batch_id if @matches;
170
                }
171
172
                next if $duplinbatch;
168
            }
173
            }
174
169
            # add the biblio
175
            # add the biblio
170
            my $bibitemnum;
176
            my $bibitemnum;
171
177
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt (-1 / +1 lines)
Lines 198-203 Link Here
198
                            <span>
198
                            <span>
199
                                <label for="matcher_id">Matching:</label>
199
                                <label for="matcher_id">Matching:</label>
200
                                    <select name="matcher_id" id="matcher_id">
200
                                    <select name="matcher_id" id="matcher_id">
201
                                        <option value="_TITLE_AUTHOR_">Title and author</option>
201
                                        <option value="">Do not look for matching records</option>
202
                                        <option value="">Do not look for matching records</option>
202
                                        [% FOREACH available_matcher IN available_matchers %]
203
                                        [% FOREACH available_matcher IN available_matchers %]
203
                                            [% IF ( available_matcher.code == current_matcher_code ) %]
204
                                            [% IF ( available_matcher.code == current_matcher_code ) %]
204
- 

Return to bug 16493