Bug 21158: Add cronjob references to the system preference descriptions if a cronjob...
authorCaroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Fri, 3 Aug 2018 20:03:10 +0000 (16:03 -0400)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 16 Nov 2018 13:12:12 +0000 (13:12 +0000)
This patch adds references to cronjobs in the description of some system preferences.

The following system preference description were modified:
- StaticHoldsQueueWeight
- ExpireReservesMaxPickUpDelay
- AutoResumeSuspendedHolds
- finesMode
- DefaultLongOverdueLostValue
- DefaultLongOverdueChargeValue
- PatronSelfRegistrationExpireTemporaryAccountsDelay
- PatronSelfRegistrationVerifyByEmail
- EnhancedMessagingPreferences
- NewItemsDefaultLocation
- InProcessingToShelvingCart
- ReturnToShelvingCart
- ReturnToShelvingCart
- AuthorityMergeLimit
- OpacBrowser
- OpacCloud
- UsageStats
- PurgeSuggestionsOlderThan
- MembershipExpiryDaysNotice

To test, check the above mentioned system preferences to make sure the sentence is there and it is correct.

Followed test plan and patch is as described
Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

https://bugs.koha-community.org/show_bug.cgi?id=12258

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 380f1dcbf8d3b8e65a733cc3174b9d0c0a46ab7d)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/authorities.pref
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref

index bf5d4bb..cf9209d 100644 (file)
@@ -80,10 +80,9 @@ Acquisitions:
             - Keep accepted or rejected purchase suggestions for a period of
             - pref: PurgeSuggestionsOlderThan
               class: integer
-            - days.
-            - <br>WARNING - Leave this field empty if you don't want to activate this automatic feature.
-            - "<br>Example: [30] Sets purgation of suggestions for those older than 30 days."
-            - <br>(Used when the cronjob purge_suggestions.pl is active and called without a specific number of days)
+            - "days. Example: [30] Sets purgation of suggestions for those older than 30 days."
+            - "<br><strong>WARNING:</strong> Leave this field empty if you don't want to activate this automatic feature."
+            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/purge_suggestions.pl</code> cronjob. Ask you system administrator to schedule it."
 
         -
             - pref: UseACQFrameworkForBiblioRecords
index 2e8dce7..da2a1f8 100644 (file)
@@ -176,12 +176,14 @@ Administration:
               choices:
                   yes: "Yes"
                   no: "No"
-            - "You have to run misc/cronjobs/share_usage_with_koha_community.pl in a cronjob. Note that the other \"UsageStats\" preferences have no effect if this preference is set to \"No\". Website where usage statistics are published: <a href=\"http://hea.koha-community.org\">Hea Koha community website</a>."
+            - ". Website where usage statistics are published: <a href=\"http://hea.koha-community.org\">Hea Koha community website</a>."
+            - "<br><strong>NOTE:</strong> The other \"UsageStats\" preferences have no effect if this preference is set to \"No\"."
+            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/share_usage_with_koha_community.pl</code> cronjob. Ask you system administrator to schedule it."
         -
             - "Use the following library name to be shown on the Hea Community website: "
             - pref: UsageStatsLibraryName
             - If this field is empty data will be sent anonymously.
-            - Note that this value has no effect if the UsageStats system preference is set to "Don't share"
+            - "<br><strong>NOTE:</strong> This value has no effect if the UsageStats system preference is set to \"Don't share\"."
         -
             - "The country where your library is located to be shown on the Hea Community website: "
             - pref: UsageStatsCountry
@@ -384,11 +386,11 @@ Administration:
                 Zimbabwe       : "Zimbabwe"
 
             - This will be shown on the <a href="http://hea.koha-community.org">Hea Koha community website</a>.
-            - Note that this value has no effect if the UsageStats system preference is set to "Don't share"
+            - "<br><strong>NOTE:</strong> This value has no effect if the UsageStats system preference is set to \"Don't share\"."
         -
             - "The library URL to be shown on the Hea Community website: "
             - pref: UsageStatsLibraryUrl
-            - Note that this value has no effect if the UsageStats system preference is set to "Don't share"
+            - "<br><strong>NOTE:</strong> This value has no effect if the UsageStats system preference is set to \"Don't share\"."
         -
             - "The library type to be shown on the Hea Community website: "
             - pref: UsageStatsLibraryType
@@ -405,18 +407,18 @@ Administration:
                   government  : "government"
                   religiousOrg: "religious organization"
                   subscription: "subscription"
-            - Note that this value has no effect if the UsageStats system preference is set to "Don't share"
+            - "<br><strong>NOTE:</strong> This value has no effect if the UsageStats system preference is set to \"Don't share\"."
         -
             - pref: UsageStatsLibrariesInfo
               choices:
                   yes: "Share"
                   no: "Do not Share"
             - "libraries information (name, url, country)"
-            - Note that this value has no effect if the UsageStats system preference is set to "Don't share"
+            - "<br><strong>NOTE:</strong> This value has no effect if the UsageStats system preference is set to \"Don't share\"."
         -
             - "Geolocation of the main library: "
             - pref: UsageStatsGeolocation
-            - Note that this value has no effect if the UsageStats system preference is set to "Don't share"
+            - "<br><strong>NOTE:</strong> This value has no effect if the UsageStats system preference is set to \"Don't share\"."
     Search Engine:
         -
             - "Use following search engine: "
index be480cb..5041f88 100644 (file)
@@ -35,6 +35,7 @@ Authorities:
             - pref: AuthorityMergeLimit
               default: 50
             - records. (Above this limit, the merge_authority cron job will merge them.)
+            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/migration_tools/merge_authority.pl</code> cronjob. Ask you system administrator to schedule it."
         -
             - Use the following text for the contents of MARC21 authority control field 008 position 06-39 (fixed length data elements). Do NOT include the date (position 00-05).
             - pref: MARCAuthorityControlField008
index cc75b6d..f90e671 100644 (file)
@@ -90,6 +90,7 @@ Cataloging:
             - pref: NewItemsDefaultLocation
               class: short
             - (should be a location code, or blank to disable).
+            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/cart_to_shelf.pl</code> cronjob. Ask you system administrator to schedule it."
         -
             - pref: z3950NormalizeAuthor
               choices:
index 86cee1f..5d5f3ef 100644 (file)
@@ -144,7 +144,7 @@ Circulation:
               choices:
                   yes: Enable
                   no: "Do not enable"
-            - "offline circulation on regular circulation computers. (NOTE: This system preference does not affect the Firefox plugin or the desktop application)"
+            - "offline circulation on regular circulation computers. (<strong>NOTE:</strong> This system preference does not affect the Firefox plugin or the desktop application)"
         -
             - pref: ShowAllCheckins
               choices:
@@ -213,12 +213,14 @@ Circulation:
                   yes: Move
                   no: "Don't move"
             - items that have the location PROC to the location CART when they are checked in.
+            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/cart_to_shelf.pl</code> cronjob. Ask you system administrator to schedule it."
         -
             - pref: ReturnToShelvingCart
               choices:
                   yes: Move
                   no: "Don't move"
             - all items to the location CART when they are checked in.
+            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/cart_to_shelf.pl</code> cronjob. Ask you system administrator to schedule it."
         -
             - pref: AutomaticItemReturn
               choices:
@@ -398,12 +400,14 @@ Circulation:
             - <br>WARNING — These preferences will activate the automatic item loss process. Leave these fields empty if you don't want to activate this feature.
             - "<br>Example: [1] [30] Sets an item to the LOST value 1 when it has been overdue for more than 30 days."
             - <br>(Used when the longoverdue.pl script is called without the --lost parameter)
+            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/longoverdue.pl</code> cronjob. Ask you system administrator to schedule it."
         -
             - "Charge a lost item to the borrower's account when the LOST value of the item changes to :"
             - pref: DefaultLongOverdueChargeValue
               class: integer
             - <br>Leave this field empty if you don't want to charge the user for lost items.
             - <br>(Used when the longoverdue.pl script is called without the --charge parameter)
+            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/longoverdue.pl</code> cronjob. Ask you system administrator to schedule it."
         -
             - "When issuing an item that has been marked as lost, "
             - pref: IssueLostItem
@@ -427,7 +431,7 @@ Circulation:
               choices:
                   yes: Allow
                   no: "Don't allow"
-            - "patrons to check out multiple items from the same record.  (NOTE: This will only affect records without a subscription attached.)"
+            - "patrons to check out multiple items from the same record.  (<strong>NOTE:</strong> This will only affect records without a subscription attached.)"
         -
             - pref: OnSiteCheckouts
               choices:
@@ -495,7 +499,7 @@ Circulation:
                   yes: Do
                   no: "Don't"
             - calculate and update overdue charges when an item is returned.
-            - <br /><b>NOTE If you are doing hourly loans then you should have this on.</b>
+            - "<br /><strong>NOTE: If you are doing hourly loans then you should have this on.</strong>"
         -
             - pref: UpdateNotForLoanStatusOnCheckin
               type: textarea
@@ -568,7 +572,7 @@ Circulation:
               choices:
                   yes: Allow
                   no: "Don't allow"
-            - "holds to expire automatically if they have not been picked by within the time period specified in ReservesMaxPickUpDelay"
+            - "holds to expire automatically if they have not been picked by within the time period specified in ReservesMaxPickUpDelay.<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/holds/cancel_expired_holds.pl</code> cronjob. Ask you system administrator to schedule it."
         -
             - If using ExpireReservesMaxPickUpDelay, charge a borrower who allows his or her waiting hold to expire a fee of
             - pref: ExpireReservesMaxPickUpDelayCharge
@@ -587,6 +591,7 @@ Circulation:
               choices:
                   yes: in random order.
                   no: in that order.
+            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/holds/build_holds_queue.pl</code> cronjob. Ask you system administrator to schedule it."
             -
         -
             - pref: canreservefromotherbranches
@@ -634,7 +639,8 @@ Circulation:
               choices:
                   yes: Allow
                   no: "Don't allow"
-            - suspended holds to be automatically resumed by a set date.
+            - "suspended holds to be automatically resumed by a set date."
+            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/holds/auto_unsuspend_holds.pl</code> cronjob. Ask you system administrator to schedule it."
         -
             - pref: SuspendHoldsIntranet
               choices:
@@ -756,7 +762,8 @@ Circulation:
                   test: Calculate (but only for mailing to the admin)
                   production: Calculate and charge
             - fines (when <code>misc/cronjobs/fines.pl</code> is being run).
-            - <br><b>Note:</b> Fines can also be charged by the CalculateFinesOnReturn system preference.
+            - "<br><strong>NOTE:</strong> Fines can also be charged by the CalculateFinesOnReturn system preference."
+            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/fines.pl</code> cronjob. Ask you system administrator to schedule it."
         -
             - If a lost item is returned, apply the refunding rules defined in the
             - pref: RefundLostOnReturnControl
index f46dda3..85e3eb1 100644 (file)
@@ -396,13 +396,15 @@ OPAC:
               choices:
                   yes: Allow
                   no: "Don't allow"
-            - patrons to browse subject authorities on OPAC (run misc/cronjobs/build_browser_and_cloud.pl to create the browser list)
+            - patrons to browse subject authorities on OPAC
+            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/build_browser_and_cloud.pl</code> cronjob. Ask you system administrator to schedule it."
         -
             - pref: OpacCloud
               choices:
                   yes: Show
                   no: "Don't show"
-            - a subject cloud on OPAC (run misc/cronjobs/build_browser_and_cloud.pl to build)
+            - a subject cloud on OPAC
+            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/build_browser_and_cloud.pl</code> cronjob. Ask you system administrator to schedule it."
         -
             - pref: OpacAuthorities
               choices:
@@ -718,13 +720,15 @@ OPAC:
               choices:
                   yes: Allow
                   no: "Don't allow"
-            - "library patrons to register or modify their account via the OPAC. Note: This needs PatronSelfRegistrationDefaultCategory to be set to a valid patron category code."
+            - "library patrons to register or modify their account via the OPAC."
+            - "<br><strong>NOTE:</strong> This needs PatronSelfRegistrationDefaultCategory to be set to a valid patron category code."
         -
             - pref: PatronSelfRegistrationVerifyByEmail
               choices:
                   yes: Require
                   no: "Don't require"
             - "that a self-registering patron verify his or herself via email."
+            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/delete_unverified_opac_registrations.pl</code> cronjob. Ask you system administrator to schedule it."
         -
             - "Use the patron category code"
             - pref: PatronSelfRegistrationDefaultCategory
@@ -735,6 +739,7 @@ OPAC:
             - pref: PatronSelfRegistrationExpireTemporaryAccountsDelay
               class: integer
             - "days."
+            - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/delete_expired_opac_registrations.pl</code> cronjob. Ask you system administrator to schedule it."
         -
             - "The following <a href='http://schema.koha-community.org/__VERSION__/tables/borrowers.html' target='blank'>database columns</a> must be filled in on the patron entry screen:"
             - pref: PatronSelfRegistrationBorrowerMandatoryField
index 3945165..f292aaf 100644 (file)
@@ -23,13 +23,13 @@ Patrons:
                yes: Do
                no: "Don't"
          - default the card number field on the patron addition screen to the next available card number (for example, if the largest currently used card number is 26345000012941, then this field will default to 26345000012942).
-         - "NOTE: If autoMemberNum is enabled, the system preference BorrowerMandatoryField must not contain the field cardnumber."
+         - "<strong>NOTE:</strong> If autoMemberNum is enabled, the system preference BorrowerMandatoryField must not contain the field cardnumber."
      -
          - "The following <a href='http://schema.koha-community.org/__VERSION__/tables/borrowers.html' target='blank'>database columns</a> must be filled in on the patron entry screen:"
          - pref: BorrowerMandatoryField
            class: multi
          - (separate columns with |)
-         - "NOTE: If autoMemberNum is enabled, the system preference BorrowerMandatoryField must not contain the field cardnumber."
+         - "<strong>NOTE:</strong> If autoMemberNum is enabled, the system preference BorrowerMandatoryField must not contain the field cardnumber."
      -
          - "The following <a href='http://schema.koha-community.org/__VERSION__/tables/borrowers.html' target='blank'>database columns</a> will not appear on the patron entry screen:"
          - pref: BorrowerUnwantedField
@@ -59,7 +59,9 @@ Patrons:
            choices:
                yes: Allow
                no: "Don't allow"
-         - "Staff to manage which notices patrons will receive and when they will receive them. Note: this only applies to courtesy notices. To manage if patrons have also access to these settings, use EnhancedMessagingPreferencesOPAC."
+         - "Staff to manage which notices patrons will receive and when they will receive them."
+         - "<br><strong>NOTE:</strong> This only applies to courtesy notices. To manage if patrons have also access to these settings, use EnhancedMessagingPreferencesOPAC."
+         - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/process_message_queue.pl</code> and the <code>misc/cronjobs/advance_notices.pl</code> cronjob. Ask you system administrator to schedule them."
      -
          - pref: ExtendedPatronAttributes
            choices:
@@ -100,6 +102,7 @@ Patrons:
          - pref: MembershipExpiryDaysNotice
            class: integer
          - days.
+         - "<br><strong>NOTE:</strong> This system preference requires the <code>misc/cronjobs/membership_expiry.pl</code> cronjob. Ask you system administrator to schedule it."
      -
          - pref: patronimages
            choices:
@@ -188,7 +191,8 @@ Patrons:
            choices:
                yes: Show
                no: "Don't show"
-         - "patron messaging setting on the OPAC (note: EnhancedMessagingPreferences must be enabled)."
+         - "patron messaging setting on the OPAC."
+         - "<br><strong>NOTE:</strong> EnhancedMessagingPreferences must be enabled."
      -
          - pref: TrackLastPatronActivity
            choices:
@@ -206,7 +210,8 @@ Patrons:
            choices:
                yes: Allow only superlibrarians
                no: Allow all permitted users
-         - "to access/change superlibrarian privileges. Note: A permitted user needs to have the 'permissions' flag (if no superlibrarian)."
+         - "to access/change superlibrarian privileges."
+         - "<br><strong>NOTE:</strong> A permitted user needs to have the 'permissions' flag (if no superlibrarian)."
 
     "Norwegian patron database":
      -
@@ -217,6 +222,8 @@ Patrons:
          - the ability to communicate with the Norwegian national patron database via the
          - pref: NorwegianPatronDBEndpoint
          - endpoint.
+
+    Privacy:
      -
          - Communicate with the Norwegian national patron database using the username
          - pref: NorwegianPatronDBUsername