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

(-)a/catalogue/moredetail.pl (-4 / +5 lines)
Lines 81-89 my $title = $query->param('title'); Link Here
81
my $bi    = $query->param('bi');
81
my $bi    = $query->param('bi');
82
$bi         = $biblionumber unless $bi;
82
$bi         = $biblionumber unless $bi;
83
$itemnumber = $query->param('itemnumber');
83
$itemnumber = $query->param('itemnumber');
84
my $data         = &GetBiblioData($biblionumber);
84
my $data           = &GetBiblioData($biblionumber);
85
my $dewey        = $data->{'dewey'};
85
my $dewey          = $data->{'dewey'};
86
my $showallitems = $query->param('showallitems');
86
my $showallitems   = $query->param('showallitems');
87
my $withdraw_error = $query->param('nowithdraw');
87
88
88
#coping with subscriptions
89
#coping with subscriptions
89
my $subscriptionsnumber = CountSubscriptionFromBiblionumber($biblionumber);
90
my $subscriptionsnumber = CountSubscriptionFromBiblionumber($biblionumber);
Lines 325-330 $template->param( Link Here
325
);
326
);
326
327
327
$template->param(
328
$template->param(
329
    withdraw_error      => $withdraw_error,
328
    ITEM_DATA           => \@item_data,
330
    ITEM_DATA           => \@item_data,
329
    moredetailview      => 1,
331
    moredetailview      => 1,
330
    loggedinuser        => $loggedinuser,
332
    loggedinuser        => $loggedinuser,
Lines 341-344 my $holds = $biblio->holds; Link Here
341
$template->param( holdcount => $holds->count );
343
$template->param( holdcount => $holds->count );
342
344
343
output_html_with_http_headers $query, $cookie, $template->output;
345
output_html_with_http_headers $query, $cookie, $template->output;
344
(-)a/catalogue/updateitem.pl (-3 / +7 lines)
Lines 90-98 if ( $op eq "cud-set_non_public_note" ) { Link Here
90
    print $cgi->redirect("moredetail.pl?biblionumber=$biblionumber&itemnumber=$itemnumber#item$itemnumber");
90
    print $cgi->redirect("moredetail.pl?biblionumber=$biblionumber&itemnumber=$itemnumber#item$itemnumber");
91
    exit;
91
    exit;
92
}
92
}
93
93
eval { $item->store; };
94
$item->store;
94
if ($@) {
95
95
    my $error_message = $@->message;
96
    print $cgi->redirect(
97
        "moredetail.pl?biblionumber=$biblionumber&itemnumber=$itemnumber&nowithdraw=$error_message#item$itemnumber");
98
    exit;
99
}
96
LostItem( $itemnumber, 'moredetail' ) if $op eq "cud-set_lost";
100
LostItem( $itemnumber, 'moredetail' ) if $op eq "cud-set_lost";
97
101
98
print $cgi->redirect(
102
print $cgi->redirect(
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt (-1 / +10 lines)
Lines 152-157 Link Here
152
                        [% SET not_for_loan = 1 %]
152
                        [% SET not_for_loan = 1 %]
153
                        [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
153
                        [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
154
                    [% END %]
154
                    [% END %]
155
                    [% IF withdraw_error %]
156
                        <div class="alert alert-info">
157
                            [% IF withdraw_error == 'intransit_cannot_withdraw' %]
158
                                Cannot withdraw item in transit.
159
                            [% END %]
160
                            [% IF withdraw_error == 'onloan_cannot_withdraw' %]
161
                                Cannot withdraw checked out item.
162
                            [% END %]
163
                        </div>
164
                    [% END %]
155
                    <div class="listgroup">
165
                    <div class="listgroup">
156
                        <h4>
166
                        <h4>
157
                            Item information
167
                            Item information
158
- 

Return to bug 23010