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

(-)a/catalogue/moredetail.pl (+1 lines)
Lines 139-144 foreach my $item (@items){ Link Here
139
    $item->{object} = Koha::Items->find( $item->{itemnumber} );
139
    $item->{object} = Koha::Items->find( $item->{itemnumber} );
140
    $item->{itemlostloop}= GetAuthorisedValues(GetAuthValCode('items.itemlost',$fw),$item->{itemlost}) if GetAuthValCode('items.itemlost',$fw);
140
    $item->{itemlostloop}= GetAuthorisedValues(GetAuthValCode('items.itemlost',$fw),$item->{itemlost}) if GetAuthValCode('items.itemlost',$fw);
141
    $item->{itemdamagedloop}= GetAuthorisedValues(GetAuthValCode('items.damaged',$fw),$item->{damaged}) if GetAuthValCode('items.damaged',$fw);
141
    $item->{itemdamagedloop}= GetAuthorisedValues(GetAuthValCode('items.damaged',$fw),$item->{damaged}) if GetAuthValCode('items.damaged',$fw);
142
    $item->{itemwithdrawnloop}= GetAuthorisedValues(GetAuthValCode('items.withdrawn',$fw),$item->{withdrawn}) if GetAuthValCode('items.withdrawn',$fw);
142
    $item->{'collection'}              = $ccodes->{ $item->{ccode} } if ($ccodes);
143
    $item->{'collection'}              = $ccodes->{ $item->{ccode} } if ($ccodes);
143
    $item->{'itype'}                   = $itemtypes->{ $item->{'itype'} }->{'translated_description'};
144
    $item->{'itype'}                   = $itemtypes->{ $item->{'itype'} }->{'translated_description'};
144
    $item->{'replacementprice'}        = sprintf( "%.2f", $item->{'replacementprice'} );
145
    $item->{'replacementprice'}        = sprintf( "%.2f", $item->{'replacementprice'} );
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt (-18 / +33 lines)
Lines 162-186 Link Here
162
                [% END %]
162
                [% END %]
163
            </li>
163
            </li>
164
            [% END %]
164
            [% END %]
165
            <li><span class="label">Withdrawn?:</span>[% IF ( ITEM_DAT.withdrawn ) %]Yes[% ELSE %]No[% END %]
166
                [% IF ( CAN_user_circulate ) %]
167
                    <form action="updateitem.pl" method="post">
168
                    <input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber %]" />
169
                    <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber %]" />
170
                    <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber %]" />
171
                    <input type="hidden" name="itemlost" value="[% ITEM_DAT.itemlost %]" />
172
                    <input type="hidden" name="damaged" value="[% ITEM_DAT.damaged %]" />
173
165
174
            [% IF ( ITEM_DAT.withdrawn ) %]
166
            [% IF ( ITEM_DAT.itemwithdrawnloop ) %]
175
                    <input type="hidden" name="withdrawn" value="0" />[% ELSE %]<input type="hidden" name="withdrawn" value="1" />
167
                <li><span class="label">Withdrawn status:</span>
176
            [% END %]
168
                    [% IF ( CAN_user_circulate ) %]
177
            [% IF ( ITEM_DAT.withdrawn ) %]
169
                        <form action="updateitem.pl" method="post">
178
                    <input type="submit" name="submit" class="submit" value="Restore" />[% ELSE %]<input type="submit" name="submit" class="submit" value="Withdraw" />
170
                            <input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber %]" />
179
            [% END %]
171
                            <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber %]" />
180
                    </form>
172
                            <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber %]" />
173
                            <select name="withdrawn" >
174
                                <option value="">Choose</option>
175
                                [% FOREACH itemwithdrawn IN ITEM_DAT.itemwithdrawnloop %]
176
                                    [% IF ( itemwithdrawn.selected ) %]
177
                                        <option value="[% itemwithdrawn.authorised_value %]" selected="selected">[% itemwithdrawn.lib %]</option>
178
                                    [% ELSE %]
179
                                        <option value="[% itemwithdrawn.authorised_value %]">[% itemwithdrawn.lib %]</option>
180
                                    [% END %]
181
                                [% END %]
182
                            </select>
183
                            <input type="hidden" name="itemlost" value="[% ITEM_DAT.itemlost %]" />
184
                            <input type="hidden" name="damaged" value="[% ITEM_DAT.damaged %]" />
185
                            <input type="submit" name="submit" class="submit" value="Set status" /></form>
186
                    [% ELSE %]
187
                        [% FOREACH itemwithdrawn IN ITEM_DAT.itemwithdrawnloop %]
188
                            [% IF ( itemwithdrawn.selected ) %]
189
                                [% itemwithdrawn.lib %]
190
                            [% END %]
191
                        [% END %]
192
                        &nbsp;
193
                    [% END %]
194
                </li>
195
                [% IF ITEM_DAT.withdrawn != "" && ITEM_DAT.withdrawn_on %]
196
                    <li><span class="label">Withdrawn on:</span>[% ITEM_DAT.withdrawn_on | $KohaDates %] &nbsp;</li>
181
                [% END %]
197
                [% END %]
182
            </li>
198
            [% END %]
183
            [% IF ITEM_DAT.withdrawn_on %]<li><span class="label">Withdrawn on:</span>[% ITEM_DAT.withdrawn_on | $KohaDates %] &nbsp;</li>[% END %]
199
184
            </ol></div>
200
            </ol></div>
185
            <div class="listgroup"><h4>History</h4>
201
            <div class="listgroup"><h4>History</h4>
186
            <ol class="bibliodetails">
202
            <ol class="bibliodetails">
187
- 

Return to bug 11280