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

(-)a/cataloguing/additem.pl (-1 / +1 lines)
Lines 160-166 if ( $op eq 'edititem' || $op eq 'dupeitem' ) { Link Here
160
    my $item = Koha::Items->find($itemnumber);
160
    my $item = Koha::Items->find($itemnumber);
161
    if ( !$item ) {
161
    if ( !$item ) {
162
        $itemnumber = undef;
162
        $itemnumber = undef;
163
        $template->param( item_doesnt_exist => 1 );
163
        $template->param( biblio => $biblio, item_doesnt_exist => 1 );
164
        output_and_exit( $input, $cookie, $template, 'unknown_item' );
164
        output_and_exit( $input, $cookie, $template, 'unknown_item' );
165
    }
165
    }
166
}
166
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (-9 / +1 lines)
Lines 27-39 Link Here
27
[% Asset.js("js/cataloging_additem.js") | $raw %]
27
[% Asset.js("js/cataloging_additem.js") | $raw %]
28
    <script>
28
    <script>
29
        var has_item_groups = "[% item_groups.size | html %]";
29
        var has_item_groups = "[% item_groups.size | html %]";
30
        $(document).ready(function() {
31
            [% IF item_doesnt_exist %]
32
                $("#itemst_wrapper").hide();
33
                $("#menu").hide();
34
                $("#cataloguing_additem_newitem").hide();
35
            [% END %]
36
        });
37
    </script>
30
    </script>
38
</head>
31
</head>
39
32
Lines 68-74 Link Here
68
            <main>
61
            <main>
69
                [% IF item_doesnt_exist %]
62
                [% IF item_doesnt_exist %]
70
                    <div class="dialog alert">
63
                    <div class="dialog alert">
71
                        <a href="/cgi/bin/koha/catloguing/additem.pl?biblionumber=[% biblio.biblionumber | uri %]">Add a new item</a> or <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber | uri %]#holdings">go to the records holdings</a>.
64
                        <a href="/cgi-bin/koha/cataloguing/additem.pl?biblionumber=[% biblio.biblionumber | uri %]">Add a new item</a> or <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblio.biblionumber | uri %]#holdings">go to the records holdings</a>.
72
                    </div>
65
                    </div>
73
                [% END %]
66
                [% END %]
74
                [% INCLUDE 'blocking_errors.inc' %]
67
                [% INCLUDE 'blocking_errors.inc' %]
75
- 

Return to bug 32418