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

(-)a/cataloguing/additem.pl (-2 / +1 lines)
Lines 171-181 sub generate_subfield_form { Link Here
171
            my %authorised_lib;
171
            my %authorised_lib;
172
            # builds list, depending on authorised value...
172
            # builds list, depending on authorised value...
173
            if ( $subfieldlib->{authorised_value} eq "LOST" ) {
173
            if ( $subfieldlib->{authorised_value} eq "LOST" ) {
174
                  my $ClaimReturnedLostValue = C4::Context->preference('ClaimReturnedLostValue');
174
                  $subfield_data{IS_LOST_AV} = 1;
175
                  push @authorised_values, qq{};
175
                  push @authorised_values, qq{};
176
                  my $av = GetAuthorisedValues( $subfieldlib->{authorised_value} );
176
                  my $av = GetAuthorisedValues( $subfieldlib->{authorised_value} );
177
                  for my $r ( @$av ) {
177
                  for my $r ( @$av ) {
178
                      next if $ClaimReturnedLostValue && $r->{authorised_value} eq $ClaimReturnedLostValue;
179
                      push @authorised_values, $r->{authorised_value};
178
                      push @authorised_values, $r->{authorised_value};
180
                      $authorised_lib{$r->{authorised_value}} = $r->{lib};
179
                      $authorised_lib{$r->{authorised_value}} = $r->{lib};
181
                  }
180
                  }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt (-5 / +16 lines)
Lines 79-85 Link Here
79
                [% IF ( ITEM_DAT.withdrawn ) %]Withdrawn[% END %]
79
                [% IF ( ITEM_DAT.withdrawn ) %]Withdrawn[% END %]
80
            )[% END %]</h4>
80
            )[% END %]</h4>
81
81
82
            <div class="rows">
82
            <span class="rows">
83
            <ol class="bibliodetails">
83
            <ol class="bibliodetails">
84
            <li><span class="label">Current location:</span> [% Branches.GetName( ITEM_DAT.holdingbranch ) | html %]&nbsp;</li>
84
            <li><span class="label">Current location:</span> [% Branches.GetName( ITEM_DAT.holdingbranch ) | html %]&nbsp;</li>
85
            <li><span class="label">Checkout status:</span>
85
            <li><span class="label">Checkout status:</span>
Lines 104-114 Link Here
104
                            <input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
104
                            <input type="hidden" name="biblionumber" value="[% ITEM_DAT.biblionumber | html %]" />
105
                            <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" />
105
                            <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" />
106
                            <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
106
                            <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
107
                            <select name="itemlost" >
107
                            <select name="itemlost">
108
                                <option value="">Choose</option>
108
                                <option value="">Choose</option>
109
                                [% FOREACH itemlostloo IN itemlostloop %]
109
                                [% FOREACH itemlostloo IN itemlostloop %]
110
                                    [% NEXT IF ClaimReturnedLostValue && !ITEM_DAT.itemlost && itemlostloo.authorised_value == ClaimReturnedLostValue #Filter claims returned status from pulldown %]
110
                                    [% IF ClaimReturnedLostValue && !ITEM_DAT.itemlost && itemlostloo.authorised_value == ClaimReturnedLostValue #Filter claims returned status from pulldown %]
111
                                    [% IF itemlostloo.authorised_value == ITEM_DAT.itemlost %]
111
                                        [% SET add_claims_returned_tip = itemlostloo.lib %]
112
                                        <option value="[% itemlostloo.authorised_value | html %]" disabled="disabled">[% itemlostloo.lib | html %]</option>
113
                                    [% ELSIF itemlostloo.authorised_value == ITEM_DAT.itemlost %]
112
                                        <option value="[% itemlostloo.authorised_value | html %]" selected="selected">[% itemlostloo.lib | html %]</option>
114
                                        <option value="[% itemlostloo.authorised_value | html %]" selected="selected">[% itemlostloo.lib | html %]</option>
113
                                    [% ELSE %]
115
                                    [% ELSE %]
114
                                        <option value="[% itemlostloo.authorised_value | html %]">[% itemlostloo.lib | html %]</option>
116
                                        <option value="[% itemlostloo.authorised_value | html %]">[% itemlostloo.lib | html %]</option>
Lines 118-129 Link Here
118
                            <input type="hidden" name="withdrawn" value="[% ITEM_DAT.withdrawn | html %]" />
120
                            <input type="hidden" name="withdrawn" value="[% ITEM_DAT.withdrawn | html %]" />
119
                            <input type="hidden" name="damaged" value="[% ITEM_DAT.damaged | html %]" />
121
                            <input type="hidden" name="damaged" value="[% ITEM_DAT.damaged | html %]" />
120
122
123
                            [% IF add_claims_returned_tip %]
124
                                <i class="fa fa-question-circle" data-toggle="tooltip"
125
                                   title="The value '[% add_claims_returned_tip | html %]' cannot be selected. Return claims must be processed from the patron details page."
126
                                   data-placement="right"></i>
127
                            [% END %]
128
121
                            [% IF ClaimReturnedLostValue && ITEM_DAT.itemlost == ClaimReturnedLostValue %]
129
                            [% IF ClaimReturnedLostValue && ITEM_DAT.itemlost == ClaimReturnedLostValue %]
122
                                <input type="submit" name="submit" class="submit" value="Set status" disabled="disabled"/>
130
                                <input type="submit" name="submit" class="submit" value="Set status" disabled="disabled"/>
123
                                <p class="help-block">Item has been claimed as returned.</p>
131
                                <p class="help-block">Item has been claimed as returned.</p>
124
                            [% ELSE %]
132
                            [% ELSE %]
125
                                <input type="hidden" name="op" value="set_lost" />
133
                                <input type="hidden" name="op" value="set_lost" />
126
                                <input type="submit" name="submit" class="submit" value="Set status" /></form>
134
                                <input type="submit" name="submit" class="submit" value="Set status" />
127
                            [% END %]
135
                            [% END %]
128
                        </form>
136
                        </form>
129
                    [% ELSE %]
137
                    [% ELSE %]
Lines 304-309 Link Here
304
    <script>
312
    <script>
305
        var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
313
        var browser = KOHA.browser('[% searchid | html %]', parseInt('[% biblionumber | html %]', 10));
306
        browser.show();
314
        browser.show();
315
        $( document ).ready(function() {
316
            $('[data-toggle="tooltip"]').tooltip();
317
        });
307
    </script>
318
    </script>
308
[% END %]
319
[% END %]
309
[% INCLUDE 'intranet-bottom.inc' %]
320
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt (-2 / +13 lines)
Lines 166-175 Link Here
166
                        [% IF aval == mv.default %]
166
                        [% IF aval == mv.default %]
167
                        <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
167
                        <option value="[%- aval | html -%]" selected="selected">[%- mv.labels.$aval | html -%]</option>
168
                        [% ELSE %]
168
                        [% ELSE %]
169
                        <option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
169
                            [% IF ite.IS_LOST_AV && aval == Koha.Preference("ClaimReturnedLostValue") %]
170
                                [% SET add_claims_returned_tip = mv.labels.$aval %]
171
                                <option disabled="disabled" value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
172
                            [%  ELSE %]
173
                                <option value="[%- aval | html -%]">[%- mv.labels.$aval | html -%]</option>
174
                            [% END %]
170
                        [% END %]
175
                        [% END %]
171
                    [% END %]
176
                    [% END %]
172
                    </select>
177
                    </select>
178
179
                    [% IF ite.IS_LOST_AV && add_claims_returned_tip %]
180
                        &nbsp;
181
                        <i class="fa fa-question-circle" data-toggle="tooltip"
182
                           title="The value '[% add_claims_returned_tip | html %]' cannot be selected. Return claims must be processed from the patron details page."
183
                           data-placement="right"></i>
184
                    [% END %]
173
                [% ELSIF ( mv.type == 'text_auth' ) %]
185
                [% ELSIF ( mv.type == 'text_auth' ) %]
174
                    [% IF mv.readonly %]
186
                    [% IF mv.readonly %]
175
                        <input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" />
187
                        <input type="text" id="[%- mv.id | html -%]" name="field_value" class="input_marceditor" size="50" maxlength="[%- mv.maxlength | html -%]" value="[%- mv.value | html -%]" readonly="readonly" />
176
- 

Return to bug 24279