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

(-)a/api/v1/swagger/definitions/patron.json (-1 / +1 lines)
Lines 241-247 Link Here
241
    },
241
    },
242
    "privacy": {
242
    "privacy": {
243
      "type": "integer",
243
      "type": "integer",
244
      "description": "patron's privacy settings related to their reading history"
244
      "description": "patron's privacy settings related to their checkout history"
245
    },
245
    },
246
    "privacy_guarantor_checkouts": {
246
    "privacy_guarantor_checkouts": {
247
      "type": "integer",
247
      "type": "integer",
(-)a/installer/data/mysql/kohastructure.sql (-2 / +2 lines)
Lines 600-606 CREATE TABLE `deletedborrowers` ( -- stores data related to the patrons/borrower Link Here
600
  `altcontactphone` MEDIUMTEXT default NULL, -- the phone number for the alternate contact for the patron/borrower
600
  `altcontactphone` MEDIUMTEXT default NULL, -- the phone number for the alternate contact for the patron/borrower
601
  `smsalertnumber` varchar(50) default NULL, -- the mobile phone number where the patron/borrower would like to receive notices (if SMS turned on)
601
  `smsalertnumber` varchar(50) default NULL, -- the mobile phone number where the patron/borrower would like to receive notices (if SMS turned on)
602
  `sms_provider_id` int(11) DEFAULT NULL, -- the provider of the mobile phone number defined in smsalertnumber
602
  `sms_provider_id` int(11) DEFAULT NULL, -- the provider of the mobile phone number defined in smsalertnumber
603
  `privacy` integer(11) DEFAULT '1' NOT NULL, -- patron/borrower's privacy settings related to their reading history  KEY `borrowernumber` (`borrowernumber`),
603
  `privacy` integer(11) DEFAULT '1' NOT NULL, -- patron/borrower's privacy settings related to their checkout history  KEY `borrowernumber` (`borrowernumber`),
604
  `privacy_guarantor_fines` tinyint(1) NOT NULL DEFAULT '0', -- controls if relatives can see this patron's fines
604
  `privacy_guarantor_fines` tinyint(1) NOT NULL DEFAULT '0', -- controls if relatives can see this patron's fines
605
  `privacy_guarantor_checkouts` tinyint(1) NOT NULL DEFAULT '0', -- controls if relatives can see this patron's checkouts
605
  `privacy_guarantor_checkouts` tinyint(1) NOT NULL DEFAULT '0', -- controls if relatives can see this patron's checkouts
606
  `checkprevcheckout` varchar(7) NOT NULL default 'inherit', -- produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'.
606
  `checkprevcheckout` varchar(7) NOT NULL default 'inherit', -- produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'.
Lines 1526-1532 CREATE TABLE `borrowers` ( -- this table includes information about your patrons Link Here
1526
  `altcontactphone` MEDIUMTEXT default NULL, -- the phone number for the alternate contact for the patron/borrower
1526
  `altcontactphone` MEDIUMTEXT default NULL, -- the phone number for the alternate contact for the patron/borrower
1527
  `smsalertnumber` varchar(50) default NULL, -- the mobile phone number where the patron/borrower would like to receive notices (if SMS turned on)
1527
  `smsalertnumber` varchar(50) default NULL, -- the mobile phone number where the patron/borrower would like to receive notices (if SMS turned on)
1528
  `sms_provider_id` int(11) DEFAULT NULL, -- the provider of the mobile phone number defined in smsalertnumber
1528
  `sms_provider_id` int(11) DEFAULT NULL, -- the provider of the mobile phone number defined in smsalertnumber
1529
  `privacy` integer(11) DEFAULT '1' NOT NULL, -- patron/borrower's privacy settings related to their reading history
1529
  `privacy` integer(11) DEFAULT '1' NOT NULL, -- patron/borrower's privacy settings related to their checkout history
1530
  `privacy_guarantor_fines` tinyint(1) NOT NULL DEFAULT '0', -- controls if relatives can see this patron's fines
1530
  `privacy_guarantor_fines` tinyint(1) NOT NULL DEFAULT '0', -- controls if relatives can see this patron's fines
1531
  `privacy_guarantor_checkouts` tinyint(1) NOT NULL DEFAULT '0', -- controls if relatives can see this patron's checkouts
1531
  `privacy_guarantor_checkouts` tinyint(1) NOT NULL DEFAULT '0', -- controls if relatives can see this patron's checkouts
1532
  `checkprevcheckout` varchar(7) NOT NULL default 'inherit', -- produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'.
1532
  `checkprevcheckout` varchar(7) NOT NULL default 'inherit', -- produce a warning for this patron if this item has previously been checked out to this patron if 'yes', not if 'no', defer to category setting if 'inherit'.
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-4 / +4 lines)
Lines 53-59 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
53
('AmazonCoverImages','0','','Display Cover Images in staff interface from Amazon Web Services','YesNo'),
53
('AmazonCoverImages','0','','Display Cover Images in staff interface from Amazon Web Services','YesNo'),
54
('AmazonLocale','US','US|CA|DE|FR|IN|JP|UK','Use to set the Locale of your Amazon.com Web Services','Choice'),
54
('AmazonLocale','US','US|CA|DE|FR|IN|JP|UK','Use to set the Locale of your Amazon.com Web Services','Choice'),
55
('AnonSuggestions','0',NULL,'Set to enable Anonymous suggestions to AnonymousPatron borrowernumber','YesNo'),
55
('AnonSuggestions','0',NULL,'Set to enable Anonymous suggestions to AnonymousPatron borrowernumber','YesNo'),
56
('AnonymousPatron','0',NULL,'Set the identifier (borrowernumber) of the anonymous patron. Used for Suggestion and reading history privacy',''),
56
('AnonymousPatron','0',NULL,'Set the identifier (borrowernumber) of the anonymous patron. Used for suggestion and checkout history privacy',''),
57
('ArticleRequests', '0', NULL, 'Enables the article request feature', 'YesNo'),
57
('ArticleRequests', '0', NULL, 'Enables the article request feature', 'YesNo'),
58
('ArticleRequestsLinkControl', 'calc', 'always|calc', 'Control display of article request link on search results', 'Choice'),
58
('ArticleRequestsLinkControl', 'calc', 'always|calc', 'Control display of article request link on search results', 'Choice'),
59
('ArticleRequestsMandatoryFields', '', NULL, 'Comma delimited list of required fields for bibs where article requests rule = ''yes''', 'multiple'),
59
('ArticleRequestsMandatoryFields', '', NULL, 'Comma delimited list of required fields for bibs where article requests rule = ''yes''', 'multiple'),
Lines 268-274 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
268
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
268
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),
269
('IntranetNav','','70|10','Use HTML tabs to add navigational links to the top-hand navigational bar in the staff interface','Textarea'),
269
('IntranetNav','','70|10','Use HTML tabs to add navigational links to the top-hand navigational bar in the staff interface','Textarea'),
270
('IntranetNumbersPreferPhrase','0',NULL,'Control the use of phr operator in callnumber and standard number staff interface searches','YesNo'),
270
('IntranetNumbersPreferPhrase','0',NULL,'Control the use of phr operator in callnumber and standard number staff interface searches','YesNo'),
271
('intranetreadinghistory','1','','If ON, Reading History is enabled for all patrons','YesNo'),
271
('intranetreadinghistory','1','','If ON, Checkout history is enabled for all patrons','YesNo'),
272
('IntranetReportsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
272
('IntranetReportsHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
273
('IntranetSlipPrinterJS','','','Use this JavaScript for printing slips. Define at least function printThenClose(). For use e.g. with Firefox PlugIn jsPrintSetup, see http://jsprintsetup.mozdev.org/','Free'),
273
('IntranetSlipPrinterJS','','','Use this JavaScript for printing slips. Define at least function printThenClose(). For use e.g. with Firefox PlugIn jsPrintSetup, see http://jsprintsetup.mozdev.org/','Free'),
274
('intranetstylesheet','','50','Enter a complete URL to use an alternate layout stylesheet in Intranet','free'),
274
('intranetstylesheet','','50','Enter a complete URL to use an alternate layout stylesheet in Intranet','free'),
Lines 419-425 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
419
('OpacMaxItemsToDisplay','50','','Max items to display at the OPAC on a biblio detail','Integer'),
419
('OpacMaxItemsToDisplay','50','','Max items to display at the OPAC on a biblio detail','Integer'),
420
('OpacMetaDescription','','','This description will show in search engine results (160 characters).','Textarea'),
420
('OpacMetaDescription','','','This description will show in search engine results (160 characters).','Textarea'),
421
('OpacMoreSearches', '', NULL, 'Add additional elements to the OPAC more searches bar', 'Textarea'),
421
('OpacMoreSearches', '', NULL, 'Add additional elements to the OPAC more searches bar', 'Textarea'),
422
('OPACMySummaryHTML','','70|10','Enter the HTML that will appear in a column on the \'my summary\' and \'my reading history\' tabs when a user is logged in to the OPAC. Enter {BIBLIONUMBER}, {TITLE}, {AUTHOR}, or {ISBN} in place of their respective variables in the HTML. Leave blank to disable.','Textarea'),
422
('OPACMySummaryHTML','','70|10','Enter the HTML that will appear in a column on the \'my summary\' and \'my checkout history\' tabs when a user is logged in to the OPAC. Enter {BIBLIONUMBER}, {TITLE}, {AUTHOR}, or {ISBN} in place of their respective variables in the HTML. Leave blank to disable.','Textarea'),
423
('OPACMySummaryNote','','','Note to display on the patron summary page. This note only appears if the patron is connected.','Free'),
423
('OPACMySummaryNote','','','Note to display on the patron summary page. This note only appears if the patron is connected.','Free'),
424
('OpacNav','Important links here.','70|10','Use HTML tags to add navigational links to the left-hand navigational bar in OPAC','Textarea'),
424
('OpacNav','Important links here.','70|10','Use HTML tags to add navigational links to the left-hand navigational bar in OPAC','Textarea'),
425
('OpacNavBottom','Important links here.','70|10','Use HTML tags to add navigational links to the left-hand navigational bar in OPAC','Textarea'),
425
('OpacNavBottom','Important links here.','70|10','Use HTML tags to add navigational links to the left-hand navigational bar in OPAC','Textarea'),
Lines 432-438 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
432
('OpacPasswordChange','1',NULL,'If ON, enables patron-initiated password change in OPAC (disable it when using LDAP auth)','YesNo'),
432
('OpacPasswordChange','1',NULL,'If ON, enables patron-initiated password change in OPAC (disable it when using LDAP auth)','YesNo'),
433
('OPACPatronDetails','1','','If OFF the patron details tab in the OPAC is disabled.','YesNo'),
433
('OPACPatronDetails','1','','If OFF the patron details tab in the OPAC is disabled.','YesNo'),
434
('OPACpatronimages','0',NULL,'Enable patron images in the OPAC','YesNo'),
434
('OPACpatronimages','0',NULL,'Enable patron images in the OPAC','YesNo'),
435
('OpacPrivacy','0',NULL,'if ON, allows patrons to define their privacy rules (reading history)','YesNo'),
435
('OpacPrivacy','0',NULL,'if ON, allows patrons to define their privacy rules (checkout history)','YesNo'),
436
('OpacPublic','1',NULL,'Turn on/off public OPAC','YesNo'),
436
('OpacPublic','1',NULL,'Turn on/off public OPAC','YesNo'),
437
('opacreadinghistory','1','','If ON, enables display of Patron Circulation History in OPAC','YesNo'),
437
('opacreadinghistory','1','','If ON, enables display of Patron Circulation History in OPAC','YesNo'),
438
('OpacRenewalAllowed','0',NULL,'If ON, users can renew their issues directly from their OPAC account','YesNo'),
438
('OpacRenewalAllowed','0',NULL,'If ON, users can renew their issues directly from their OPAC account','YesNo'),
(-)a/installer/data/mysql/mandatory/userpermissions.sql (-1 / +1 lines)
Lines 87-93 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
87
   (13, 'export_catalog', 'Export bibliographic and holdings data'),
87
   (13, 'export_catalog', 'Export bibliographic and holdings data'),
88
   (13, 'import_patrons', 'Import patron data'),
88
   (13, 'import_patrons', 'Import patron data'),
89
   (13, 'edit_patrons', 'Perform batch modification of patrons'),
89
   (13, 'edit_patrons', 'Perform batch modification of patrons'),
90
   (13, 'delete_anonymize_patrons', 'Delete old borrowers and anonymize circulation history (deletes borrower reading history)'),
90
   (13, 'delete_anonymize_patrons', 'Delete old borrowers and anonymize circulation history (deletes borrower checkout history)'),
91
   (13, 'batch_extend_due_dates', 'Perform batch extend due dates'),
91
   (13, 'batch_extend_due_dates', 'Perform batch extend due dates'),
92
   (13, 'batch_upload_patron_images', 'Upload patron images in a batch or one at a time'),
92
   (13, 'batch_upload_patron_images', 'Upload patron images in a batch or one at a time'),
93
   (13, 'schedule_tasks', 'Schedule tasks to run'),
93
   (13, 'schedule_tasks', 'Schedule tasks to run'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (-1 / +1 lines)
Lines 427-433 Link Here
427
        <span class="permissioncode">([% name | html %])</span>
427
        <span class="permissioncode">([% name | html %])</span>
428
    [%- CASE 'delete_anonymize_patrons' -%]
428
    [%- CASE 'delete_anonymize_patrons' -%]
429
        <span class="sub_permission delete_anonymize_patrons_subpermission">
429
        <span class="sub_permission delete_anonymize_patrons_subpermission">
430
            Delete old borrowers and anonymize circulation history (deletes borrower reading history)
430
            Delete old borrowers and anonymize circulation history (deletes borrower checkout history)
431
        </span>
431
        </span>
432
        <span class="permissioncode">([% name | html %])</span>
432
        <span class="permissioncode">([% name | html %])</span>
433
    [%- CASE 'batch_extend_due_dates' -%]
433
    [%- CASE 'batch_extend_due_dates' -%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-3 / +3 lines)
Lines 261-267 OPAC: Link Here
261
              type: textarea
261
              type: textarea
262
              class: code
262
              class: code
263
        -
263
        -
264
            - 'Include a "Links" column on the "my summary" and "my reading history" tabs when a patron is logged in to the OPAC, with the following HTML (leave blank to disable):'
264
            - 'Include a "Links" column on the "my summary" and "my checkout history" tabs when a patron is logged in to the OPAC, with the following HTML (leave blank to disable):'
265
            - '<br />Note: The placeholders {BIBLIONUMBER}, {TITLE}, {ISBN} and {AUTHOR} will be replaced with information from the displayed record.'
265
            - '<br />Note: The placeholders {BIBLIONUMBER}, {TITLE}, {ISBN} and {AUTHOR} will be replaced with information from the displayed record.'
266
            - pref: OPACMySummaryHTML
266
            - pref: OPACMySummaryHTML
267
              type: textarea
267
              type: textarea
Lines 710-716 OPAC: Link Here
710
              choices:
710
              choices:
711
                  yes: Allow
711
                  yes: Allow
712
                  no: "Don't allow"
712
                  no: "Don't allow"
713
            - "patrons to choose their own privacy settings for their reading history. This requires opacreadinghistory and AnonymousPatron system preferences."
713
            - "patrons to choose their own privacy settings for their checkout history. This requires opacreadinghistory and AnonymousPatron system preferences."
714
        -
714
        -
715
            - pref: AllowPatronToSetCheckoutsVisibilityForGuarantor
715
            - pref: AllowPatronToSetCheckoutsVisibilityForGuarantor
716
              default: 0
716
              default: 0
Lines 729-735 OPAC: Link Here
729
            - Use borrowernumber
729
            - Use borrowernumber
730
            - pref: AnonymousPatron
730
            - pref: AnonymousPatron
731
              class: integer
731
              class: integer
732
            - "as the anonymous patron (for anonymous suggestions and reading history)."
732
            - "as the anonymous patron (for anonymous suggestions and checkout history)."
733
        -
733
        -
734
            - pref: TrackClicks
734
            - pref: TrackClicks
735
              default: 0
735
              default: 0
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-1 / +1 lines)
Lines 20-26 Patrons: Link Here
20
           choices:
20
           choices:
21
               yes: "Allow"
21
               yes: "Allow"
22
               no: "Don't allow"
22
               no: "Don't allow"
23
         - "staff to access a patron's checkout and hold history (reading history is still stored, regardless of staff being allowed access or not)."
23
         - "staff to access a patron's checkout and hold history (checkout history is still stored, regardless of staff being allowed access or not)."
24
     -
24
     -
25
         - The late fine for all checkouts will only go up to
25
         - The late fine for all checkouts will only go up to
26
         - pref: MaxFine
26
         - pref: MaxFine
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/usermenu.inc (-1 / +1 lines)
Lines 63-69 Link Here
63
                [% ELSE %]
63
                [% ELSE %]
64
                    <li>
64
                    <li>
65
                [% END %]
65
                [% END %]
66
                <a href="/cgi-bin/koha/opac-readingrecord.pl">your reading history</a></li>
66
                <a href="/cgi-bin/koha/opac-readingrecord.pl">your checkout history</a></li>
67
                [% IF ( OPACPrivacy ) %]
67
                [% IF ( OPACPrivacy ) %]
68
                    [% IF ( privacyview ) %]
68
                    [% IF ( privacyview ) %]
69
                        <li class="active">
69
                        <li class="active">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt (-9 / +8 lines)
Lines 35-45 Link Here
35
                    <h2>Your privacy management</h2>
35
                    <h2>Your privacy management</h2>
36
36
37
                    [% IF deleted %]
37
                    [% IF deleted %]
38
                        <div class="alert alert-success">Your reading history has been deleted.</div>
38
                        <div class="alert alert-success">Your checkout history has been deleted.</div>
39
                    [% ELSIF history_not_deleted %]
39
                    [% ELSIF history_not_deleted %]
40
                        <div class="alert alert-warning">The deletion of your reading history failed, because there is a problem with the configuration of this feature. Please help to fix the system by informing your library of this error</div>
40
                        <div class="alert alert-warning">The deletion of your checkout history failed, because there is a problem with the configuration of this feature. Please help to fix the system by informing your library of this error</div>
41
                    [% ELSIF nothing_to_delete %]
41
                    [% ELSIF nothing_to_delete %]
42
                        <div class="alert alert-warning">No reading history to delete</div>
42
                        <div class="alert alert-warning">No checkout history to delete</div>
43
                    [% END %]
43
                    [% END %]
44
44
45
                    [% IF ( privacy_updated ) %]
45
                    [% IF ( privacy_updated ) %]
Lines 47-58 Link Here
47
                    [% END %]
47
                    [% END %]
48
48
49
                    [% IF ( Ask_data ) %]
49
                    [% IF ( Ask_data ) %]
50
                        <p>We take great care in protecting your privacy. On this screen, you can define how long we keep your reading history.</p>
50
                        <p>We take great care in protecting your privacy. On this screen, you can define how long we keep your checkout history.</p>
51
                        <p>Your options are: <p>
51
                        <p>Your options are: <p>
52
                        <ul id="opac-privacy-options-list">
52
                        <ul id="opac-privacy-options-list">
53
                            <li class="privacy0">Forever: keep my reading history without limit. This is the option for users who want to keep track of what they are reading.</li>
53
                            <li class="privacy0">Forever: keep my checkout history without limit. This is the option for users who want to keep track of what they are reading.</li>
54
                            <li class="privacy1">Default: keep my reading history according to local laws. This is the default option : the library will keep your reading history for the duration permitted by local laws.</li>
54
                            <li class="privacy1">Default: keep my checkout history according to local laws. This is the default option : the library will keep your checkout history for the duration permitted by local laws.</li>
55
                            <li class="privacy2">Never: Delete my reading history immediately. This will delete all record of the item that was checked-out upon check-in.</li>
55
                            <li class="privacy2">Never: Delete my checkout history immediately. This will delete all record of the item that was checked-out upon check-in.</li>
56
                        </ul>
56
                        </ul>
57
                        <p id="note1">Please note that information on any book still checked-out must be kept by the library no matter which privacy option you choose.</p>
57
                        <p id="note1">Please note that information on any book still checked-out must be kept by the library no matter which privacy option you choose.</p>
58
                        <p id="note2">Please also note that the library staff can't update these values for you: it's your privacy!</p>
58
                        <p id="note2">Please also note that the library staff can't update these values for you: it's your privacy!</p>
Lines 138-144 Link Here
138
138
139
                        <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-form">
139
                        <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-form">
140
                            <input type="hidden" name="op" value="delete_record" />
140
                            <input type="hidden" name="op" value="delete_record" />
141
                            <p>Whatever your privacy rule you choose, you can delete all your reading history immediately by clicking here. <strong>BE CAREFUL</strong>. Once you've confirmed the deletion, no one can retrieve the list!</p>
141
                            <p>Whatever your privacy rule you choose, you can delete all your checkout history immediately by clicking here. <strong>BE CAREFUL</strong>. Once you've confirmed the deletion, no one can retrieve the list!</p>
142
                            <fieldset class="action">
142
                            <fieldset class="action">
143
                                <input type="submit" value="Immediate deletion" class="btn btn-danger" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" />
143
                                <input type="submit" value="Immediate deletion" class="btn btn-danger" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" />
144
                            </fieldset>
144
                            </fieldset>
145
- 

Return to bug 26718