Bug 18421: (follow-up) QA fixes

Use the community's terminology, change coce.js's path, update <script>
to Asset, remove forbidden patterns

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Charles Farmer 2018-08-08 17:43:27 -04:00 committed by Martin Renvoize
parent 3c0cdedfb0
commit ef897b41f5
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F
6 changed files with 11 additions and 15 deletions

View file

@ -14,7 +14,7 @@ my $current_coce_pref = C4::Context->preference('Coce') || 0;
# add two new systempreferences in order to have distinct behavior between intranet and OPAC
$dbh->do("INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES
('IntranetCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff intranet', 'YesNo'),
('IntranetCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff client', 'YesNo'),
('OpacCoce','$current_coce_pref', NULL, 'If on, enables cover retrieval from the configured Coce server in the OPAC', 'YesNo')
;") or die "Error applying Bug 18421: error inserting new values into database: ". $dbh->errstr . "\n";

View file

@ -247,7 +247,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('IntranetBiblioDefaultView','normal','normal|marc|isbd|labeled_marc','Choose the default detail view in the staff interface; choose between normal, labeled_marc, marc or isbd','Choice'),
('intranetbookbag','1','','If ON, enables display of Cart feature in the intranet','YesNo'),
('IntranetCirculationHomeHTML', '', NULL, 'Show the following HTML in a div on the bottom of the reports home page', 'Free'),
('IntranetCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff intranet', 'YesNo'),
('IntranetCoce','0', NULL, 'If on, enables cover retrieval from the configured Coce server in the staff client', 'YesNo'),
('intranetcolorstylesheet','','50','Define the color stylesheet to use in the Staff Client','free'),
('IntranetFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the Staff client','free'),
('IntranetmainUserblock','','70|10','Add a block of HTML that will display on the intranet home page','Textarea'),

View file

@ -422,7 +422,7 @@ Enhanced Content:
choices:
yes: Enable
no: "Don't enable"
- a Coce image cache service in the staff intranet.
- a Coce image cache service in the staff client.
-
- Coce server URL
- pref: CoceHost

View file

@ -63,11 +63,9 @@
<div class="dialog message">The record you requested does not exist ([% biblionumber | html %]).</div>
[% ELSE %]
[%
IntranetCoce = Koha.Preference('IntranetCoce')
CoceProviders = Koha.Preference('CoceProviders')
CoceHost = Koha.Preference('CoceHost')
%]
[% IntranetCoce = Koha.Preference('IntranetCoce') %]
[% CoceProviders = Koha.Preference('CoceProviders') %]
[% CoceHost = Koha.Preference('CoceHost') %]
[% INCLUDE 'cat-toolbar.inc' %]
[% IF ( ocoins ) %]
@ -770,7 +768,7 @@
[% INCLUDE 'catalog-strings.inc' %]
[% Asset.js("js/catalog.js") | $raw %]
[% INCLUDE 'greybox.inc' %]
<script type="text/javascript" src="[% interface %]/prog/js/coce_[% KOHA_VERSION %].js"></script>
[% Asset.js("js/coce.js") %]
<script>
var interface = "[% interface | html %]";
var theme = "[% theme | html %]";

View file

@ -27,11 +27,9 @@
[% INCLUDE 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
[%
IntranetCoce = Koha.Preference('IntranetCoce')
CoceProviders = Koha.Preference('CoceProviders')
CoceHost = Koha.Preference('CoceHost')
%]
[% IntranetCoce = Koha.Preference('IntranetCoce') %]
[% CoceProviders = Koha.Preference('CoceProviders') %]
[% CoceHost = Koha.Preference('CoceHost') %]
<div id="breadcrumbs">
<a href="/cgi-bin/koha/mainpage.pl">Home</a>
@ -666,7 +664,7 @@
[% Asset.js("js/browser.js") | $raw %]
[% Asset.js("lib/hc-sticky.js") | $raw %]
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
[% Asset.js("prog/js/coce.js") %]
[% Asset.js("js/coce.js") %]
<script>
var MSG_NO_ITEM_SELECTED = _("Nothing is selected.");
var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold.");