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

(-)a/C4/Auth.pm (+2 lines)
Lines 421-426 sub get_template_and_user { Link Here
421
        "BiblioDefaultView" . C4::Context->preference("BiblioDefaultView") => 1,
421
        "BiblioDefaultView" . C4::Context->preference("BiblioDefaultView") => 1,
422
        EnhancedMessagingPreferences                                       => C4::Context->preference('EnhancedMessagingPreferences'),
422
        EnhancedMessagingPreferences                                       => C4::Context->preference('EnhancedMessagingPreferences'),
423
        GoogleJackets                                                      => C4::Context->preference("GoogleJackets"),
423
        GoogleJackets                                                      => C4::Context->preference("GoogleJackets"),
424
        BDSOpacEnable                                                      => C4::Context->preference("BDSOpacEnable"),
425
        BDSStaffEnable                                                      => C4::Context->preference("BDSStaffEnable"),
424
        OpenLibraryCovers                                                  => C4::Context->preference("OpenLibraryCovers"),
426
        OpenLibraryCovers                                                  => C4::Context->preference("OpenLibraryCovers"),
425
        KohaAdminEmailAddress                                              => "" . C4::Context->preference("KohaAdminEmailAddress"),
427
        KohaAdminEmailAddress                                              => "" . C4::Context->preference("KohaAdminEmailAddress"),
426
        LoginBranchcode => ( C4::Context->userenv ? C4::Context->userenv->{"branch"}    : undef ),
428
        LoginBranchcode => ( C4::Context->userenv ? C4::Context->userenv->{"branch"}    : undef ),
(-)a/installer/data/mysql/atomicupdate/BDS.perl (+14 lines)
Line 0 Link Here
1
$DBversion = 'XXX';  # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    # you can use $dbh here like:
4
    $dbh->do( "INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('BDSOpacEnable', '0', 'Enable or disable BDS enhanced content in the OPAC', NULL, 'YesNo'),('BDSStaffEnable', '0', 'Enable or disable BDS enhanced content in the Staff Interface', NULL, 'YesNo'),('DBMCode','','NULL','BDS Customer DBM Code','Free');" );
5
6
    # or perform some test and warn
7
    # if( !column_exists( 'biblio', 'biblionumber' ) ) {
8
    #    warn "There is something wrong";
9
    # }
10
11
    # Always end with this (adjust the bug info)
12
    SetVersion( $DBversion );
13
    print "Upgrade to $DBversion done (Bug XXXXX - description)\n";
14
}
(-)a/installer/data/mysql/sysprefs.sql (+3 lines)
Lines 78-83 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
78
('BasketConfirmations','1','always ask for confirmation.|do not ask for confirmation.','When closing or reopening a basket,','Choice'),
78
('BasketConfirmations','1','always ask for confirmation.|do not ask for confirmation.','When closing or reopening a basket,','Choice'),
79
('BatchCheckouts','0','','Enable or disable batch checkouts','YesNo'),
79
('BatchCheckouts','0','','Enable or disable batch checkouts','YesNo'),
80
('BatchCheckoutsValidCategories','',NULL,'Patron categories allowed to checkout in a batch','Free'),
80
('BatchCheckoutsValidCategories','',NULL,'Patron categories allowed to checkout in a batch','Free'),
81
('BDSOpacEnable','0','NULL','Enable or disable BDS enhanced content in the OPAC','YesNo'),
82
('BDSStaffEnable','0','NULL','Enable or disable BDS enhanced content in the Staff Interface','YesNo'),
83
('DBMCode','','NULL','BDS Customer DBM Code','Free'),
81
('BiblioAddsAuthorities','0',NULL,'If ON, adding a new biblio will check for an existing authority record and create one on the fly if one doesn\'t exist','YesNo'),
84
('BiblioAddsAuthorities','0',NULL,'If ON, adding a new biblio will check for an existing authority record and create one on the fly if one doesn\'t exist','YesNo'),
82
('BiblioDefaultView','normal','normal|marc|isbd','Choose the default detail view in the catalog; choose between normal, marc or isbd','Choice'),
85
('BiblioDefaultView','normal','normal|marc|isbd','Choose the default detail view in the catalog; choose between normal, marc or isbd','Choice'),
83
('BibtexExportAdditionalFields',  '', NULL ,  'Define additional BibTex tags to export from MARC records in YAML format as an associative array with either a marc tag/subfield combination as the value, or a list of tag/subfield combinations.',  'textarea'),
86
('BibtexExportAdditionalFields',  '', NULL ,  'Define additional BibTex tags to export from MARC records in YAML format as an associative array with either a marc tag/subfield combination as the value, or a list of tag/subfield combinations.',  'textarea'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref (-1 / +18 lines)
Lines 79-84 Enhanced Content: Link Here
79
            - pref: BakerTaylorPassword
79
            - pref: BakerTaylorPassword
80
              class: password
80
              class: password
81
            - .
81
            - .
82
    BDS:
83
        -
84
            - pref: BDSOpacEnable
85
              choices:
86
                  yes: Show
87
                  no:  "Don't show"
88
            - BDS enhanced content in the OPAC.
89
        -
90
            - pref: BDSStaffEnable
91
              choices:
92
                  yes: Show
93
                  no:  "Don't show"
94
            - BDS enhanced content in the Staff Interface
95
        - 
96
            - Enter your unique BDS
97
            - pref: DBMCode
98
            - DBM code.
99
82
    Novelist Select:
100
    Novelist Select:
83
        -
101
        -
84
            - pref: NovelistSelectEnabled
102
            - pref: NovelistSelectEnabled
85
- 

Return to bug 19044