Bugzilla – Attachment 77599 Details for
Bug 18421
Make Coce cover images available for staff search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18421: (QA follow-up) Use the community's terminology, change coce.js's path, update <script> to Asset, remove forbidden patterns
Bug-18421-QA-follow-up-Use-the-communitys-terminol.patch (text/plain), 6.51 KB, created by
Charles Farmer
on 2018-08-08 21:46:57 UTC
(
hide
)
Description:
Bug 18421: (QA follow-up) Use the community's terminology, change coce.js's path, update <script> to Asset, remove forbidden patterns
Filename:
MIME Type:
Creator:
Charles Farmer
Created:
2018-08-08 21:46:57 UTC
Size:
6.51 KB
patch
obsolete
>From 3bb874b061496a8c1223caad3bf71d5c66362e8f Mon Sep 17 00:00:00 2001 >From: Charles Farmer <charles.farmer@inLibro.com> >Date: Wed, 8 Aug 2018 17:43:27 -0400 >Subject: [PATCH] Bug 18421: (QA follow-up) Use the community's terminology, > change coce.js's path, update <script> to Asset, remove forbidden patterns > >--- > .../data/mysql/atomicupdate/bug_18421_add_coce_intranet.perl | 2 +- > installer/data/mysql/sysprefs.sql | 2 +- > koha-tmpl/intranet-tmpl/{prog => }/js/coce.js | 0 > .../prog/en/modules/admin/preferences/enhanced_content.pref | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 10 ++++------ > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 10 ++++------ > 6 files changed, 11 insertions(+), 15 deletions(-) > rename koha-tmpl/intranet-tmpl/{prog => }/js/coce.js (100%) > >diff --git a/installer/data/mysql/atomicupdate/bug_18421_add_coce_intranet.perl b/installer/data/mysql/atomicupdate/bug_18421_add_coce_intranet.perl >index af27757..3b3f88f 100755 >--- a/installer/data/mysql/atomicupdate/bug_18421_add_coce_intranet.perl >+++ b/installer/data/mysql/atomicupdate/bug_18421_add_coce_intranet.perl >@@ -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"; > >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index 8ba1eae..509c295 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -218,7 +218,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'), >diff --git a/koha-tmpl/intranet-tmpl/prog/js/coce.js b/koha-tmpl/intranet-tmpl/js/coce.js >similarity index 100% >rename from koha-tmpl/intranet-tmpl/prog/js/coce.js >rename to koha-tmpl/intranet-tmpl/js/coce.js >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref >index 43fec26..26cccb1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref >@@ -390,7 +390,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 >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index 8854a6a..27ea04d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -59,11 +59,9 @@ > <div id="yui-main"> > <div class="yui-b"> > >-[% >- 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 ) %] >@@ -903,7 +901,7 @@ > [% INCLUDE 'catalog-strings.inc' %] > [% Asset.js("js/catalog.js") %] > [% INCLUDE 'greybox.inc' %] >- <script type="text/javascript" src="[% interface %]/prog/js/coce_[% KOHA_VERSION %].js"></script> >+ [% Asset.js("js/coce.js") %] > <script type="text/javascript"> > // http://www.oreillynet.com/pub/a/javascript/2003/10/21/amazonhacks.html > function verify_images() { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >index 5296c57..90b3d51 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -22,11 +22,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> >@@ -644,7 +642,7 @@ > [% Asset.js("js/browser.js") %] > [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") %] > [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") %] >- [% Asset.js("prog/js/coce.js") %] >+ [% Asset.js("js/coce.js") %] > <script type="text/javascript"> > var MSG_NO_ITEM_SELECTED = _("Nothing is selected."); > var MSG_NON_RESERVES_SELECTED = _("One or more selected items cannot be placed on hold."); >-- >2.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18421
:
71322
|
71977
|
72772
|
73401
|
73495
|
74252
|
77597
|
77598
|
77599
|
77764
|
77765
|
80137
|
80138
|
80139
|
83633
|
83634
|
83635
|
83636
|
91552
|
91553
|
91554
|
91555
|
91786
|
91787
|
91788
|
91789
|
93654
|
93655
|
93656
|
93657