Bug 12913: [QA Follow-up] Reword 'change item status' and add zero status
The zero status should be added in @notforloans. It is a legitimate status for available books. The zero status description can be translated in the template. The 'Change item status' is confusing. We mean that we saw a notforloan status that we do not expect (read: does not exist in the table). Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> (cherry picked from commit664d653417) Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> (cherry picked from commitdbb0b4a4b0) Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
parent
d4ec1462ac
commit
e7ba8570d3
|
|
@ -180,12 +180,18 @@ $(document).ready(function(){
|
|||
<legend>[% status.fieldname %]</legend>
|
||||
<ul id="statuses-[% fieldname %]" style="display: inline;">
|
||||
[% FOREACH value IN status.values %]
|
||||
[% IF (value.lib) %]<li>
|
||||
[% IF (value.lib) %]
|
||||
<li>
|
||||
<label for="[% value.id %]">
|
||||
[% value.lib %]
|
||||
[% IF value.authorised_value==0 %]
|
||||
For loan
|
||||
[% ELSE %]
|
||||
[% value.lib %]
|
||||
[% END %]
|
||||
</label>
|
||||
<input type="checkbox" name="status-[% status.fieldname %]-[% value.authorised_value %]" id="[% value.authorised_value %]" />
|
||||
</li>[% END %]
|
||||
</li>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</ul>
|
||||
</fieldset>
|
||||
|
|
@ -294,7 +300,7 @@ $(document).ready(function(){
|
|||
[% ELSIF result.problem == 'missingitem' %]
|
||||
<p>Item missing</p>
|
||||
[% ELSIF result.problem == 'changestatus' %]
|
||||
<p>Change item status</p>
|
||||
<p>Unknown not-for-loan status</p>
|
||||
[% ELSIF result.problem == 'not_scanned' %]
|
||||
<p>Item should have been scanned</p>
|
||||
[% END %]
|
||||
|
|
|
|||
|
|
@ -101,11 +101,14 @@ for my $statfield (qw/items.notforloan items.itemlost items.withdrawn items.dama
|
|||
$hash->{authcode} = GetAuthValCode($statfield);
|
||||
if ($hash->{authcode}){
|
||||
my $arr = GetAuthorisedValues($hash->{authcode});
|
||||
$hash->{values} = $arr;
|
||||
push @$statuses, $hash;
|
||||
if ( $statfield eq 'items.notforloan') {
|
||||
# Add notforloan == 0 to the list of possible notforloan statuses
|
||||
# The lib value is replaced in the template
|
||||
push @$arr, { authorised_value => 0, id => 'stat0' , lib => 'ignore' };
|
||||
@notforloans = map { $_->{'authorised_value'} } @$arr;
|
||||
}
|
||||
$hash->{values} = $arr;
|
||||
push @$statuses, $hash;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue