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

(-)a/api/v1/swagger/definitions/item.yaml (+4 lines)
Lines 242-247 properties: Link Here
242
    type:
242
    type:
243
      - object
243
      - object
244
      - "null"
244
      - "null"
245
  biblio:
246
    type:
247
      - object
248
      - "null"
245
  checkout:
249
  checkout:
246
    type:
250
    type:
247
      - object
251
      - object
(-)a/api/v1/swagger/paths/biblios.yaml (+1 lines)
Lines 423-428 Link Here
423
          type: string
423
          type: string
424
          enum:
424
          enum:
425
            - +strings
425
            - +strings
426
            - biblio.title
426
            - checkout
427
            - checkout
427
            - checkout.patron
428
            - checkout.patron
428
            - transfer
429
            - transfer
(-)a/catalogue/detail.pl (-4 lines)
Lines 198-206 my $items_params = { Link Here
198
my $all_items = $biblio->items($items_params);
198
my $all_items = $biblio->items($items_params);
199
my $items_to_display = $all_items->search({ $include_lost_items ? () : ( itemlost => 0 ) });
199
my $items_to_display = $all_items->search({ $include_lost_items ? () : ( itemlost => 0 ) });
200
200
201
# flag indicating existence of at least one item linked via a host record
202
my $hostrecords = $biblio->host_items->count;
203
204
my $dat = &GetBiblioData($biblionumber);
201
my $dat = &GetBiblioData($biblionumber);
205
202
206
#is biblio a collection and are bundles enabled
203
#is biblio a collection and are bundles enabled
Lines 354-360 $template->param( Link Here
354
$template->param(
351
$template->param(
355
    MARCNOTES               => !$invalid_marc_record ? $biblio->get_marc_notes() : undef,
352
    MARCNOTES               => !$invalid_marc_record ? $biblio->get_marc_notes() : undef,
356
    z3950_search_params     => C4::Search::z3950_search_args($dat),
353
    z3950_search_params     => C4::Search::z3950_search_args($dat),
357
    hostrecords             => $hostrecords,
358
    C4::Search::enabled_staff_search_views,
354
    C4::Search::enabled_staff_search_views,
359
);
355
);
360
356
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-7 / +7 lines)
Lines 368-374 Link Here
368
            <th id="[% tab | html %]_materials" data-colname="[% tab | html %]_materials">Materials specified</th>
368
            <th id="[% tab | html %]_materials" data-colname="[% tab | html %]_materials">Materials specified</th>
369
            <th id="[% tab | html %]_itemnotes" data-colname="[% tab | html %]_itemnotes">Public notes</th>
369
            <th id="[% tab | html %]_itemnotes" data-colname="[% tab | html %]_itemnotes">Public notes</th>
370
            <th id="[% tab | html %]_itemnotes_nonpublic" data-colname="[% tab | html %]_itemnotes_nonpublic">Non-public notes</th>
370
            <th id="[% tab | html %]_itemnotes_nonpublic" data-colname="[% tab | html %]_itemnotes_nonpublic">Non-public notes</th>
371
            [% IF ( hostrecords ) %]<th id="[% tab | html %]_hostrecord" data-colname="[% tab | html %]_hostrecord">Host records</th>[% END %]
371
            <th id="[% tab | html %]_hostrecord" data-colname="[% tab | html %]_hostrecord">Host records</th>
372
            [% IF ( analyze ) %]<th id="[% tab | html %]_usedin" data-colname="[% tab | html %]_usedin">Used in</th><th></th>[% END %]
372
            [% IF ( analyze ) %]<th id="[% tab | html %]_usedin" data-colname="[% tab | html %]_usedin">Used in</th><th></th>[% END %]
373
            [% IF Koha.Preference('UseCourseReserves') %]<th id="[% tab | html %]_course_reserves" data-colname="[% tab | html %]_course_reserves">Course reserves</th>[% END %]
373
            [% IF Koha.Preference('UseCourseReserves') %]<th id="[% tab | html %]_course_reserves" data-colname="[% tab | html %]_course_reserves">Course reserves</th>[% END %]
374
            [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th id="[% tab | html %]_spinelabel" data-colname="[% tab | html %]_spinelabel" class="NoSort">Spine label</th>[% END %]
374
            [% IF ( SpineLabelShowPrintOnBibDetails ) %]<th id="[% tab | html %]_spinelabel" data-colname="[% tab | html %]_spinelabel" class="NoSort">Spine label</th>[% END %]
Lines 2194-2199 Link Here
2194
            embed.push('course_item.course_reserves.course');
2194
            embed.push('course_item.course_reserves.course');
2195
        [% END %]
2195
        [% END %]
2196
2196
2197
        // For host records
2198
        embed.push('biblio.title');
2199
2197
        let items_table_settings = {
2200
        let items_table_settings = {
2198
            holdings: [% TablesSettings.GetTableSettings('catalogue', 'detail','holdings_table','json') | $raw %],
2201
            holdings: [% TablesSettings.GetTableSettings('catalogue', 'detail','holdings_table','json') | $raw %],
2199
            otherholdings: [% TablesSettings.GetTableSettings('catalogue', 'detail','otherholdings_table','json')  | $raw %],
2202
            otherholdings: [% TablesSettings.GetTableSettings('catalogue', 'detail','otherholdings_table','json')  | $raw %],
Lines 2589-2605 Link Here
2589
                        return escape_str(row.internal_notes);
2592
                        return escape_str(row.internal_notes);
2590
                    }
2593
                    }
2591
                },
2594
                },
2592
                [% IF ( hostrecords ) %]
2593
                {
2595
                {
2594
                    data: "biblio.biblio_id",
2596
                    data: "biblio.title",
2595
                    searchable: false, // FIXME
2597
                    searchable: false,
2596
                    orderable: true,
2598
                    orderable: true,
2597
                    render: function (data, type, row, meta) {
2599
                    render: function (data, type, row, meta) {
2598
                        if ( row.biblio_id == [% biblio.biblionumber | html %] ) return "";
2600
                        if ( row.biblio_id == [% biblio.biblionumber | html %] ) return "";
2599
                        return '<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=%s>%s</a>'.format(row.biblio_id, row.biblio.title);
2601
                        return '<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=%s">%s</a>'.format(row.biblio_id, row.biblio.title);
2600
                    }
2602
                    }
2601
                },
2603
                },
2602
                [% END %]
2603
                [% IF ( analyze ) %]
2604
                [% IF ( analyze ) %]
2604
                {
2605
                {
2605
                    data: "",
2606
                    data: "",
2606
- 

Return to bug 33568