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 118-123 Link Here
118
                    [% SET not_for_loan = 1 %]
118
                    [% SET not_for_loan = 1 %]
119
                    [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
119
                    [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
120
                [% END %]
120
                [% END %]
121
                [% IF withdraw_error %]
122
                    <div class="alert alert-info">
123
                        [% IF withdraw_error == 'intransit_cannot_withdraw' %]
124
                            Cannot withdraw item in transit.
125
                        [% END %]
126
                        [% IF withdraw_error == 'onloan_cannot_withdraw' %]
127
                            Cannot withdraw checked out item.
128
                        [% END %]
129
                    </div>
130
                [% END %]
121
                <div class="listgroup">
131
                <div class="listgroup">
122
                    <h3 id="item[% ITEM_DAT.itemnumber | html %]"> Barcode [% ITEM_DAT.barcode | html %] [% IF not_for_loan %][% not_for_loan_description | html %][% END %] </h3>
132
                    <h3 id="item[% ITEM_DAT.itemnumber | html %]"> Barcode [% ITEM_DAT.barcode | html %] [% IF not_for_loan %][% not_for_loan_description | html %][% END %] </h3>
123
133
124
- 

Return to bug 23010