@@ -, +, @@ --------- -- everything should be as expected. --- admin/columns_settings.yml | 11 +++++++ .../opac-tmpl/bootstrap/en/modules/opac-detail.tt | 35 ++++++++++++++++------ 2 files changed, 37 insertions(+), 9 deletions(-) --- a/admin/columns_settings.yml +++ a/admin/columns_settings.yml @@ -481,3 +481,14 @@ modules: - columnname: item_coursereserves + subscriptionst: + - + columnname: serial_serialseq + - + columnname: serial_publisheddate + - + columnname: serial_planneddate + - + columnname: serial_status + - + columnname: serial_notes --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -844,18 +844,23 @@ [% END %] [% IF ( subscription.latestserials ) %]

The [% subscription.opacdisplaycount %] latest issues for this subscription:

- +
+ - - - - + + + + + + + [% FOREACH latestserial IN subscription.latestserials %] - - - + + + - + [% END # / FOREACH latestserials %] +
Issue #DateStatusNoteIssue #Publication dateReceived dateStatusNote
[% latestserial.serialseq %][% latestserial.planneddate %] + [% latestserial.serialseq %][% latestserial.publisheddate %][% latestserial.planneddate %] [% IF (latestserial.status1 ) %]Expected[% END %] [% IF (latestserial.status2 ) %]Arrived[% END %] [% IF (latestserial.status3 ) %]Late[% END %] @@ -869,9 +874,10 @@ [% IF (latestserial.status7 ) %]Claimed[% END %] [% IF (latestserial.status8 ) %]Stopped[% END %] [% latestserial.notes %][% latestserial.notes %]
[% END # / IF subscription.latestserials %] [% END # / FOREACH subscriptions %] @@ -1461,6 +1467,17 @@ "bKohaColumnsUseNames": true }, columns_settings); + var serial_column_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) %]; + + KohaTable("#subscriptionst", { + dom: 'B<"clearfix">t', + "columnDefs": [ + { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, + { "sType": "title-string", "aTargets" : [ "title-string" ] } + ], + "bKohaColumnsUseNames": true + }, serial_column_settings); + [% IF ( TagsInputEnabled && loggedinusername ) %] $(".tag_add").click(function(){ var thisid = $(this).attr("id"); --