[% USE raw %] [% USE Asset %] [% USE AuthorisedValues %] [% USE Branches %] [% USE CGI %] [% USE KohaDates %] [% USE Koha %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Serials [% biblionumber | html %] › Koha [% INCLUDE 'doc-head-close.inc' %] [% WRAPPER 'header.inc' %] [% INCLUDE 'serials-search.inc' %] [% END %] [% WRAPPER 'sub-header.inc' %] [% END %] [% url_params = [] %] [% FOREACH param IN CGI.params.pairs %] [% escaped_value = BLOCK %][% param.value | uri %][% END %] [% url_params.push(param.key _ '=' _ escaped_value) %] [% END %] [% SET referrer = '/cgi-bin/koha/serials/serials-search.pl?' %] [% referrer = BLOCK %][% referrer | url %][% url_params.join("&") |uri %][% END %] [% SET edit_action_link = '/cgi-bin/koha/serials/subscription-batchedit.pl?referrer=' _ referrer %] [% BLOCK subscriptions_table %]
[% IF closed %] [% SET tab = 'closed' %] [% ELSE %] [% SET tab = 'opened' %] [% END %] [% IF CAN_user_serials_edit_subscription %]
Select all | Clear all | Actions: Edit selected serials
[% END %] [% UNLESS closed %] [% END %] [% FOR field IN additional_fields_for_subscription %] [% END %] [% FOREACH subscription IN subscriptions %] [% UNLESS subscription.cannotdisplay %] [% UNLESS closed %] [% END %] [% FOR field IN additional_fields_for_subscription %] [% IF field.authorised_value_category %] [% ELSE %] [% END %] [% END %] [% END # /UNLESS subscription.cannotdisplay %] [% END # /FOREACH subscription %] [% SET column_num = 6 %] [% UNLESS closed %] [% SET column_num = column_num + 1 %] [% END %] [% FOR field IN additional_fields_for_subscription %] [% END %]
ISSN Title Notes Library Location Call numberExpiration date[% field.name | html %]Actions
[% UNLESS subscription.cannotedit %] [% ELSE %] [% END %] [% IF ( subscription.issn ) %] [% subscription.issn | html %] [% END %] [% subscription.title | html %] [% subscription.subtitle | html %] [% IF ( subscription.publicnotes ) %][% subscription.publicnotes | html %][% END %] [% IF ( subscription.internalnotes ) %]([% subscription.internalnotes | html %])[% END %] [% IF ( subscription.branchcode ) %][% Branches.GetName( subscription.branchcode ) | html %][% END %] [% IF ( subscription.location ) %] [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => subscription.location ) | html %] [% END %] [% IF ( subscription.callnumber ) %][% subscription.callnumber | html %][% END %] [% subscription.enddate | $KohaDates %] [% AuthorisedValues.GetByCode( field.authorised_value_category, subscription.additional_fields.${field.name} ) | html %][% subscription.additional_fields.${field.name} | html %]
[% IF closed %] Actions [% ELSE %]
[% IF ( CAN_user_serials_receive_serials ) %] [%# There should be no space between these two buttons, it would render badly %] Serial receive [% ELSE %] Actions [% END %]
[% END # IF closed %]
[% END # /BLOCK subscriptions_table %]
[% INCLUDE 'serials-toolbar.inc' %] [% IF ( mana ) %] [% IF ( done_searched ) %]

Mana subscriptions ([% total | html %] found)

[% ELSE %]

Mana subscriptions search

[% END %] [% ELSE %] [% IF ( done_searched ) %]

Serials subscriptions ([% total | html %] found)

[% ELSE %]

Serials subscriptions search

[% END %] [% END %] [% UNLESS ( done_searched ) %] [% INCLUDE 'serials-advsearch.inc' %] [% END # /UNLESS ( done_searched )%] [% IF ( done_searched ) %] [% IF ( total ) %] [% WRAPPER tabs id= "serialstabs" %] [% WRAPPER tabs_nav %] [% IF mana %] [% WRAPPER tab_item tabname= "mana" bt_active= 1 %] Mana ([% total || 0 | html %]) [% END %] [% ELSE %] [% WRAPPER tab_item tabname= "opened" bt_active= 1 %] Open ([% openedsubscriptions.size || 0 | html %]) [% END %] [% WRAPPER tab_item tabname= "closed" %] Closed ([% closedsubscriptions.size || 0 | html %]) [% END %] [% END %] [% END # /WRAPPER tabs_nav %] [% WRAPPER tab_panels %] [% IF mana %] [% WRAPPER tab_panel tabname="mana" bt_active= 1 %] [% INCLUDE 'mana/mana-subscription-search-result.inc' %] [% END # /WRAPPER tab_panel#mana %] [% ELSE %] [% WRAPPER tab_panel tabname="opened" bt_active= 1 %] [% IF openedsubscriptions %] [% INCLUDE subscriptions_table subscriptions = openedsubscriptions %] [% ELSE %]

Your search returned no open subscriptions.

[% END %] [% END # /WRAPPER tab_panel#opened %] [% WRAPPER tab_panel tabname="closed" %] [% IF closedsubscriptions %] [% INCLUDE subscriptions_table subscriptions = closedsubscriptions closed = 1 %] [% ELSE %]

Your search returned no closed subscriptions.

[% END %] [% END # /WRAPPER tab_panel#closed %] [% END # /IF mana %] [% END # /WRAPPER tab_panels %] [% END # /WRAPPER tabs#serialstabs %] [% ELSE %]

Your search returned no results.

[% END # IF ( total ) %] [% END # /IF done_searched %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'calendar.inc' %] [% INCLUDE 'datatables.inc' %] [% Asset.js("js/serials-toolbar.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]