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

(-)a/installer/data/mysql/atomicupdate/bug_xxxxx.perl (+14 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{
4
        INSERT IGNORE INTO systempreferences
5
            ( variable, value, options, explanation, type )
6
        VALUES
7
            ('CustomCoverImages','0',NULL,'If enabled, the custom cover images will be displayed in the staff client. CustomCoverImagesURL must be defined.','YesNo'),
8
            ('OPACCustomCoverImages','0',NULL,'If enabled, the custom cover images will be displayed at the OPAC. CustomCoverImagesURL must be defined.','YesNo'),
9
            ('CustomCoverImagesURL','',NULL,'Define an URL serving book cover images, using the following patterns: %issn%, %isbn%, FIXME ADD MORE (use it with CustomCoverImages and/or OPACCustomCoverImages)','free')
10
    });
11
12
    SetVersion( $DBversion );
13
    print "Upgrade to $DBversion done (Bug XXXXX - Add new pref *CustomCoverImages*)\n";
14
}
(-)a/installer/data/mysql/sysprefs.sql (+3 lines)
Lines 125-130 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
125
('CronjobLog','0',NULL,'If ON, log information from cron jobs.','YesNo'),
125
('CronjobLog','0',NULL,'If ON, log information from cron jobs.','YesNo'),
126
('CumulativeRestrictionPeriods',0,NULL,'Cumulate the restriction periods instead of keeping the highest','YesNo'),
126
('CumulativeRestrictionPeriods',0,NULL,'Cumulate the restriction periods instead of keeping the highest','YesNo'),
127
('CurrencyFormat','US','US|FR|CH','Determines the display format of currencies. eg: \'36000\' is displayed as \'360 000,00\'  in \'FR\' or \'360,000.00\'  in \'US\'.','Choice'),
127
('CurrencyFormat','US','US|FR|CH','Determines the display format of currencies. eg: \'36000\' is displayed as \'360 000,00\'  in \'FR\' or \'360,000.00\'  in \'US\'.','Choice'),
128
('CustomCoverImages','0',NULL,'If enabled, the custom cover images will be displayed in the staff client. CustomCoverImagesURL must be defined.','YesNo'),
129
('CustomCoverImagesURL','',NULL,'Define an URL serving book cover images, using the following patterns: %issn%, %isbn%, FIXME ADD MORE (use it with CustomCoverImages and/or OPACCustomCoverImages)','free'),
128
('dateformat','us','metric|us|iso|dmydot','Define global date format (us mm/dd/yyyy, metric dd/mm/yyy, ISO yyyy-mm-dd, dmydot dd.mm.yyyy)','Choice'),
130
('dateformat','us','metric|us|iso|dmydot','Define global date format (us mm/dd/yyyy, metric dd/mm/yyy, ISO yyyy-mm-dd, dmydot dd.mm.yyyy)','Choice'),
129
('DebugLevel','2','0|1|2','Define the level of debugging information sent to the browser when errors are encountered (set to 0 in production). 0=none, 1=some, 2=most','Choice'),
131
('DebugLevel','2','0|1|2','Define the level of debugging information sent to the browser when errors are encountered (set to 0 in production). 0=none, 1=some, 2=most','Choice'),
130
('decreaseLoanHighHolds',NULL,'','Decreases the loan period for items with number of holds above the threshold specified in decreaseLoanHighHoldsValue','YesNo'),
132
('decreaseLoanHighHolds',NULL,'','Decreases the loan period for items with number of holds above the threshold specified in decreaseLoanHighHoldsValue','YesNo'),
Lines 344-349 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
344
('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search results from the OPAC detail page.','YesNo'),
346
('OpacBrowseResults','1',NULL,'Disable/enable browsing and paging search results from the OPAC detail page.','YesNo'),
345
('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
347
('OpacCloud','0',NULL,'If ON, enables subject cloud on OPAC','YesNo'),
346
('OpacAdditionalStylesheet','','','Define an auxiliary stylesheet for OPAC use, to override specified settings from the primary opac.css stylesheet. Enter the filename (if the file is in the server\'s css directory) or a complete URL beginning with http (if the file lives on a remote server).','free'),
348
('OpacAdditionalStylesheet','','','Define an auxiliary stylesheet for OPAC use, to override specified settings from the primary opac.css stylesheet. Enter the filename (if the file is in the server\'s css directory) or a complete URL beginning with http (if the file lives on a remote server).','free'),
349
('OPACCustomCoverImages','0',NULL,'If enabled, the custom cover images will be displayed at the OPAC. CustomCoverImagesURL must be defined.','YesNo'),
347
('OpacCustomSearch','','70|10','Replace the search box on the OPAC with the provided HTML','Textarea'),
350
('OpacCustomSearch','','70|10','Replace the search box on the OPAC with the provided HTML','Textarea'),
348
('opaccredits','','70|10','Define HTML Credits at the bottom of the OPAC page','Textarea'),
351
('opaccredits','','70|10','Define HTML Credits at the bottom of the OPAC page','Textarea'),
349
('OPACdefaultSortField','relevance','relevance|popularity|call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
352
('OPACdefaultSortField','relevance','relevance|popularity|call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref (-2 / +16 lines)
Lines 313-319 Enhanced Content: Link Here
313
            - pref: TagsExternalDictionary
313
            - pref: TagsExternalDictionary
314
              class: file
314
              class: file
315
            - on the server to be approved without moderation.
315
            - on the server to be approved without moderation.
316
    Local Cover Images:
316
    Local or remote cover images:
317
        -
317
        -
318
            - pref: LocalCoverImages
318
            - pref: LocalCoverImages
319
              choices:
319
              choices:
Lines 332-337 Enhanced Content: Link Here
332
                  yes: Allow
332
                  yes: Allow
333
                  no: "Don't allow"
333
                  no: "Don't allow"
334
            - multiple images to be attached to each bibliographic record.
334
            - multiple images to be attached to each bibliographic record.
335
        -
336
            - pref: CustomCoverImages
337
              choices:
338
                  yes: Display
339
                  no: "Don't display"
340
            - "custom remote url images in the staff client.<br/>"
341
            - pref: OPACCustomCoverImages
342
              choices:
343
                  yes: Display
344
                  no: "Don't display"
345
            - "custom remote url images at the OPAC.<br/>"
346
            - "Using the following URL:"
347
            - pref: CustomCoverImagesURL
348
              class: url
349
            - "You can defined it using the following patterns: %isbn%, %issn%."
335
    HTML5 Media:
350
    HTML5 Media:
336
        -
351
        -
337
            - Show a tab with a HTML5 media player for files catalogued in field 856
352
            - Show a tab with a HTML5 media player for files catalogued in field 856
338
- 

Return to bug 22445