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

(-)a/installer/data/mysql/atomicupdate/bug_14224-issue_notes_syspref.sql (-1 / +1 lines)
Line 1 Link Here
1
INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`,`type`) VALUES ('AllowIssueNotes', '0', NULL, 'Allow patrons to submit notes about checked out items.','YesNo');
1
INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`,`type`) VALUES ('AllowCheckoutNotes', '0', NULL, 'Allow patrons to submit notes about checked out items.','YesNo');
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 22-28 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
22
('AllowHoldPolicyOverride','0',NULL,'Allow staff to override hold policies when placing holds','YesNo'),
22
('AllowHoldPolicyOverride','0',NULL,'Allow staff to override hold policies when placing holds','YesNo'),
23
('AllowHoldsOnDamagedItems','1','','Allow hold requests to be placed on damaged items','YesNo'),
23
('AllowHoldsOnDamagedItems','1','','Allow hold requests to be placed on damaged items','YesNo'),
24
('AllowHoldsOnPatronsPossessions','1',NULL,'Allow holds on records that patron have items of it','YesNo'),
24
('AllowHoldsOnPatronsPossessions','1',NULL,'Allow holds on records that patron have items of it','YesNo'),
25
('AllowIssueNotes', '0', NULL, 'Allow patrons to submit notes about checked out items.','YesNo'),
25
('AllowCheckoutNotes', '0', NULL, 'Allow patrons to submit notes about checked out items.','YesNo'),
26
('AllowItemsOnHoldCheckout','0','','Do not generate RESERVE_WAITING and RESERVED warning when checking out items reserved to someone else. This allows self checkouts for those items.','YesNo'),
26
('AllowItemsOnHoldCheckout','0','','Do not generate RESERVE_WAITING and RESERVED warning when checking out items reserved to someone else. This allows self checkouts for those items.','YesNo'),
27
('AllowItemsOnHoldCheckoutSCO','0','','Do not generate RESERVE_WAITING and RESERVED warning in the SCO module when checking out items reserved to someone else. This allows self checkouts for those items.','YesNo'),
27
('AllowItemsOnHoldCheckoutSCO','0','','Do not generate RESERVE_WAITING and RESERVED warning in the SCO module when checking out items reserved to someone else. This allows self checkouts for those items.','YesNo'),
28
('AllowMultipleCovers','0','1','Allow multiple cover images to be attached to each bibliographic record.','YesNo'),
28
('AllowMultipleCovers','0','1','Allow multiple cover images to be attached to each bibliographic record.','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +1 lines)
Lines 137-143 Circulation: Link Here
137
                  no: "Do not show"
137
                  no: "Do not show"
138
            - all items in the "Checked-in items" list, even items that were not checked out.
138
            - all items in the "Checked-in items" list, even items that were not checked out.
139
        -
139
        -
140
            - pref: AllowIssueNotes
140
            - pref: AllowCheckoutNotes
141
              choices:
141
              choices:
142
                  yes: Allow
142
                  yes: Allow
143
                  no: "Don't allow"
143
                  no: "Don't allow"
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-issue-note.tt (-1 / +1 lines)
Lines 26-32 Link Here
26
            <div class="span10">
26
            <div class="span10">
27
                <div id="issuenote" class="maincontent">
27
                <div id="issuenote" class="maincontent">
28
                    <h3>Editing issue note for [% title %] [% author %]</h3>
28
                    <h3>Editing issue note for [% title %] [% author %]</h3>
29
                        [% IF not(Koha.Preference("AllowIssueNotes")) %]
29
                        [% IF not(Koha.Preference("AllowCheckoutNotes")) %]
30
                            Issue notes have not been enabled. Please contact the library.
30
                            Issue notes have not been enabled. Please contact the library.
31
                        [% ELSE %]
31
                        [% ELSE %]
32
                            <form id="issue-note" action="/cgi-bin/koha/opac-issue-note.pl" method="post">
32
                            <form id="issue-note" action="/cgi-bin/koha/opac-issue-note.pl" method="post">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-3 / +3 lines)
Lines 167-173 Using this account is not recommended because some parts of Koha will not functi Link Here
167
                                                [% IF ( OPACMySummaryHTML ) %]
167
                                                [% IF ( OPACMySummaryHTML ) %]
168
                                                    <th class="nosort">Links</th>
168
                                                    <th class="nosort">Links</th>
169
                                                [% END %]
169
                                                [% END %]
170
                                                [% IF ( Koha.Preference('AllowIssueNotes') ) %]
170
                                                [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
171
                                                    <th class="nosort">Note</th>
171
                                                    <th class="nosort">Note</th>
172
                                                [% END %]
172
                                                [% END %]
173
                                            </tr>
173
                                            </tr>
Lines 288-294 Using this account is not recommended because some parts of Koha will not functi Link Here
288
                                                [% IF ( OPACMySummaryHTML ) %]
288
                                                [% IF ( OPACMySummaryHTML ) %]
289
                                                    <td class="links">[% ISSUE.MySummaryHTML %]</td>
289
                                                    <td class="links">[% ISSUE.MySummaryHTML %]</td>
290
                                                [% END %]
290
                                                [% END %]
291
                                                [% IF ( Koha.Preference('AllowIssueNotes') ) %]
291
                                                [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
292
                                                    <td class="note">
292
                                                    <td class="note">
293
                                                        <input type="text" name="note" data-issue_id="[% ISSUE.issue_id %]" data-origvalue="[% ISSUE.note %]" value="[% ISSUE.note %]" readonly>
293
                                                        <input type="text" name="note" data-issue_id="[% ISSUE.issue_id %]" data-origvalue="[% ISSUE.note %]" value="[% ISSUE.note %]" readonly>
294
                                                        <a class="btn" name="js_submitnote" id="save_[% ISSUE.issue_id %]" style="display:none;">Submit note</a>
294
                                                        <a class="btn" name="js_submitnote" id="save_[% ISSUE.issue_id %]" style="display:none;">Submit note</a>
Lines 895-901 Using this account is not recommended because some parts of Koha will not functi Link Here
895
                [% END %]
895
                [% END %]
896
            [% END %]
896
            [% END %]
897
897
898
            [% IF ( Koha.Preference('AllowIssueNotes') ) %]
898
            [% IF ( Koha.Preference('AllowCheckoutNotes') ) %]
899
899
900
                /* If JS enabled, show button, otherwise show link to redirect to a page where note can be submitted */
900
                /* If JS enabled, show button, otherwise show link to redirect to a page where note can be submitted */
901
                $("a[name='nonjs_submitnote']").hide();
901
                $("a[name='nonjs_submitnote']").hide();
(-)a/opac/opac-issue-note.pl (-1 / +1 lines)
Lines 63-69 $template->param( Link Here
63
);
63
);
64
64
65
my $action = $query->param('action') || "";
65
my $action = $query->param('action') || "";
66
if ( $action eq 'issuenote' && C4::Context->preference('AllowIssueNotes') ) {
66
if ( $action eq 'issuenote' && C4::Context->preference('AllowCheckoutNotes') ) {
67
    my $note = $query->param('note');
67
    my $note = $query->param('note');
68
    my $scrubber = C4::Scrubber->new();
68
    my $scrubber = C4::Scrubber->new();
69
    my $clean_note = $scrubber->scrub($note);
69
    my $clean_note = $scrubber->scrub($note);
(-)a/opac/svc/patron_notes (-2 / +1 lines)
Lines 50-56 if ($is_ajax) { Link Here
50
    my $action = $query->param('action');
50
    my $action = $query->param('action');
51
51
52
    # Issue Note
52
    # Issue Note
53
    if ( $action eq 'issuenote' && C4::Context->preference('AllowIssueNotes') ) {
53
    if ( $action eq 'issuenote' && C4::Context->preference('AllowCheckoutNotes') ) {
54
        my $scrubber = C4::Scrubber->new();
54
        my $scrubber = C4::Scrubber->new();
55
        my $note = $query->param('note');
55
        my $note = $query->param('note');
56
        my $issue_id = $query->param('issue_id');
56
        my $issue_id = $query->param('issue_id');
57
- 

Return to bug 14224