Bug 19889: Add feedback when exclusion is updated on moredetail.pl
Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
bcf9b259c5
commit
cb9c48a6f6
|
|
@ -50,6 +50,10 @@ my ($template, $loggedinuser, $cookie) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
|
||||
$template->param(
|
||||
updated_exclude_from_local_holds_priority => $query->param('updated_exclude_from_local_holds_priority')
|
||||
);
|
||||
|
||||
if($query->cookie("holdfor")){
|
||||
my $holdfor_patron = Koha::Patrons->find( $query->cookie("holdfor") );
|
||||
$template->param(
|
||||
|
|
|
|||
|
|
@ -56,6 +56,8 @@ for ($damaged,$itemlost,$withdrawn) {
|
|||
}
|
||||
}
|
||||
|
||||
my $alerts = q{};
|
||||
|
||||
# modify MARC item if input differs from items table.
|
||||
if ( $op eq "set_non_public_note" ) {
|
||||
checkauth($cgi, 0, {editcatalogue => 'edit_items'}, 'intranet');
|
||||
|
|
@ -74,6 +76,7 @@ elsif ( $op eq "set_public_note" ) { # i.e., itemnotes parameter passed from for
|
|||
$item->withdrawn($withdrawn);
|
||||
} elsif ( $op eq "set_exclude_priority" && $exclude_from_local_holds_priority ne $item_data_hashref->{'exclude_from_local_holds_priority'}) {
|
||||
$item->exclude_from_local_holds_priority($exclude_from_local_holds_priority);
|
||||
$alerts = "updated_exclude_from_local_holds_priority=$exclude_from_local_holds_priority&";
|
||||
} elsif ( $op eq "set_damaged" && $damaged ne $item_data_hashref->{'damaged'}) {
|
||||
$item->damaged($damaged);
|
||||
} else {
|
||||
|
|
@ -86,4 +89,4 @@ $item->store;
|
|||
|
||||
LostItem($itemnumber, 'moredetail') if $op eq "set_lost";
|
||||
|
||||
print $cgi->redirect("moredetail.pl?biblionumber=$biblionumber&itemnumber=$itemnumber#item$itemnumber");
|
||||
print $cgi->redirect("moredetail.pl?" . $alerts . "biblionumber=$biblionumber&itemnumber=$itemnumber#item$itemnumber");
|
||||
|
|
|
|||
|
|
@ -55,6 +55,13 @@
|
|||
<div class="dialog message">You are only viewing one item. <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% biblionumber | uri %]&bi=[% biblioitemnumber | uri %]#item[% itemnumber | uri %]">View All</a></div>
|
||||
[% END %]
|
||||
|
||||
[% IF updated_exclude_from_local_holds_priority.defined %]
|
||||
<div class="dialog message">
|
||||
<i>Exclude from local holds priority</i> updated to
|
||||
[% IF updated_exclude_from_local_holds_priority %]<i>Yes</i>[% ELSE %]<i>No</i>[% END %]
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
[% FOREACH ITEM_DAT IN ITEM_DATA %]
|
||||
<div class="listgroup">
|
||||
<h3 id="item[% ITEM_DAT.itemnumber | html %]">Barcode [% ITEM_DAT.barcode | html %] [% IF ( ITEM_DAT.notforloantext ) %][% ITEM_DAT.notforloantext | html %] [% END %]</h3>
|
||||
|
|
|
|||
Loading…
Reference in New Issue