From e7c05431f215064aa4d42df17023673cee27e414 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 20 Feb 2019 18:45:44 +0000 Subject: [PATCH] Bug 14576: (follow-up) fix some typos and style Signed-off-by: Liz Rea Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- .../bug_14576_add_UpdateItemLocationOnCheckin.perl | 2 +- .../prog/en/modules/admin/preferences/circulation.pref | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_14576_add_UpdateItemLocationOnCheckin.perl b/installer/data/mysql/atomicupdate/bug_14576_add_UpdateItemLocationOnCheckin.perl index bb165118ed..06f6057471 100644 --- a/installer/data/mysql/atomicupdate/bug_14576_add_UpdateItemLocationOnCheckin.perl +++ b/installer/data/mysql/atomicupdate/bug_14576_add_UpdateItemLocationOnCheckin.perl @@ -1,7 +1,7 @@ $DBversion = 'XXX'; # will be replaced by the RM if( CheckVersion( $DBversion ) ) { $dbh->do(q{ - INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('UpdateItemLocationOnCheckin', 'PROC: _PERM_\n', 'NULL', 'This a list of value pairs. When an item is checked in, if the location value on the left matches the items location value t will be updated to the right-hand value. E.g. ''PROC: FIC'' will cause an item that was set to ''Book Cart'' to now be in the ''Fiction'' shelving location. Note that PROC and CART are special values, for these locations only can location and permanent_location differ. In all other cases an update will affect both. Items in the CART location will be returned to their permanent location on checkout. You can also use the special term _BLANK_ on either side of a pair to update/remove items with no locaiton assigned. You can use the special term _ALL_ on the left side to affect all items and the special term _PERM_ on the right side to return items to their permanent location', 'Free'); + INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('UpdateItemLocationOnCheckin', 'PROC: _PERM_\n', 'NULL', 'This a list of value pairs. When an item is checked in, if the location value on the left matches the items location value t will be updated to the right-hand value. E.g. ''PROC: FIC'' will cause an item that was set to ''Processing Center'' to now be in the ''Fiction'' shelving location. Note that PROC and CART are special values, for these locations only can location and permanent_location differ, in all other cases an update will affect both. Items in the CART location will be returned to their permanent location on checkout. You can also use the special term _BLANK_ on either side of a pair to update/remove items with no locaiton assigned. You can use the special term _ALL_ on the left side to affect all items and the special term _PERM_ on the right side to return items to their permanent location', 'Free'); }); $dbh->do(q{ UPDATE systempreferences s1, (SELECT IF(value,'PROC: CART\n','') AS p2c FROM systempreferences WHERE variable='InProcessingToShelvingCart') s2 SET s1.value= CONCAT(s2.p2c, REPLACE(s1.value,'PROC: _PERM_\n','') ) WHERE s1.variable='UpdateItemLocationOnCheckin' AND s1.value NOT LIKE '%PROC: CART%'; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref index a187e229af..db662cabe6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref @@ -530,13 +530,13 @@ Circulation: - This is is a list of value pairs, the first value is followed immediately by colon space then the second value i.e.:
- "PROC: FIC" -
When an item is checked in, if the location value on the left matches the items location value - - "it will be updated to the right-hand value.
E.g. ''PROC: FIC'' will cause an item that was set to ''Book Cart'' to now be in the ''Fiction'' shelving location." - -
Note that PROC and CART are special values, for these locations only can location and permanent_location differ. In all other cases an update will affect both. - -
Items in the CART location will be returned to their permanent location on checkout - -
You can use the special term _BLANK_ on either side of a pair to update/remove items with no location assigned - -
You can use the special term _ALL_ on the left side to affect all items - - and the special term _PERM_ on the right side to return items to their permanent location - -
**Use of an _ALL_ rule will override/ignore any other values** + - "it will be updated to the right-hand value.
E.g. ''PROC: FIC'' will cause an item that was set to ''Processing Center'' to now be in the ''Fiction'' shelving location." + -
Note that PROC and CART are special values, for these locations only can location and permanent_location differ, in all other cases an update will affect both. + -
Items in the CART location will be returned to their permanent location on checkout. + -
You can use the special term _BLANK_ on either side of a pair to update/remove items with no location assigned. + -
You can use the special term _ALL_ on the left side to affect all items. + - and the special term _PERM_ on the right side to return items to their permanent location. + -
Use of an _ALL_ rule will override/ignore any other values. -
Each pair of values should be on a separate line. - - pref: UpdateNotForLoanStatusOnCheckin -- 2.11.4.GIT