Koha/koha-tmpl/opac-tmpl/bootstrap/en/modules
Tomas Cohen Arazi 1c0b7bf01f
Bug 31274: Make sure OPACSuggestionAutoFill is handled as a boolean everywhere
The YAML preference definition defines it as a string ('yes' or 'no' the
possible values). And the opac-suggestions.tt template has one occurence
of the variable being compared to a string.

This patch does:
- fix the template
- fixes opac.pref for 0|1
- adds an atomicupdate that takes care of moving 'yes' and 'no' to their
  respective boolean values.

To test:
1. Change the syspref value to enable/disable
2. Check on the DB that the value is wrong:
   $ koha-mysql kohadev
   > SELECT value FROM systempreferences WHERE variable='OPACSuggestionAutoFill';
=> FAIL: It is either 'yes' or 'no' depending on what you choose.
3. Apply this patch
4. Run:
   $ updatedatabase
5. Repeat 2
=> SUCCESS: Values are now 0 or 1
6. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-08-02 09:29:08 -03:00
..
clubs
errors
sci
sco Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
svc
ilsdi.tt
maintenance.tt Bug 30733: Undo some <span> additions that don't yield good strings 2022-06-17 10:16:43 -03:00
opac-account-pay-error.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
opac-account.tt
opac-addbybiblionumber.tt Bug 30566: Incorporate link handling in OPAC's biblio-title include 2022-07-05 09:57:25 -03:00
opac-advsearch.tt Bug 30570: Replace the use of jQueryUI tabs in OPAC templates 2022-07-20 10:02:21 -03:00
opac-alert-subscribe.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
opac-auth-detail.tt Bug 30570: Replace the use of jQueryUI tabs in OPAC templates 2022-07-20 10:02:21 -03:00
opac-auth-MARCdetail.tt
opac-auth.tt Bug 31064: Wrap local login with stylable element 2022-07-01 16:37:34 -03:00
opac-authorities-home.tt
opac-authoritiessearchresultlist.tt Bug 30740: Link to authorities 'used in' should not use equal 2022-05-16 11:20:09 -10:00
opac-basket.tt
opac-blocked.tt
opac-browse.tt
opac-browser.tt
opac-course-details.tt
opac-course-reserves.tt
opac-curbside-pickups.tt Bug 30650: Fix some typos 2022-07-29 15:01:45 -03:00
opac-detail.tt Bug 30570: Replace the use of jQueryUI tabs in OPAC templates 2022-07-20 10:02:21 -03:00
opac-discharge.tt
opac-downloadcart.tt
opac-downloadshelf.tt
opac-full-serial-issues.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
opac-holdshistory.tt Bug 22456: (QA follow-up) Consider cancellation requested as cancelled in OPAC 2022-07-29 15:28:45 -03:00
opac-ics.tt Bug 30733: Undo <span> in an ICS calendar file 2022-06-17 10:16:42 -03:00
opac-idref.tt
opac-illrequests.tt
opac-imageviewer.tt Bug 30566: Incorporate link handling in OPAC's biblio-title include 2022-07-05 09:57:25 -03:00
opac-ISBDdetail.tt
opac-issue-note.tt
opac-library.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
opac-main.tt Bug 31064: Wrap local login with stylable element 2022-07-01 16:37:34 -03:00
opac-MARCdetail.tt
opac-memberentry-update-submitted.tt
opac-memberentry.tt Bug 21978: Add support for middle name 2022-06-24 12:24:11 -03:00
opac-messaging.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
opac-mymessages.tt
opac-news-rss.tt
opac-opensearch.tt
opac-overdrive-search.tt Bug 31040: jsTree image being used outside of jsTree plugin 2022-07-05 09:18:20 -03:00
opac-passwd.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
opac-password-recovery.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
opac-patron-consent.tt
opac-privacy.tt
opac-readingrecord.tt Bug 30570: Replace the use of jQueryUI tabs in OPAC templates 2022-07-20 10:02:21 -03:00
opac-recall.tt Bug 30733: Split strings differently 2022-06-17 10:16:44 -03:00
opac-recalls.tt Bug 31146: Fix unclosed table element 2022-07-18 10:21:51 -03:00
opac-recordedbooks-search.tt Bug 31040: jsTree image being used outside of jsTree plugin 2022-07-05 09:18:20 -03:00
opac-registration-confirmation.tt
opac-registration-email-sent.tt
opac-registration-invalid.tt
opac-reportproblem.tt
opac-request-article.tt
opac-reserve.tt Bug 30566: Incorporate link handling in OPAC's biblio-title include 2022-07-05 09:57:25 -03:00
opac-reset-password.tt Bug 30762: Terminology: Go to Staff client 2022-07-08 15:21:40 -03:00
opac-restrictedpage.tt
opac-results.tt Bug 31040: jsTree image being used outside of jsTree plugin 2022-07-05 09:18:20 -03:00
opac-retrieve-file.tt
opac-review.tt
opac-routing-lists.tt
opac-search-history.tt Bug 30570: Replace the use of jQueryUI tabs in OPAC templates 2022-07-20 10:02:21 -03:00
opac-sendbasket.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
opac-sendbasketform.tt
opac-sendshelf.tt
opac-sendshelfform.tt
opac-serial-issues.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
opac-shareshelf.tt
opac-shelves-rss.tt
opac-shelves.tt Bug 25498: (follow-up) Show error message when no sharee has email 2022-07-20 09:02:18 -03:00
opac-showmarc.tt
opac-showreviews-rss.tt
opac-showreviews.tt Bug 30566: Incorporate link handling in OPAC's biblio-title include 2022-07-05 09:57:25 -03:00
opac-suggestions.tt Bug 31274: Make sure OPACSuggestionAutoFill is handled as a boolean everywhere 2022-08-02 09:29:08 -03:00
opac-tags.tt Bug 30566: Incorporate link handling in OPAC's biblio-title include 2022-07-05 09:57:25 -03:00
opac-tags_subject.tt
opac-topissues.tt
opac-user.tt Bug 22456: Allow requesting cancellation from the OPAC 2022-07-29 15:28:33 -03:00