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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-11 / +23 lines)
Lines 2-7 Link Here
2
[% USE Asset %]
2
[% USE Asset %]
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE KohaDates %]
4
[% USE KohaDates %]
5
[% USE AuthorisedValues %]
5
[% USE Branches %]
6
[% USE Branches %]
6
[% PROCESS 'i18n.inc' %]
7
[% PROCESS 'i18n.inc' %]
7
[% SET footerjs = 1 %]
8
[% SET footerjs = 1 %]
Lines 532-554 Link Here
532
            [% END %]
533
            [% END %]
533
        [% END %]
534
        [% END %]
534
    [% ELSE %]
535
    [% ELSE %]
535
        [% SET opac_available_options = [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText', 'OpacMoreSearches', 'OpacMySummaryNote', 'OpacLibraryInfo', 'OpacMaintenanceNotice', 'OPACResultsSidebar', 'OpacSuppressionMessage', 'SCOMainUserBlock', 'SelfCheckInMainUserBlock', 'SelfCheckHelpMessage', 'CatalogConcernHelp', 'CatalogConcernTemplate', 'CookieConsentBar', 'CookieConsentPopup', 'PatronSelfRegistrationAdditionalInstructions', 'ILLModuleCopyrightClearance' ] %]
536
        [%# NOTE: Since bug 31642 you can add new options (i.e. block locations) via Authorised Values %}
537
        [%# Use the three AV categories: ADD_CONT_HTML_OPAC_SYSTEM, ADD_CONT_HTML_STAFF_SYSTEM or ADD_CONT_HTML_CUSTOM %]
538
        [% SET opac_available_options = AuthorisedValues.Get('ADD_CONT_HTML_OPAC_SYSTEM') %]
536
        <optgroup label="OPAC">
539
        <optgroup label="OPAC">
537
            [% FOREACH l IN opac_available_options.sort %]
540
            [% FOREACH l IN opac_available_options %]
538
                [% IF l == location %]
541
                [% IF l.authorised_value == location %]
539
                    <option value="[% l | html %]" selected="selected">[% l | html %]</option>
542
                    <option value="[% l.authorised_value | html %]" selected="selected">[% l.authorised_value | html %]</option>
540
                [% ELSE %]
543
                [% ELSE %]
541
                    <option value="[% l | html %]">[% l | html %]</option>
544
                    <option value="[% l.authorised_value | html %]">[% l.authorised_value | html %]</option>
542
                [% END %]
545
                [% END %]
543
            [% END %]
546
            [% END %]
544
        </optgroup>
547
        </optgroup>
545
        [% SET staff_available_options = [ 'IntranetmainUserblock', 'RoutingListNote', 'StaffAcquisitionsHome', 'StaffAuthoritiesHome', 'StaffCataloguingHome', 'StaffListsHome', 'StaffLoginInstructions', 'StaffPatronsHome', 'StaffPOSHome', 'StaffSerialsHome' ] %]
548
        [% SET staff_available_options = AuthorisedValues.Get('ADD_CONT_HTML_STAFF_SYSTEM') %]
546
        <optgroup label="Staff interface">
549
        <optgroup label="Staff interface">
547
            [% FOREACH l IN staff_available_options.sort %]
550
            [% FOREACH l IN staff_available_options %]
548
                [% IF l == location %]
551
                [% IF l.authorised_value == location %]
549
                    <option value="[% l | html %]" selected="selected">[% l | html %]</option>
552
                    <option value="[% l.authorised_value | html %]" selected="selected">[% l.authorised_value | html %]</option>
550
                [% ELSE %]
553
                [% ELSE %]
551
                    <option value="[% l | html %]">[% l | html %]</option>
554
                    <option value="[% l.authorised_value | html %]">[% l.authorised_value | html %]</option>
555
                [% END %]
556
            [% END %]
557
        </optgroup>
558
        [% SET custom_available_options = AuthorisedValues.Get('ADD_CONT_HTML_CUSTOM') %]
559
        <optgroup label="Custom">
560
            [% FOREACH l IN custom_available_options %]
561
                [% IF l.authorised_value == location %]
562
                    <option value="[% l.authorised_value | html %]" selected="selected">[% l.authorised_value | html %]</option>
563
                [% ELSE %]
564
                    <option value="[% l.authorised_value | html %]">[% l.authorised_value | html %]</option>
552
                [% END %]
565
                [% END %]
553
            [% END %]
566
            [% END %]
554
        </optgroup>
567
        </optgroup>
555
- 

Return to bug 31642