]> git.koha-community.org Git - koha.git/commit
Bug 26454: Add system preference to set meta description for the OPAC
authorTimothy Alexis Vass <timothy_alexis.vass@ub.lu.se>
Wed, 16 Sep 2020 06:35:15 +0000 (08:35 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 30 Sep 2020 14:15:34 +0000 (16:15 +0200)
commitdebf8f804c6bc47777f1a239e6b20f78c847e0b2
treeb29084d6b90d3364644165257374a5b2a9fd1393
parenta2652135f74c6929bedb2452c41b50dc03b7954c
Bug 26454: Add system preference to set meta description for the OPAC

Websites should have a meta description tag that shows in search engine results.
The content should also be available to set as a system preference.

To test:
1) Look at opac-main source (in the browser) and see that meta name="description" is missing.
2) Apply patch.
3) Run: perl installer/data/mysql/updatedatabase.pl
4) Go to system preferences > OPAC and add a description to OpacMetaDescription.
5) Look at opac-main source and confirm that meta name="description" now has content equal to the text set in the OpacMetaDescription system preference.
6) Sign off.

Sponsored by: Lunds University Libraries
Signed-off-by: Magnus Enger <magnus@libriotech.no>
Works as advertised. Newlines are preserved. Double quote is rendered
as &quot;. Nice enhancement!
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
installer/data/mysql/atomicupdate/bug_26454-add_OpacMetaDescription_syspref.perl [new file with mode: 0755]
installer/data/mysql/sysprefs.sql
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref
koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc