[% ELSE %]
[% END # /UNLESS ( op == 'show' ) %]
[% END # /UNLESS op == 'save' %]
[% END # /IF op == "show" %]
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'calendar.inc' %]
[% IF ( op == 'show' || op == 'else' ) %]
[% END %]
[% IF op == 'else' %]
[% INCLUDE 'datatables.inc' %]
[% INCLUDE 'columns_settings.inc' %]
[% END %]
[% IF op == 'save' %]
[% END %]
[% Asset.js("js/acq.js") | $raw %]
[% Asset.js("js/acquisitions-menu.js") | $raw %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]
[% END %]
[% IF op == 'save' %]
[% FOR m IN messages %]
[% SWITCH m.code %]
[% CASE 'biblio_exists' %]
A similar document already exists: [% m.title | html %]. Click on "Confirm your suggestion" to ignore this message.
[% CASE 'manager_not_enough_permissions' %]
The manager you selected does not have sufficient permissions.
[% CASE %]
[% m.code | html %]
[% END %]
[% END %]
[% END # /IF op == 'save' %]
[% IF op == 'else' %]
Suggestions management
[% IF ( displayby != "branchcode" ) %] [% END %] [% FOR m IN messages %]
[% SWITCH m.code %]
[% CASE 'already_exists' %]
The suggestion has not been added. A suggestion with this title already exists (suggestion #[% m.id | html %])
[% CASE 'biblio_exists' %]
A similar document already exists: [% m.title | html %]. Click on "Confirm your suggestion" to ignore this message.
[% CASE %]
[% m.code | html %]
[% END %]
[% END # /FOR m %]
[% WRAPPER tabs id= "suggestiontabs" %]
[% WRAPPER tabs_nav %]
[% FOREACH suggestion IN suggestions %]
[% WRAPPER tab_item tabname= suggestion.suggestiontype %]
[% IF ( suggestion.suggestiontypelabel ) %]
[% IF (suggestion.suggestiontypelabel == "Pending") %]Pending
[% ELSIF (suggestion.suggestiontypelabel == "Accepted") %]Accepted
[% ELSIF (suggestion.suggestiontypelabel == "Checked") %]Checked
[% ELSIF (suggestion.suggestiontypelabel == "Rejected") %]Rejected
[% ELSIF (suggestion.suggestiontypelabel == "Available") %]Available
[% ELSIF (suggestion.suggestiontypelabel == "Ordered") %]Ordered
[% ELSIF (suggestion.suggestiontypelabel == "Unknown") %]Status unknown
[% ELSIF (suggestion.suggestiontypelabel == "__ANY__") %]Any
[% ELSE %][% suggestion.suggestiontypelabel | html %][% END %]
[% ELSE %]
[% IF ( suggestion.suggestiontype ) %]
[% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.suggestiontype ) | html %]
[% ELSE %]
No name
[% END %]
[% END %]
([% suggestion.suggestions.size| html %])
[% END %]
[% END # /FOREACH suggestion %]
[% END # /WRAPPER tabs_nav %]
[% WRAPPER tab_panels %]
[% FOREACH suggestion IN suggestions %]
[% WRAPPER tab_panel tabname= suggestion.suggestiontype %]
[% END # /tab_panel# %]
[% END # /FOREACH suggestion %]
[% END # /WRAPPER tab_panels %]
[% END # /WRAPPER tabs %]
[% END # /IF op == 'else' %]
[% UNLESS op == 'save' %]
[% UNLESS ( op == 'show' ) %]