Lines 712-720
Link Here
|
712 |
<th id="[% tab | html %]_item_group" data-colname="[% tab | html %]_item_group">Item group</th> |
712 |
<th id="[% tab | html %]_item_group" data-colname="[% tab | html %]_item_group">Item group</th> |
713 |
[% END %] |
713 |
[% END %] |
714 |
<th id="[% tab | html %]_itemcallnumber" data-colname="[% tab | html %]_itemcallnumber">Call number</th> |
714 |
<th id="[% tab | html %]_itemcallnumber" data-colname="[% tab | html %]_itemcallnumber">Call number</th> |
715 |
[% IF volinfo %] |
715 |
<th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron">Serial enumeration / chronology</th> |
716 |
<th id="[% tab | html %]_enumchron" data-colname="[% tab | html %]_enumchron">Serial enumeration / chronology</th> |
|
|
717 |
[% END %] |
718 |
<th id="[% tab | html %]_status" data-colname="[% tab | html %]_status">Status</th> |
716 |
<th id="[% tab | html %]_status" data-colname="[% tab | html %]_status">Status</th> |
719 |
<th id="[% tab | html %]_lastseen" data-colname="[% tab | html %]_lastseen">Last seen</th> |
717 |
<th id="[% tab | html %]_lastseen" data-colname="[% tab | html %]_lastseen">Last seen</th> |
720 |
<th id="[% tab | html %]_issues" data-colname="[% tab | html %]_issues">Checkouts</th> |
718 |
<th id="[% tab | html %]_issues" data-colname="[% tab | html %]_issues">Checkouts</th> |
Lines 2498-2503
Link Here
|
2498 |
[% IF Koha.Preference('EnableItemGroups') %] |
2496 |
[% IF Koha.Preference('EnableItemGroups') %] |
2499 |
embed.push('item_group_item.item_group.description'); |
2497 |
embed.push('item_group_item.item_group.description'); |
2500 |
[% END %] |
2498 |
[% END %] |
|
|
2499 |
[% IF biblio.serial %] |
2500 |
embed.push('serialitem.serial'); |
2501 |
[% END %] |
2501 |
let table_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail','holdings_table','json') | $raw %]; |
2502 |
let table_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail','holdings_table','json') | $raw %]; |
2502 |
var items_table = $("#table_items").kohaTable({ |
2503 |
var items_table = $("#table_items").kohaTable({ |
2503 |
ajax: { url: table_url }, |
2504 |
ajax: { url: table_url }, |
Lines 2631-2647
Link Here
|
2631 |
} |
2632 |
} |
2632 |
|
2633 |
|
2633 |
}, |
2634 |
}, |
2634 |
[% IF volinfo %] |
|
|
2635 |
{ |
2635 |
{ |
2636 |
data: "", |
2636 |
data: "me.serial_issue_number", |
2637 |
className: "enumchron", |
2637 |
className: "enumchron", |
2638 |
searchable: false, // FIXME |
2638 |
searchable: true, |
2639 |
orderable: true, |
2639 |
orderable: true, |
2640 |
render: function (data, type, row, meta) { |
2640 |
render: function (data, type, row, meta) { |
2641 |
return "volinfo"; // FIXME volinfo/enumchron/serial_issue_number |
2641 |
let nodes = ""; |
|
|
2642 |
[%# FIXME Previously we displayed the column if at least one item of the biblio had an enumchron/serial_issue_number. Now it's only if one item of the ones displayed on the current page, how is that bad? How can it be fixed in an elegant way? Should we display the column only if biblio.serial? %] |
2643 |
let serial = row.serialitem ? row.serialitem.serial : null; |
2644 |
if ( row.serial_issue_number && serial && serial.serialseq ) { |
2645 |
nodes += '<span class="enum">%s</span>'.format(row.serial_issue_number); |
2646 |
if ( serial.serialseq && row.serial_issue_number != serial.serialseq ) { |
2647 |
nodes += ' <span class="sep"> -- </span>' |
2648 |
nodes += ' <span class="serialseq">%s</span>'.format(serial.serialseq); |
2649 |
} |
2650 |
} else if ( row.serial_issue_number ) { |
2651 |
nodes += ' <span class="enum">%s</span>'.format(row.serial_issue_number); |
2652 |
} else if ( serial && serial.serialseq ) { |
2653 |
nodes += '<span class="serialseq">%s</span>'.format(serial.serialseq); |
2654 |
} |
2655 |
if ( serial && serial.publisheddate ) { |
2656 |
nodes += ' <span class="pubdate">(%s)</span>'.format($date(serial.publisheddate)); |
2657 |
} |
2658 |
return nodes; |
2642 |
} |
2659 |
} |
2643 |
}, |
2660 |
}, |
2644 |
[% END %] |
|
|
2645 |
{ |
2661 |
{ |
2646 |
data: "", |
2662 |
data: "", |
2647 |
className: "status", |
2663 |
className: "status", |
2648 |
- |
|
|