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

(-)a/installer/data/mysql/atomicupdate/bug_21068.perl (+14 lines)
Line 0 Link Here
1
$DBversion = 'XXX';  # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
4
    my $dbh = C4::Context->dbh;
5
    unless ( C4::Context->preference('NorwegianPatronDBEnable') ) {
6
        $dbh->do(q|
7
            DELETE FROM systempreferences
8
            WHERE variable IN ('NorwegianPatronDBEnable', 'NorwegianPatronDBEndpoint', 'NorwegianPatronDBUsername', 'NorwegianPatronDBPassword', 'NorwegianPatronDBSearchNLAfterLocalHit')
9
        |);
10
    }
11
12
    SetVersion( $DBversion );
13
    print "Upgrade to $DBversion done (Bug 21068 - Remove system preferences NorwegianPatronDB*)\n";
14
}
(-)a/installer/data/mysql/sysprefs.sql (-5 lines)
Lines 282-292 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
282
('noissuescharge','5','','Define maximum amount withstanding before check outs are blocked','Integer'),
282
('noissuescharge','5','','Define maximum amount withstanding before check outs are blocked','Integer'),
283
('NoIssuesChargeGuarantees','','','Define maximum amount withstanding before check outs are blocked','Integer'),
283
('NoIssuesChargeGuarantees','','','Define maximum amount withstanding before check outs are blocked','Integer'),
284
('noItemTypeImages','0',NULL,'If ON, disables item-type images','YesNo'),
284
('noItemTypeImages','0',NULL,'If ON, disables item-type images','YesNo'),
285
('NorwegianPatronDBEnable','0',NULL,'Enable communication with the Norwegian national patron database.', 'YesNo'),
286
('NorwegianPatronDBEndpoint','',NULL,'Which NL endpoint to use.', 'Free'),
287
('NorwegianPatronDBUsername','',NULL,'Username for communication with the Norwegian national patron database.','Free'),
288
('NorwegianPatronDBPassword','',NULL,'Password for communication with the Norwegian national patron database.','Free'),
289
('NorwegianPatronDBSearchNLAfterLocalHit','0',NULL,'Search NL if a search has already given one or more local hits?.','YesNo'),
290
('NotesBlacklist','',NULL,'List of notes fields that should not appear in the title notes/description separator of details','free'),
285
('NotesBlacklist','',NULL,'List of notes fields that should not appear in the title notes/description separator of details','free'),
291
('NotHighlightedWords','and|or|not',NULL,'List of words to NOT highlight when OpacHitHighlight is enabled','free'),
286
('NotHighlightedWords','and|or|not',NULL,'List of words to NOT highlight when OpacHitHighlight is enabled','free'),
292
('NoticeBcc','','','Email address to bcc outgoing notices sent by email','free'),
287
('NoticeBcc','','','Email address to bcc outgoing notices sent by email','free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-23 lines)
Lines 211-235 Patrons: Link Here
211
               yes: Allow only superlibrarians
211
               yes: Allow only superlibrarians
212
               no: Allow all permitted users
212
               no: Allow all permitted users
213
         - "to access/change superlibrarian privileges. Note: A permitted user needs to have the 'permissions' flag (if no superlibrarian)."
213
         - "to access/change superlibrarian privileges. Note: A permitted user needs to have the 'permissions' flag (if no superlibrarian)."
214
215
    "Norwegian patron database":
216
     -
217
         - pref: NorwegianPatronDBEnable
218
           choices:
219
               yes: Enable
220
               no: Disable
221
         - the ability to communicate with the Norwegian national patron database via the
222
         - pref: NorwegianPatronDBEndpoint
223
         - endpoint.
224
     -
225
         - Communicate with the Norwegian national patron database using the username
226
         - pref: NorwegianPatronDBUsername
227
         - and the password
228
         - pref: NorwegianPatronDBPassword
229
         - . You can get these from "Base Bibliotek", which is maintained by the Norwegian National Library.
230
     -
231
         - pref: NorwegianPatronDBSearchNLAfterLocalHit
232
           choices:
233
               yes: Do
234
               no: "Don't"
235
         - search the Norwegian national patron database after a local search result was found.
236
- 

Return to bug 21068