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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html-customization-help.inc (+67 lines)
Line 0 Link Here
1
<div id="ArticleRequestsDisclaimerText_notes" class="hint customization_note">
2
    This content will be shown to an OPAC user before they can place an article request.
3
</div>
4
5
<div id="CatalogConcernHelp_notes"  class="hint customization_note">
6
    Include this content on the form shown in the OPAC when the user submits a catalog concern report.
7
</div>
8
9
<div id="CatalogConcernTemplate_notes"  class="hint customization_note">
10
    Prefill the OPAC catalog concern form with this content as a template for the user's submission.
11
</div>
12
13
<div id="CookieConsentBar_notes"  class="hint customization_note">
14
    Include this content in the cookie consent footer which is displayed in the OPAC when the CookieConsent system preference is enabled.
15
</div>
16
17
<div id="CookieConsentPopup_notes"  class="hint customization_note">
18
    Include this content in the popup message which is displayed in the OPAC when the CookieConsent system preference is enabled and the user clicks the "Your cookies" menu item in the header.
19
</div>
20
21
<div id="opaccredits_notes" class="hint customization_note">
22
    Include this content in the footer of all pages in the OPAC.
23
</div>
24
25
<div id="OpacCustomSearch_notes" class="hint customization_note">
26
    Replace the search box at the top of OPAC pages with this content.
27
</div>
28
29
<div id="opacheader_notes" class="hint customization_note">
30
    Include this content in the header of all pages in the OPAC.
31
</div>
32
33
<div id="OpacLibraryInfo_notes" class="hint customization_note">
34
    Include this content on the library information page in the OPAC.
35
</div>
36
37
<div id="OpacLoginInstructions_notes" class="hint customization_note">
38
    Show this content on the OPAC login form when a patron is not logged in.
39
</div>
40
41
<div id="OpacMainUserBlock_notes" class="hint customization_note">
42
    Show this content in its own column on the main page of the OPAC.
43
</div>
44
45
<div id="OpacMoreSearches_notes" class="hint customization_note">
46
    Add additional elements to the "More Searches" bar on the OPAC, with this content (leave blank to disable).
47
</div>
48
49
<div id="OpacMySummaryNote_notes" class="hint customization_note">
50
    Note to display on the patron summary page. This note only appears if the patron is logged in.
51
</div>
52
53
<div id="OpacNav_notes" class="hint customization_note">
54
    Show this content on the left hand column of the main page and patron account on the OPAC (generally navigation links).
55
</div>
56
57
<div id="OpacNavBottom_notes" class="hint customization_note">
58
    Show this content on the left hand column of the main page and patron account on the OPAC, after OpacNav, and before patron account links if available.
59
</div>
60
61
<div id="OpacNavRight_notes" class="hint customization_note">
62
    Show this content in the right hand column of the main page under the main login form.
63
</div>
64
65
<div id="OpacSuggestionInstructions_notes" class="hint customization_note">
66
    Show this content at the top of the purchase suggestion form in the OPAC.
67
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-2 / +16 lines)
Lines 71-76 Link Here
71
        label[for^="content_"] {
71
        label[for^="content_"] {
72
            font-weight: 700;
72
            font-weight: 700;
73
        }
73
        }
74
        .customization_note {
75
            display: none;
76
        }
74
    </style>
77
    </style>
75
</head>
78
</head>
76
79
Lines 233-238 Link Here
233
                    <select id="location" name="location">
236
                    <select id="location" name="location">
234
                        [% PROCESS locations_options location => additional_content.location %]
237
                        [% PROCESS locations_options location => additional_content.location %]
235
                    </select>
238
                    </select>
239
                    [% INCLUDE 'html-customization-help.inc' %]
236
                </li>
240
                </li>
237
                <li>
241
                <li>
238
                    <label for="branchcode">Library: </label>
242
                    <label for="branchcode">Library: </label>
Lines 439-445 Link Here
439
                            [% END %]
443
                            [% END %]
440
                            <td>
444
                            <td>
441
                                <div class="btn-group">
445
                                <div class="btn-group">
442
                                    <a class="preview_news btn btn-default btn-xs" data-number="[% loop.count | html %]"><i class="fa-solid fa-eye aria-hidden="true"></i> Preview content</a>
446
                                    <a class="preview_news btn btn-default btn-xs" data-number="[% loop.count | html %]"><i class="fa-solid fa-eye" aria-hidden="true"></i> Preview content</a>
443
                                </div>
447
                                </div>
444
                                <div id="contentModal[% loop.count | html %]" class="modal" tabindex="-1" role="dialog" data-number="[% loop.count | html %]">
448
                                <div id="contentModal[% loop.count | html %]" class="modal" tabindex="-1" role="dialog" data-number="[% loop.count | html %]">
445
                                    <div class="modal-dialog" role="document">
449
                                    <div class="modal-dialog" role="document">
Lines 659-664 Link Here
659
        </script>
663
        </script>
660
    [% ELSE %]
664
    [% ELSE %]
661
        <script>
665
        <script>
666
            function showLocationNotes( location ){
667
                $(".customization_note").hide();
668
                $( "#" + location + "_notes" ).show();
669
            }
670
662
            $(document).ready(function() {
671
            $(document).ready(function() {
663
                [% IF category == 'news' %]
672
                [% IF category == 'news' %]
664
                $("#add_additional_content").validate({
673
                $("#add_additional_content").validate({
Lines 685-690 Link Here
685
                });
694
                });
686
                [% END %]
695
                [% END %]
687
696
697
                showLocationNotes( $("#location").val() );
698
699
                $("#location").on("change", function(){
700
                    showLocationNotes( $(this).val() );
701
                });
702
688
                $("#submit_form").on("click",function(){
703
                $("#submit_form").on("click",function(){
689
                    $("#add_additional_content").submit();
704
                    $("#add_additional_content").submit();
690
                });
705
                });
691
- 

Return to bug 34964