Bugzilla – Attachment 59786 Details for
Bug 14224
patron notes about item shown at check in
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14224: Replace AllowIssueNotes with AllowCheckoutNotes
Bug-14224-Replace-AllowIssueNotes-with-AllowChecko.patch (text/plain), 7.87 KB, created by
Jonathan Druart
on 2017-02-02 10:41:33 UTC
(
hide
)
Description:
Bug 14224: Replace AllowIssueNotes with AllowCheckoutNotes
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-02-02 10:41:33 UTC
Size:
7.87 KB
patch
obsolete
>From f75aaedc74b4a735a53fadfdd1c16a99b2e34117 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 2 Feb 2017 11:37:54 +0100 >Subject: [PATCH] Bug 14224: Replace AllowIssueNotes with AllowCheckoutNotes > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > installer/data/mysql/atomicupdate/bug_14224-issue_notes_syspref.sql | 2 +- > installer/data/mysql/sysprefs.sql | 2 +- > .../prog/en/modules/admin/preferences/circulation.pref | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-issue-note.tt | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 6 +++--- > opac/opac-issue-note.pl | 2 +- > opac/svc/patron_notes | 2 +- > 7 files changed, 9 insertions(+), 9 deletions(-) > >diff --git a/installer/data/mysql/atomicupdate/bug_14224-issue_notes_syspref.sql b/installer/data/mysql/atomicupdate/bug_14224-issue_notes_syspref.sql >index e619b21..63d359f 100644 >--- a/installer/data/mysql/atomicupdate/bug_14224-issue_notes_syspref.sql >+++ b/installer/data/mysql/atomicupdate/bug_14224-issue_notes_syspref.sql >@@ -1 +1 @@ >-INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`,`type`) VALUES ('AllowIssueNotes', '0', NULL, 'Allow patrons to submit notes about checked out items.','YesNo'); >+INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`,`type`) VALUES ('AllowCheckoutNotes', '0', NULL, 'Allow patrons to submit notes about checked out items.','YesNo'); >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index 5a6c73c..4be5652 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -22,7 +22,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('AllowHoldPolicyOverride','0',NULL,'Allow staff to override hold policies when placing holds','YesNo'), > ('AllowHoldsOnDamagedItems','1','','Allow hold requests to be placed on damaged items','YesNo'), > ('AllowHoldsOnPatronsPossessions','1',NULL,'Allow holds on records that patron have items of it','YesNo'), >-('AllowIssueNotes', '0', NULL, 'Allow patrons to submit notes about checked out items.','YesNo'), >+('AllowCheckoutNotes', '0', NULL, 'Allow patrons to submit notes about checked out items.','YesNo'), > ('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'), > ('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'), > ('AllowMultipleCovers','0','1','Allow multiple cover images to be attached to each bibliographic record.','YesNo'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >index 6c4b9ed..439a0d2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >@@ -137,7 +137,7 @@ Circulation: > no: "Do not show" > - all items in the "Checked-in items" list, even items that were not checked out. > - >- - pref: AllowIssueNotes >+ - pref: AllowCheckoutNotes > choices: > yes: Allow > no: "Don't allow" >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-issue-note.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-issue-note.tt >index 6876477..03a6a7b 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-issue-note.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-issue-note.tt >@@ -26,7 +26,7 @@ > <div class="span10"> > <div id="issuenote" class="maincontent"> > <h3>Editing issue note for [% title %] [% author %]</h3> >- [% IF not(Koha.Preference("AllowIssueNotes")) %] >+ [% IF not(Koha.Preference("AllowCheckoutNotes")) %] > Issue notes have not been enabled. Please contact the library. > [% ELSE %] > <form id="issue-note" action="/cgi-bin/koha/opac-issue-note.pl" method="post"> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >index ba31007..5e23ab0 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >@@ -167,7 +167,7 @@ Using this account is not recommended because some parts of Koha will not functi > [% IF ( OPACMySummaryHTML ) %] > <th class="nosort">Links</th> > [% END %] >- [% IF ( Koha.Preference('AllowIssueNotes') ) %] >+ [% IF ( Koha.Preference('AllowCheckoutNotes') ) %] > <th class="nosort">Note</th> > [% END %] > </tr> >@@ -288,7 +288,7 @@ Using this account is not recommended because some parts of Koha will not functi > [% IF ( OPACMySummaryHTML ) %] > <td class="links">[% ISSUE.MySummaryHTML %]</td> > [% END %] >- [% IF ( Koha.Preference('AllowIssueNotes') ) %] >+ [% IF ( Koha.Preference('AllowCheckoutNotes') ) %] > <td class="note"> > <input type="text" name="note" data-issue_id="[% ISSUE.issue_id %]" data-origvalue="[% ISSUE.note %]" value="[% ISSUE.note %]" readonly> > <a class="btn" name="js_submitnote" id="save_[% ISSUE.issue_id %]" style="display:none;">Submit note</a> >@@ -895,7 +895,7 @@ Using this account is not recommended because some parts of Koha will not functi > [% END %] > [% END %] > >- [% IF ( Koha.Preference('AllowIssueNotes') ) %] >+ [% IF ( Koha.Preference('AllowCheckoutNotes') ) %] > > /* If JS enabled, show button, otherwise show link to redirect to a page where note can be submitted */ > $("a[name='nonjs_submitnote']").hide(); >diff --git a/opac/opac-issue-note.pl b/opac/opac-issue-note.pl >index de2d82b..becd708 100755 >--- a/opac/opac-issue-note.pl >+++ b/opac/opac-issue-note.pl >@@ -63,7 +63,7 @@ $template->param( > ); > > my $action = $query->param('action') || ""; >-if ( $action eq 'issuenote' && C4::Context->preference('AllowIssueNotes') ) { >+if ( $action eq 'issuenote' && C4::Context->preference('AllowCheckoutNotes') ) { > my $note = $query->param('note'); > my $scrubber = C4::Scrubber->new(); > my $clean_note = $scrubber->scrub($note); >diff --git a/opac/svc/patron_notes b/opac/svc/patron_notes >index 2e25b36..2e4dfc9 100755 >--- a/opac/svc/patron_notes >+++ b/opac/svc/patron_notes >@@ -50,7 +50,7 @@ if ($is_ajax) { > my $action = $query->param('action'); > > # Issue Note >- if ( $action eq 'issuenote' && C4::Context->preference('AllowIssueNotes') ) { >+ if ( $action eq 'issuenote' && C4::Context->preference('AllowCheckoutNotes') ) { > my $scrubber = C4::Scrubber->new(); > my $note = $query->param('note'); > my $issue_id = $query->param('issue_id'); >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14224
:
41801
|
41921
|
56682
|
57440
|
57577
|
57763
|
57802
|
57829
|
57853
|
58277
|
58325
|
58326
|
58372
|
58606
|
58622
|
59469
|
59637
|
59641
|
59761
|
59779
|
59780
|
59781
|
59782
|
59783
|
59784
|
59785
|
59786
|
59787
|
59788
|
59796
|
59798
|
59799
|
59800
|
59801
|
59802
|
59803
|
59804
|
59805
|
59806
|
61847
|
61848
|
61849
|
61850
|
61851
|
61852
|
61853
|
61854
|
61855
|
61856
|
62196
|
62197
|
62198
|
62199
|
62200
|
62201
|
62202
|
62203
|
62204
|
62205
|
62206
|
62633
|
62634
|
62635
|
62636
|
62637
|
62638
|
62639
|
62640
|
62641
|
62642
|
62643
|
62644