Bug 20312: (QA follow-up) Make display syspref driven

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Martin Renvoize 2018-10-31 13:53:16 +00:00 committed by Nick Clemens
parent 587e12100f
commit 7426fab45e
4 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,12 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
# System preferences
$dbh->do(q{
INSERT IGNORE INTO `systempreferences` (`variable`,`value`,`explanation`,`options`,`type`)
VALUES ('showLastPatron','0','','If ON, enables the last patron feature in the intranet','YesNo');
});
# Always end with this (adjust the bug info)
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 20312 - Add showLastPatron systempreference)\n";
}

View file

@ -516,6 +516,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('ShelfBrowserUsesHomeBranch','1','1','Use the item home branch when finding items for the shelf browser.','YesNo'),
('ShelfBrowserUsesLocation','1','1','Use the item location when finding items for the shelf browser.','YesNo'),
('ShowAllCheckins', '0', '', 'Show all checkins', 'YesNo'),
('showLastPatron','0','','If ON, enables the last patron feature in the intranet','YesNo'),
('ShowPatronImageInWebBasedSelfCheck','0','','If ON, displays patron image when a patron uses web-based self-checkout','YesNo'),
('ShowReviewer','full','none|full|first|surname|firstandinitial|username','Choose how a commenter\'s identity is presented alongside comments in the OPAC','Choice'),
('ShowReviewerPhoto','1','','If ON, photo of reviewer will be shown beside comments in OPAC','YesNo'),

View file

@ -148,6 +148,6 @@
[% END %]
</ul>
</div>
[% INCLUDE 'last-borrower.inc' %]
[% IF Koha.Preference('showLastPatron') %][% INCLUDE 'last-borrower.inc' %][% END %]
[% IF ( intranetbookbag ) %]<div id="cartDetails">Your cart is empty.</div>[% END %]
</div>

View file

@ -137,6 +137,12 @@ Staff Client:
no: Show
yes: "Don't show"
- the names of patrons that have items checked out or on hold on detail pages or the "Place Hold" screen.
-
- pref: showLastPatron
choices:
no: "Don't show"
yes: Show
- a link to the last searched patron in the staff client.
-
- pref: intranetbookbag
choices: