Browse Source
Removes the OpacHiddenItems.txt file from Koha as this is not accessible for most people and replaces it with links to the wiki page like it's already done from the system preference editor. For reporting and the initial patch Thanks-to: Jane Sandberg <sandbej@linnbenton.edu> To test: - Changes are invisible from the GUI - Apply patch and run database update - SELECT * FROM systempreferences WHERE variable = "OpacHiddenItems"; - Verify the description has the wiki link - Verify that docs/opac/OpacHiddenItems.txt has been removed Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>19.05.x
Katrin Fischer
5 years ago
committed by
root
3 changed files with 7 additions and 13 deletions
@ -1,12 +0,0 @@ |
|||
The OpacHiddenItems syspref allow the user to define custom rules |
|||
for hiding specific items at opac. |
|||
|
|||
YAML syntax is used for defining such rules. |
|||
|
|||
Items can be hidden according to values from the items table: |
|||
|
|||
field: [value1, value2, ...] |
|||
|
|||
Example : |
|||
withdrawn: [0, 1] |
|||
homebranch: [homebranch1, homebranch2] |
@ -0,0 +1,6 @@ |
|||
$DBversion = 'XXX'; # will be replaced by the RM |
|||
if( CheckVersion( $DBversion ) ) { |
|||
$dbh->do( "UPDATE systempreferences SET explanation = 'This syspref allows to define custom rules for hiding specific items at the OPAC. See http://wiki.koha-community.org/wiki/OpacHiddenItems for more information.' WHERE variable = 'OpacHiddenItems'"); |
|||
SetVersion( $DBversion ); |
|||
print "Upgrade to $DBversion done (Bug 8701 - Update OpacHiddenItems system preference description)\n"; |
|||
} |
Loading…
Reference in new issue