Main Koha release repository https://koha-community.org
Find a file
Owen Leonard b7f0b58ee8
Bug 23798: Convert OpacMaintenanceNotice system preference to additional contents
This patch moves the OpacMaintenanceNotice system preference into HTML
customizations, making it possible to have language-specific content.

The patch modifies the OPAC maintenance page template so that the
language selection menu can be shown correctly according to the
OpacLangSelectorMode preference.

To test you should have some content in the OpacMaintenanceNotice
system preference before applying the patch. Apply the patch and run the
database update process.

- In the staff client, go to Tools -> HTML customizations and verify
  that the content from OpacMaintenanceNotice is now stored there.
- The HTML customization entry form should offer OpacMaintenanceNotice
  as a choice under "Display location."
- Update and reinstall active translations (for instance fr-FR):
  - perl misc/translator/translate update fr-FR
  - perl misc/translator/translate install fr-FR
- Enable the translation if necessary under Administration -> System
  preferences -> language.
- Enable the "opaclanguagesdisplay" preference if necessary.
- Enable the "OpacMaintenance" system preference.
- Edit the OpacMaintenanceNotice HTML customization and add unique
  content to the "fr-FR" tab.

- Try to view any page in the OPAC. You should see the content you
  added to the OpacMaintenanceNotice HTML customization.
- Switch to your updated translation. The page should redisplay with
  your translated content.
- Go to Administration -> System preferences and search for
  "OpacMaintenanceNotice." The search should return no
  results.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-11-08 17:41:27 -03:00
acqui Bug 34908: Sort item types alphabetically by description when adding a new empty record as an order to a basket 2023-10-25 12:09:54 -03:00
admin Bug 34938: Add collection column to hold ratio report 2023-11-08 11:41:31 -03:00
api Bug 35219: Fix ERM usage endpoints to show in docs 2023-11-06 08:42:40 -03:00
authorities
basket
bin
bookings Bug 29002: Fix permission required to access bookings list 2023-11-03 12:04:28 -03:00
C4 Bug 21284: (QA follow-up) Fix QA script issues 2023-11-08 11:41:35 -03:00
catalogue Bug 29002: Tidy 2023-11-03 12:04:30 -03:00
cataloguing Bug 34993: (QA follow-up) Perltidy 2023-11-06 08:42:49 -03:00
circ Bug 34938: (QA follow-up) Tidy code 2023-11-08 11:41:32 -03:00
clubs
course_reserves
debian Bug 35242: Force memcache restart after koha upgrade 2023-11-03 12:04:44 -03:00
docs Bug 34424: Add Emily Lamancusa to QA Team 2023-10-31 11:02:51 -03:00
erm
errors
etc Bug 25814: Add comment to example sip config file 2023-11-08 11:41:23 -03:00
ill Bug 30719: ILL Batches 2023-10-17 14:45:15 -03:00
installer Bug 23798: Convert OpacMaintenanceNotice system preference to additional contents 2023-11-08 17:41:27 -03:00
Koha Bug 34438: DBIC schema 2023-11-08 11:41:16 -03:00
koha-tmpl Bug 23798: Convert OpacMaintenanceNotice system preference to additional contents 2023-11-08 17:41:27 -03:00
labels Bug 10762: (QA follow-up) Perltidy 2023-10-25 10:35:31 -03:00
lib/CGI/Session/Serialize
members Bug 32730: Add Patron Lists tab to patron details and circulation pages 2023-11-01 17:23:09 -03:00
misc Bug 15157: (QA follow-up) Some more changes 2023-11-08 11:41:30 -03:00
offline_circ Bug 34529: Offline circulation should be able to accept userid as well as cardnumber 2023-11-06 11:34:44 -03:00
opac Bug 23798: Convert OpacMaintenanceNotice system preference to additional contents 2023-11-08 17:41:27 -03:00
patron_lists Bug 34977: (QA follow-up) Tidy code 2023-11-08 11:41:33 -03:00
patroncards
plugins Bug 25672: Fix double output_html_with_http_headers 2023-10-31 11:02:45 -03:00
pos
preservation Bug 34030: Add a "print slips" action links to print in batch 2023-10-23 11:33:55 -03:00
recalls
reports Bug 34456: (QA follow-up) perltidy code 2023-11-01 17:23:18 -03:00
reserve Bug 31692: Tidy and rebase fix 2023-10-10 09:58:59 -03:00
reviews
rotating_collections
serials Bug 35073: perltidy subscription-batchedit.pl 2023-11-03 12:04:37 -03:00
services
skel
suggestion Bug 26994: List names in alphabetical order in Suggestion filter 2023-10-20 16:31:14 -03:00
svc Bug 35181: Don't pass undef to header 2023-11-06 08:42:46 -03:00
t Bug 21284: (QA follow-up) Fix QA script issues 2023-11-08 11:41:35 -03:00
tags
tools Bug 34773: Improve translation of title tags: Cataloging tools 2023-11-06 08:42:44 -03:00
virtualshelves
xt
.editorconfig
.eslintrc.json
.gitignore Bug 34587: Add ability to delete saved reports 2023-10-31 16:46:07 -03:00
.htaccess
.mailmap
.perlcriticrc
.perltidyrc
.proverc.dist
.stylelintrc.json
about.pl Bug 35033: (QA follow-up): tidy up code 2023-10-31 11:02:53 -03:00
app.psgi
build-resources.PL
changelanguage.pl
cpanfile Bug 34064: Add SQL::Translator dependency to cpanfile 2023-10-10 10:54:04 -03:00
cypress.config.ts
fix-perl-path.PL
gulpfile.js Bug 35079: Replace --force-extract by --generate-pot={always,auto,never} 2023-11-01 17:23:20 -03:00
help.pl
INSTALL
Koha.pm Bug 17617: DBRev 23.06.00.067 2023-11-08 11:41:28 -03:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl Bug 35019: Add a CSRF token when deleting news 2023-10-20 17:22:02 -03:00
Makefile.PL Bug 29002: Update Makefile 2023-11-03 12:04:27 -03:00
MANIFEST.SKIP
package.json
README
README.md
README.robots
rewrite-config.PL
tsconfig.json
webpack.config.js Bug 30708: Vue app 2023-10-18 15:41:40 -03:00
yarn.lock

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo