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

(-)a/api/v1/swagger/paths/biblios.yaml (+1 lines)
Lines 479-484 Link Here
479
            - cover_image_ids
479
            - cover_image_ids
480
            - item_group_item.item_group.description
480
            - item_group_item.item_group.description
481
            - serial_item.serial
481
            - serial_item.serial
482
            - return_claims
482
        collectionFormat: csv
483
        collectionFormat: csv
483
      - $ref: "../swagger.yaml#/parameters/match"
484
      - $ref: "../swagger.yaml#/parameters/match"
484
      - $ref: "../swagger.yaml#/parameters/order_by"
485
      - $ref: "../swagger.yaml#/parameters/order_by"
(-)a/catalogue/moredetail.pl (+3 lines)
Lines 229-234 foreach my $item (@items){ Link Here
229
                $item_info->{paidfor} = { patron => $patron, created_on => $payment_offset->created_on };
229
                $item_info->{paidfor} = { patron => $patron, created_on => $payment_offset->created_on };
230
            }
230
            }
231
        }
231
        }
232
233
        my $return_claim = $item->return_claim;
234
        $item_info->{has_return_claim} = 1 if $return_claim;
232
    }
235
    }
233
236
234
    if (C4::Context->preference("IndependentBranches")) {
237
    if (C4::Context->preference("IndependentBranches")) {
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (+6 lines)
Lines 1814-1819 i { Link Here
1814
    font-style: italic;
1814
    font-style: italic;
1815
}
1815
}
1816
1816
1817
// style for return claim detail in catalogsearch
1818
.claimed_returned {
1819
    display: block;
1820
    font-style: italic;
1821
}
1822
1817
#closewindow {
1823
#closewindow {
1818
    margin-top: 2em;
1824
    margin-top: 2em;
1819
    text-align: center;
1825
    text-align: center;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc (+7 lines)
Lines 226-231 Link Here
226
    [% IF Koha.Preference('UseCourseReserves') %]
226
    [% IF Koha.Preference('UseCourseReserves') %]
227
        embed.push('course_item.course_reserves.course');
227
        embed.push('course_item.course_reserves.course');
228
    [% END %]
228
    [% END %]
229
    [% IF Koha.Preference('ClaimReturnedLostValue') %]
230
        embed.push('return_claims');
231
    [% END %]
229
232
230
    [% IF Koha.Preference('EasyAnalyticalRecords') %]
233
    [% IF Koha.Preference('EasyAnalyticalRecords') %]
231
        // For host records
234
        // For host records
Lines 472-478 Link Here
472
475
473
                    if ( row.lost_status ) {
476
                    if ( row.lost_status ) {
474
                        let lost_lib = av_lost.get(row.lost_status.toString()) || _("Unavailable (lost or missing");
477
                        let lost_lib = av_lost.get(row.lost_status.toString()) || _("Unavailable (lost or missing");
478
                        const hasReturnClaims = row.return_claims.filter(rc => !rc.resolution).length > 0 ? true : false
475
                        nodes += '<span class="lost">%s</span>'.format(escape_str(lost_lib));
479
                        nodes += '<span class="lost">%s</span>'.format(escape_str(lost_lib));
480
                        if(hasReturnClaims) {
481
                            nodes += '<span class="claimed_returned">(Claimed returned)</span>';
482
                        }
476
                    }
483
                    }
477
484
478
                    if ( row.withdrawn ) {
485
                    if ( row.withdrawn ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt (-20 / +13 lines)
Lines 211-241 Link Here
211
                                                        <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" />
211
                                                        <input type="hidden" name="biblioitemnumber" value="[% ITEM_DAT.biblioitemnumber | html %]" />
212
                                                        <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
212
                                                        <input type="hidden" name="itemnumber" value="[% ITEM_DAT.itemnumber | html %]" />
213
213
214
                                                        [% IF ClaimReturnedLostValue && ITEM_DAT.itemlost == ClaimReturnedLostValue %]
214
                                                        <select name="itemlost">
215
                                                            <select name="itemlost" disabled="disabled">
215
                                                        <option value="">Choose</option>
216
                                                        [% ELSE %]
216
                                                        [% FOREACH itemlostloo IN itemlostloop %]
217
                                                            <select name="itemlost">
217
                                                            [% IF itemlostloo.authorised_value == ITEM_DAT.itemlost %]
218
                                                        [% END %]
218
                                                                <option value="[% itemlostloo.authorised_value | html %]" selected="selected">[% itemlostloo.lib | html %]</option>
219
                                                            <option value="">Choose</option>
219
                                                            [% ELSIF ClaimReturnedLostValue && itemlostloo.authorised_value == ClaimReturnedLostValue #Filter claims returned status from pulldown %]
220
                                                            [% FOREACH itemlostloo IN itemlostloop %]
220
                                                                <option value="[% itemlostloo.authorised_value | html %]" disabled="disabled" title="Return claims must be processed from the patron details page">[% itemlostloo.lib | html %]</option>
221
                                                                [% IF itemlostloo.authorised_value == ITEM_DAT.itemlost %]
221
                                                            [% ELSE %]
222
                                                                    <option value="[% itemlostloo.authorised_value | html %]" selected="selected">[% itemlostloo.lib | html %]</option>
222
                                                                <option value="[% itemlostloo.authorised_value | html %]">[% itemlostloo.lib | html %]</option>
223
                                                                [% ELSIF ClaimReturnedLostValue && itemlostloo.authorised_value == ClaimReturnedLostValue #Filter claims returned status from pulldown %]
224
                                                                    <option value="[% itemlostloo.authorised_value | html %]" disabled="disabled" title="Return claims must be processed from the patron details page">[% itemlostloo.lib | html %]</option>
225
                                                                [% ELSE %]
226
                                                                    <option value="[% itemlostloo.authorised_value | html %]">[% itemlostloo.lib | html %]</option>
227
                                                                [% END %]
228
                                                            [% END %]
223
                                                            [% END %]
224
                                                        [% END %]
229
                                                        </select>
225
                                                        </select>
230
                                                        <input type="hidden" name="withdrawn" value="[% ITEM_DAT.withdrawn | html %]" />
226
                                                        <input type="hidden" name="withdrawn" value="[% ITEM_DAT.withdrawn | html %]" />
231
                                                        <input type="hidden" name="damaged" value="[% ITEM_DAT.damaged | html %]" />
227
                                                        <input type="hidden" name="damaged" value="[% ITEM_DAT.damaged | html %]" />
232
228
233
                                                        [% IF ClaimReturnedLostValue && ITEM_DAT.itemlost == ClaimReturnedLostValue %]
229
                                                        <input type="hidden" name="op" value="cud-set_lost" />
234
                                                            <input type="submit" name="submit" class="submit" value="Set status" disabled="disabled"/>
230
                                                        <input type="submit" name="submit" class="btn btn-primary btn-xs" value="Set status" />
231
                                                        [% IF ClaimReturnedLostValue && ITEM_DAT.has_return_claim %]
235
                                                            <p class="help-block">Item has been claimed as returned.</p>
232
                                                            <p class="help-block">Item has been claimed as returned.</p>
236
                                                        [% ELSE %]
237
                                                            <input type="hidden" name="op" value="cud-set_lost" />
238
                                                            <input type="submit" name="submit" class="btn btn-primary btn-xs" value="Set status" />
239
                                                        [% END %]
233
                                                        [% END %]
240
                                                    </form>
234
                                                    </form>
241
                                                [% ELSE %]
235
                                                [% ELSE %]
242
- 

Return to bug 27919