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

(-)a/Koha/Recall.pm (+15 lines)
Lines 461-466 sub set_fulfilled { Link Here
461
    return $self;
461
    return $self;
462
}
462
}
463
463
464
=head3 strings_map
465
466
Returns a map of column name to string representations including the string.
467
468
=cut
469
470
sub strings_map {
471
    my ($self) = @_;
472
    return {
473
        pickup_library_id => { str => $self->library->branchname, type => 'library' },
474
    };
475
}
476
477
478
464
=head2 Internal methods
479
=head2 Internal methods
465
480
466
=head3 _type
481
=head3 _type
(-)a/api/v1/swagger/paths/biblios.yaml (+1 lines)
Lines 431-436 Link Here
431
            - first_hold+strings
431
            - first_hold+strings
432
            - first_hold.patron
432
            - first_hold.patron
433
            - recall
433
            - recall
434
            - recall+strings
434
            - recall.patron
435
            - recall.patron
435
            - item_type
436
            - item_type
436
            - in_bundle
437
            - in_bundle
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-3 / +2 lines)
Lines 2184-2190 Link Here
2184
            embed.push('serialitem.serial');
2184
            embed.push('serialitem.serial');
2185
        [% END %]
2185
        [% END %]
2186
        [% IF Koha.Preference('UseRecalls') %]
2186
        [% IF Koha.Preference('UseRecalls') %]
2187
            embed.push('recall', 'recall.patron')
2187
            embed.push('recall', 'recall+strings', 'recall.patron')
2188
        [% END %]
2188
        [% END %]
2189
        embed.push('in_bundle', 'bundle_host');
2189
        embed.push('in_bundle', 'bundle_host');
2190
        [% IF Koha.Preference('UseCourseReserves') %]
2190
        [% IF Koha.Preference('UseCourseReserves') %]
Lines 2441-2447 Link Here
2441
                        [% IF Koha.Preference('UseRecalls') %]
2441
                        [% IF Koha.Preference('UseRecalls') %]
2442
                            if ( row.recall ) {
2442
                            if ( row.recall ) {
2443
                                if ( row.recall.waiting_date ) {
2443
                                if ( row.recall.waiting_date ) {
2444
                                    nodes += '<span>%s</span>'.format(_("Waiting at %s since %s").format(escape_str(row.recall.pickup_library_id), $date(row.recall.waiting_date))); # FIXME Display library names instead of codes
2444
                                    nodes += '<span>%s</span>'.format(_("Waiting at %s since %s").format(escape_str(row.recall.pickup_library_id.str), $date(row.recall.waiting_date)));
2445
                                } else {
2445
                                } else {
2446
                                    let patron_to_html = $patron_to_html(row.recall.patron);
2446
                                    let patron_to_html = $patron_to_html(row.recall.patron);
2447
                                    nodes += '<span>%s</span>'.format(_("recalled by %s on %s").format(patron_to_html, $date(row.recall.created_date)))
2447
                                    nodes += '<span>%s</span>'.format(_("recalled by %s on %s").format(patron_to_html, $date(row.recall.created_date)))
2448
- 

Return to bug 33568