Browse Source

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>
18.11.x
Martin Renvoize 6 years ago
committed by Nick Clemens
parent
commit
7426fab45e
  1. 12
      installer/data/mysql/atomicupdate/bug_20312.perl
  2. 1
      installer/data/mysql/sysprefs.sql
  3. 2
      koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
  4. 6
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref

12
installer/data/mysql/atomicupdate/bug_20312.perl

@ -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";
}

1
installer/data/mysql/sysprefs.sql

@ -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'),

2
koha-tmpl/intranet-tmpl/prog/en/includes/header.inc

@ -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>

6
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_client.pref

@ -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:

Loading…
Cancel
Save