From bugzilla-daemon@bugs.koha-community.org Tue Oct 25 19:30:54 2016
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 17498] New: Expose system preference values to
JavaScript in the OPAC
Date: Tue, 25 Oct 2016 17:30:50 +0000
Message-ID:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0772648399046166299=="
--===============0772648399046166299==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=3D17498
Bug ID: 17498
Summary: Expose system preference values to JavaScript in the
OPAC
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: ASSIGNED
Severity: enhancement
Priority: P5 - low
Component: OPAC
Assignee: oleonard@myacpl.org
Reporter: oleonard@myacpl.org
QA Contact: testopia@bugs.koha-community.org
We process a lot of JavaScript in the OPAC templates, usually because there a=
re
template variable which need to be processed. Some of these variable, like
system preferences, are a global setting which is common to many pages in the
OPAC. I propose that these settings be defined in embedded JavaScript so that
the scripts themselves can be moved to a separate file.
In my proposal, opac-bottom.inc will contain a section like this: