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

(-)a/installer/data/mysql/atomicupdate/bug_40879.pl (-2 / +2 lines)
Lines 10-20 return { Link Here
10
10
11
        # Do you stuffs here
11
        # Do you stuffs here
12
        $dbh->do(
12
        $dbh->do(
13
            q{INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('OpacCiteModal', '1', NULL, 'Enable or disable the Cite option in the OPAC record view.', 'YesNo')}
13
            q{INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('OPACCite', '1', NULL, 'Enable or disable the Cite option in the OPAC record view.', 'YesNo')}
14
        );
14
        );
15
15
16
        # sysprefs
16
        # sysprefs
17
        say $out "Added new system preference 'OpacCiteModal'";
17
        say $out "Added new system preference 'OPACCite'";
18
18
19
    },
19
    },
20
};
20
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +1 lines)
Lines 493-499 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
493
('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search results from the OPAC detail page.','YesNo'),
493
('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search results from the OPAC detail page.','YesNo'),
494
('OpacBrowseSearch', '0',NULL, "Elasticsearch only: add a page allowing users to 'browse' all items in the collection",'YesNo'),
494
('OpacBrowseSearch', '0',NULL, "Elasticsearch only: add a page allowing users to 'browse' all items in the collection",'YesNo'),
495
('OpacCatalogConcerns', '0', NULL, 'Allow logged in OPAC users to report catalog concerns', 'YesNo'),
495
('OpacCatalogConcerns', '0', NULL, 'Allow logged in OPAC users to report catalog concerns', 'YesNo'),
496
('OpacCiteModal', '1', NULL, 'Enable or disable the Cite option in the OPAC record view.', 'YesNo'),
496
('OPACCite', '1', NULL, 'Enable or disable the Cite option in the OPAC record view.', 'YesNo'),
497
('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
497
('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
498
('OpacCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the OPAC', 'YesNo'),
498
('OpacCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the OPAC', 'YesNo'),
499
('OPACComments','1','','If ON, enables patron reviews of bibliographic records in the OPAC','YesNo'),
499
('OPACComments','1','','If ON, enables patron reviews of bibliographic records in the OPAC','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-4 / +4 lines)
Lines 421-431 OPAC: Link Here
421
            - "patrons to browse subject authorities on the OPAC."
421
            - "patrons to browse subject authorities on the OPAC."
422
            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/build_browser_and_cloud.pl</code> cronjob. Ask your system administrator to schedule it."
422
            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/build_browser_and_cloud.pl</code> cronjob. Ask your system administrator to schedule it."
423
        -
423
        -
424
            - pref: OpacCiteModal
424
            - pref: OPACCite
425
              choices:
425
              choices:
426
                  1: Enable
426
                  1: Show
427
                  0: Disable
427
                  0: "Don't show"
428
            - the option to show the Cite modal on the bibliographic detail page.
428
            - the cite option on OPAC bibliographic detail pages.
429
        -
429
        -
430
            - pref: OpacCloud
430
            - pref: OpacCloud
431
              choices:
431
              choices:
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/modals/catalog_cite.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% IF Koha.Preference('OpacCiteModal') %]
2
[% IF Koha.Preference('OPACCite') %]
3
    <!-- Add cite modal -->
3
    <!-- Add cite modal -->
4
    <div class="modal" id="citeModal" tabindex="-1" role="dialog" aria-labelledby="citeLabel" aria-hidden="true">
4
    <div class="modal" id="citeModal" tabindex="-1" role="dialog" aria-labelledby="citeLabel" aria-hidden="true">
5
        <div class="modal-dialog modal-lg">
5
        <div class="modal-dialog modal-lg">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc (-2 / +1 lines)
Lines 22-28 Link Here
22
    <li
22
    <li
23
        ><a class="print-large btn btn-link btn-lg" href="#"><i class="fa fa-fw fa-print" aria-hidden="true"></i> Print</a></li
23
        ><a class="print-large btn btn-link btn-lg" href="#"><i class="fa fa-fw fa-print" aria-hidden="true"></i> Print</a></li
24
    >
24
    >
25
    [% IF Koha.Preference('OpacCiteModal') %]
25
    [% IF Koha.Preference('OPACCite') %]
26
        <li
26
        <li
27
            ><a class="cite btn btn-link btn-lg" href="#" id="cite" data-bs-toggle="modal" data-bs-target="#citeModal"><i class="fa fa-fw fa-quote-left" aria-hidden="true"></i> Cite</a></li
27
            ><a class="cite btn btn-link btn-lg" href="#" id="cite" data-bs-toggle="modal" data-bs-target="#citeModal"><i class="fa fa-fw fa-quote-left" aria-hidden="true"></i> Cite</a></li
28
        >
28
        >
29
- 

Return to bug 40879