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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt (-4 / +10 lines)
Lines 177-188 $(document).ready(function(){ Link Here
177
                              <legend>[% status.fieldname %]</legend>
177
                              <legend>[% status.fieldname %]</legend>
178
                              <ul id="statuses-[% fieldname %]" style="display: inline;">
178
                              <ul id="statuses-[% fieldname %]" style="display: inline;">
179
                              [% FOREACH value IN status.values %]
179
                              [% FOREACH value IN status.values %]
180
                                  [% IF (value.lib) %]<li>
180
                                  [% IF (value.lib) %]
181
                                    <li>
181
                                    <label for="[% value.id %]">
182
                                    <label for="[% value.id %]">
182
                                      [% value.lib %]
183
                                        [% IF value.authorised_value==0 %]
184
                                            For loan
185
                                        [% ELSE %]
186
                                            [% value.lib %]
187
                                        [% END %]
183
                                    </label>
188
                                    </label>
184
                                    <input type="checkbox" name="status-[% status.fieldname %]-[% value.authorised_value %]" id="[% value.authorised_value %]" />
189
                                    <input type="checkbox" name="status-[% status.fieldname %]-[% value.authorised_value %]" id="[% value.authorised_value %]" />
185
                                  </li>[% END %]
190
                                    </li>
191
                                  [% END %]
186
                              [% END %]
192
                              [% END %]
187
                              </ul>
193
                              </ul>
188
                          </fieldset>
194
                          </fieldset>
Lines 293-299 $(document).ready(function(){ Link Here
293
            [% ELSIF result.problem == 'missingitem' %]
299
            [% ELSIF result.problem == 'missingitem' %]
294
                <p>Item missing</p>
300
                <p>Item missing</p>
295
            [% ELSIF result.problem == 'changestatus' %]
301
            [% ELSIF result.problem == 'changestatus' %]
296
                <p>Change item status</p>
302
                <p>Unknown not-for-loan status</p>
297
            [% ELSIF result.problem == 'not_scanned' %]
303
            [% ELSIF result.problem == 'not_scanned' %]
298
                <p>Item should have been scanned</p>
304
                <p>Item should have been scanned</p>
299
            [% END %]
305
            [% END %]
(-)a/tools/inventory.pl (-3 / +5 lines)
Lines 94-104 for my $statfield (qw/items.notforloan items.itemlost items.withdrawn items.dama Link Here
94
    $hash->{authcode} = $mss->count ? $mss->next->authorised_value : undef;
94
    $hash->{authcode} = $mss->count ? $mss->next->authorised_value : undef;
95
    if ($hash->{authcode}){
95
    if ($hash->{authcode}){
96
        my $arr = GetAuthorisedValues($hash->{authcode});
96
        my $arr = GetAuthorisedValues($hash->{authcode});
97
        $hash->{values} = $arr;
98
        push @$statuses, $hash;
99
        if ( $statfield eq 'items.notforloan') {
97
        if ( $statfield eq 'items.notforloan') {
98
            # Add notforloan == 0 to the list of possible notforloan statuses
99
            # The lib value is replaced in the template
100
            push @$arr, { authorised_value => 0, id => 'stat0' , lib => 'ignore' };
100
            @notforloans = map { $_->{'authorised_value'} } @$arr;
101
            @notforloans = map { $_->{'authorised_value'} } @$arr;
101
        }
102
        }
103
        $hash->{values} = $arr;
104
        push @$statuses, $hash;
102
    }
105
    }
103
}
106
}
104
107
105
- 

Return to bug 12913