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

(-)a/api/v1/swagger/paths/biblios.yaml (+1 lines)
Lines 430-435 Link Here
430
            - first_hold
430
            - first_hold
431
            - first_hold+strings
431
            - first_hold+strings
432
            - first_hold.patron
432
            - first_hold.patron
433
            - first_hold.desk
433
            - recall
434
            - recall
434
            - recall+strings
435
            - recall+strings
435
            - recall.patron
436
            - recall.patron
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-4 / +6 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,transfer+strings,first_hold,first_hold+strings,first_hold.patron,item_type"];
2176
        let embed = ["+strings,checkout,checkout.patron,transfer,transfer+strings,first_hold,first_hold+strings,first_hold.patron,first_hold.desk,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 2425-2432 Link Here
2425
2425
2426
                        if ( row.first_hold ) {
2426
                        if ( row.first_hold ) {
2427
                            if ( row.first_hold.waiting_date ) {
2427
                            if ( row.first_hold.waiting_date ) {
2428
                                [%# FIXME We lost the desk name, we need an additional embed %]
2428
                                if ( row.first_hold.desk ) {
2429
                                nodes += '<span class="waitingat">%s</span>'.format(_("Waiting at %s since %s.".format(row.first_hold._strings.pickup_library_id.str, $date(row.first_hold.waiting_date))));
2429
                                    nodes += '<span class="waitingat">%s</span>'.format(_("Waiting at %s, %s since %s.".format(row.first_hold._strings.pickup_library_id.str, row.first_hold.desk.desk_name, $date(row.first_hold.waiting_date))));
2430
                                } else {
2431
                                    nodes += '<span class="waitingat">%s</span>'.format(_("Waiting at %s since %s.".format(row.first_hold._strings.pickup_library_id.str, $date(row.first_hold.waiting_date))));
2432
                                }
2430
                                [% IF Koha.Preference('canreservefromotherbranches') %]
2433
                                [% IF Koha.Preference('canreservefromotherbranches') %]
2431
                                    if ( row.first_hold.waiting_date || row.first_hold.priority == 1 ) {
2434
                                    if ( row.first_hold.waiting_date || row.first_hold.priority == 1 ) {
2432
                                        let patron_to_html = $patron_to_html(row.first_hold.patron); [%# FIXME What about hide_patron_infos_if_needed?? %]
2435
                                        let patron_to_html = $patron_to_html(row.first_hold.patron); [%# FIXME What about hide_patron_infos_if_needed?? %]
2433
- 

Return to bug 33568