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

(-)a/catalogue/moredetail.pl (+4 lines)
Lines 50-55 my ($template, $loggedinuser, $cookie) = get_template_and_user( Link Here
50
    }
50
    }
51
);
51
);
52
52
53
$template->param(
54
    updated_exclude_from_local_holds_priority => $query->param('updated_exclude_from_local_holds_priority')
55
);
56
53
if($query->cookie("holdfor")){ 
57
if($query->cookie("holdfor")){ 
54
    my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") );
58
    my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") );
55
    $template->param(
59
    $template->param(
(-)a/catalogue/updateitem.pl (-1 / +4 lines)
Lines 56-61 for ($damaged,$itemlost,$withdrawn) { Link Here
56
    }
56
    }
57
}
57
}
58
58
59
my $alerts = q{};
60
59
# modify MARC item if input differs from items table.
61
# modify MARC item if input differs from items table.
60
if ( $op eq "set_non_public_note" ) {
62
if ( $op eq "set_non_public_note" ) {
61
    checkauth($cgi, 0, {editcatalogue => 'edit_items'}, 'intranet');
63
    checkauth($cgi, 0, {editcatalogue => 'edit_items'}, 'intranet');
Lines 74-79 elsif ( $op eq "set_public_note" ) { # i.e., itemnotes parameter passed from for Link Here
74
    $item->withdrawn($withdrawn);
76
    $item->withdrawn($withdrawn);
75
} elsif ( $op eq "set_exclude_priority" && $exclude_from_local_holds_priority ne $item_data_hashref->{'exclude_from_local_holds_priority'}) {
77
} elsif ( $op eq "set_exclude_priority" && $exclude_from_local_holds_priority ne $item_data_hashref->{'exclude_from_local_holds_priority'}) {
76
    $item->exclude_from_local_holds_priority($exclude_from_local_holds_priority);
78
    $item->exclude_from_local_holds_priority($exclude_from_local_holds_priority);
79
    $alerts = "updated_exclude_from_local_holds_priority=$exclude_from_local_holds_priority&";
77
} elsif ( $op eq "set_damaged" && $damaged ne $item_data_hashref->{'damaged'}) {
80
} elsif ( $op eq "set_damaged" && $damaged ne $item_data_hashref->{'damaged'}) {
78
    $item->damaged($damaged);
81
    $item->damaged($damaged);
79
} else {
82
} else {
Lines 86-89 $item->store; Link Here
86
89
87
LostItem($itemnumber, 'moredetail') if $op eq "set_lost";
90
LostItem($itemnumber, 'moredetail') if $op eq "set_lost";
88
91
89
print $cgi->redirect("moredetail.pl?biblionumber=$biblionumber&itemnumber=$itemnumber#item$itemnumber");
92
print $cgi->redirect("moredetail.pl?" . $alerts . "biblionumber=$biblionumber&itemnumber=$itemnumber#item$itemnumber");
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt (-1 / +7 lines)
Lines 53-58 Link Here
53
        <div class="dialog message">You are only viewing one item.  <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblionumber | uri %]&amp;bi=[% biblioitemnumber | uri %]#item[% itemnumber | uri %]">View All</a></div>
53
        <div class="dialog message">You are only viewing one item.  <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblionumber | uri %]&amp;bi=[% biblioitemnumber | uri %]#item[% itemnumber | uri %]">View All</a></div>
54
    [% END %]
54
    [% END %]
55
55
56
    [% IF updated_exclude_from_local_holds_priority.defined %]
57
    <div class="dialog message">
58
        <i>Exclude from local holds priority</i> updated to
59
        [% IF updated_exclude_from_local_holds_priority %]<i>Yes</i>[% ELSE %]<i>No</i>[% END %]
60
    </div>
61
    [% END %]
62
56
    [% FOREACH ITEM_DAT IN ITEM_DATA %]
63
    [% FOREACH ITEM_DAT IN ITEM_DATA %]
57
        <h3 id="item[% ITEM_DAT.itemnumber | html %]">Barcode [% ITEM_DAT.barcode | html %]  [% IF ( ITEM_DAT.notforloantext ) %][% ITEM_DAT.notforloantext | html %] [% END %]</h3>
64
        <h3 id="item[% ITEM_DAT.itemnumber | html %]">Barcode [% ITEM_DAT.barcode | html %]  [% IF ( ITEM_DAT.notforloantext ) %][% ITEM_DAT.notforloantext | html %] [% END %]</h3>
58
        <div class="listgroup"><h4>Item information [% IF ( CAN_user_editcatalogue_edit_catalogue ) %][% UNLESS ( ITEM_DAT.nomod ) %]
65
        <div class="listgroup"><h4>Item information [% IF ( CAN_user_editcatalogue_edit_catalogue ) %][% UNLESS ( ITEM_DAT.nomod ) %]
59
- 

Return to bug 19889