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

(-)a/installer/data/mysql/atomicupdate/bug_20312.perl (+12 lines)
Line 0 Link Here
1
$DBversion = 'XXX';  # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    # System preferences
4
    $dbh->do(q{
5
        INSERT IGNORE INTO `systempreferences` (`variable`,`value`,`explanation`,`options`,`type`)
6
        VALUES ('showLastPatron','0','','If ON, enables the last patron feature in the intranet','YesNo');
7
    });
8
9
    # Always end with this (adjust the bug info)
10
    SetVersion( $DBversion );
11
    print "Upgrade to $DBversion done (Bug 20312 - Add showLastPatron systempreference)\n";
12
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 512-517 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
512
('ShelfBrowserUsesHomeBranch','1','1','Use the item home branch when finding items for the shelf browser.','YesNo'),
512
('ShelfBrowserUsesHomeBranch','1','1','Use the item home branch when finding items for the shelf browser.','YesNo'),
513
('ShelfBrowserUsesLocation','1','1','Use the item location when finding items for the shelf browser.','YesNo'),
513
('ShelfBrowserUsesLocation','1','1','Use the item location when finding items for the shelf browser.','YesNo'),
514
('ShowAllCheckins', '0', '', 'Show all checkins', 'YesNo'),
514
('ShowAllCheckins', '0', '', 'Show all checkins', 'YesNo'),
515
('showLastPatron','0','','If ON, enables the last patron feature in the intranet','YesNo'),
515
('ShowPatronImageInWebBasedSelfCheck','0','','If ON, displays patron image when a patron uses web-based self-checkout','YesNo'),
516
('ShowPatronImageInWebBasedSelfCheck','0','','If ON, displays patron image when a patron uses web-based self-checkout','YesNo'),
516
('ShowReviewer','full','none|full|first|surname|firstandinitial|username','Choose how a commenter\'s identity is presented alongside comments in the OPAC','Choice'),
517
('ShowReviewer','full','none|full|first|surname|firstandinitial|username','Choose how a commenter\'s identity is presented alongside comments in the OPAC','Choice'),
517
('ShowReviewerPhoto','1','','If ON, photo of reviewer will be shown beside comments in OPAC','YesNo'),
518
('ShowReviewerPhoto','1','','If ON, photo of reviewer will be shown beside comments in OPAC','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc (-1 / +1 lines)
Lines 148-153 Link Here
148
            [% END %]
148
            [% END %]
149
        </ul>
149
        </ul>
150
    </div>
150
    </div>
151
    [% INCLUDE 'last-borrower.inc' %]
151
    [% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %]
152
    [% IF ( intranetbookbag ) %]<div id="cartDetails">Your cart is empty.</div>[% END %]
152
    [% IF ( intranetbookbag ) %]<div id="cartDetails">Your cart is empty.</div>[% END %]
153
</div>
153
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref (-1 / +6 lines)
Lines 137-142 Staff Client: Link Here
137
                  no: Show
137
                  no: Show
138
                  yes: "Don't show"
138
                  yes: "Don't show"
139
            - the names of patrons that have items checked out or on hold on detail pages or the "Place Hold" screen.
139
            - the names of patrons that have items checked out or on hold on detail pages or the "Place Hold" screen.
140
        -
141
            - pref: showLastPatron
142
              choices:
143
                  no: "Don't show"
144
                  yes: Show
145
            - a link to the last searched patron in the staff client.
140
        -
146
        -
141
            - pref: intranetbookbag
147
            - pref: intranetbookbag
142
              choices:
148
              choices:
143
- 

Return to bug 20312