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

(-)a/Koha/Item/Transfer.pm (+15 lines)
Lines 176-181 sub cancel { Link Here
176
    return $self;
176
    return $self;
177
}
177
}
178
178
179
180
=head3 strings_map
181
182
Returns a map of column name to string representations including the string.
183
184
=cut
185
186
sub strings_map {
187
    my ($self) = @_;
188
    return {
189
        from_library => { str => $self->from_library->branchname, type => 'library' },
190
        to_library   => { str => $self->to_library->branchname,   type => 'library' },
191
    };
192
}
193
179
=head3 type
194
=head3 type
180
195
181
=cut
196
=cut
(-)a/api/v1/swagger/paths/biblios.yaml (+1 lines)
Lines 426-431 Link Here
426
            - checkout
426
            - checkout
427
            - checkout.patron
427
            - checkout.patron
428
            - transfer
428
            - transfer
429
            - transfer+strings
429
            - first_hold
430
            - first_hold
430
            - first_hold.patron
431
            - first_hold.patron
431
            - recall
432
            - recall
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-4 / +3 lines)
Lines 2173-2179 Link Here
2173
        [%# In case or SeparateHoldings we may need to display the number of biblios in each tab %]
2173
        [%# In case or SeparateHoldings we may need to display the number of biblios in each tab %]
2174
        [%# Do we need separate/new endpoints or do we hack the somewhere client-side? %]
2174
        [%# Do we need separate/new endpoints or do we hack the somewhere client-side? %]
2175
        let item_table_url = "/api/v1/biblios/[% biblio.biblionumber | uri %]/items?";
2175
        let item_table_url = "/api/v1/biblios/[% biblio.biblionumber | uri %]/items?";
2176
        let embed = ["+strings,checkout,checkout.patron,transfer,first_hold,first_hold.patron,item_type"];
2176
        let embed = ["+strings,checkout,checkout.patron,transfer,transfer+strings,first_hold,first_hold.patron,item_type"];
2177
        [% IF Koha.Preference('LocalCoverImages') %]
2177
        [% IF Koha.Preference('LocalCoverImages') %]
2178
            embed.push('cover_image_ids');
2178
            embed.push('cover_image_ids');
2179
        [% END %]
2179
        [% END %]
Lines 2397-2405 Link Here
2397
                            nodes += "</span>"
2397
                            nodes += "</span>"
2398
                        } else if ( row.transfer ) {
2398
                        } else if ( row.transfer ) {
2399
                            if ( row.transfer.datesent ) {
2399
                            if ( row.transfer.datesent ) {
2400
                                nodes += '<span class="intransit">%s</span>'.format(_("In transit from %s to %s since %s").format(escape_str(row.transfer.frombranch), escape_str(row.transfer.tobranch), $date(row.transfer.datesent))); [%# FIXME display library names, not codes, do we use _strings here? %]
2400
                                nodes += '<span class="intransit">%s</span>'.format(_("In transit from %s to %s since %s").format(escape_str(row.transfer._strings.from_library.str), escape_str(row.transfer._strings.to_library.str), $date(row.transfer.datesent)));
2401
                            } else {
2401
                            } else {
2402
                                nodes += '<span class="transitrequested">%s</span>'.format(_("Transit pending from %s to %s since %s").format(escape_str(row.transfer.frombranch), escape_str(row.transfer.tobranch), $date(row.transfer.daterequested))); [%# FIXME See above %]
2402
                                nodes += '<span class="transitrequested">%s</span>'.format(_("Transit pending from %s to %s since %s").format(escape_str(row.transfer._strings.from_library_.str), escape_str(row.transfer._strings.to_library.str), $date(row.transfer.daterequested)));
2403
                            }
2403
                            }
2404
                        }
2404
                        }
2405
2405
2406
- 

Return to bug 33568