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

(-)a/C4/Output.pm (+4 lines)
Lines 338-343 sub output_and_exit_if_error { Link Here
338
            elsif( not $logged_in_user->can_see_patron_infos( $current_patron ) ) {
338
            elsif( not $logged_in_user->can_see_patron_infos( $current_patron ) ) {
339
                $error = 'cannot_see_patron_infos';
339
                $error = 'cannot_see_patron_infos';
340
            }
340
            }
341
        } elsif ( $params->{module} eq 'cataloguing' ) {
342
            # We are testing the record to avoid additem to fetch the Koha::Biblio
343
            # But in the long term we will want to get a biblio in parameter
344
            $error = 'unknown_biblio' unless $params->{record};
341
        }
345
        }
342
    }
346
    }
343
347
(-)a/cataloguing/additem.pl (+4 lines)
Lines 421-426 $restrictededition = 0 if ($restrictededition != 0 && $frameworkcode eq 'FA' && Link Here
421
421
422
my $tagslib = &GetMarcStructure(1,$frameworkcode);
422
my $tagslib = &GetMarcStructure(1,$frameworkcode);
423
my $record = GetMarcBiblio({ biblionumber => $biblionumber });
423
my $record = GetMarcBiblio({ biblionumber => $biblionumber });
424
425
output_and_exit_if_error( $input, $cookie, $template,
426
    { module => 'cataloguing', record => $record } );
427
424
my $oldrecord = TransformMarcToKoha($record);
428
my $oldrecord = TransformMarcToKoha($record);
425
my $itemrecord;
429
my $itemrecord;
426
my $nextop="additem";
430
my $nextop="additem";
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (-2 / +1 lines)
Lines 32-38 Link Here
32
    <div class="row">
32
    <div class="row">
33
        <div class="col-sm-12">
33
        <div class="col-sm-12">
34
            <main>
34
            <main>
35
35
                [% INCLUDE 'blocking_errors.inc' %]
36
<h1>Items for [% title | html %] [% IF ( author ) %] by [% author | html %][% END %] (Record #[% biblionumber | html %])</h1>
36
<h1>Items for [% title | html %] [% IF ( author ) %] by [% author | html %][% END %] (Record #[% biblionumber | html %])</h1>
37
37
38
[% IF ( barcode_not_unique ) %]<div class="dialog alert"><strong>Error saving item</strong>: Barcode must be unique.</div>[% END %]
38
[% IF ( barcode_not_unique ) %]<div class="dialog alert"><strong>Error saving item</strong>: Barcode must be unique.</div>[% END %]
39
- 

Return to bug 23117