If you have your yuipath preference set to retrieve YUI files from Yahoo's servers, your OPAC layout will break because the CSS files are no longer at the old location. The short-term fix is to always retrieve YUI CSS from the local file system (as we do in the staff client). A longer-term fix is to remove the yuipath preference altogether (since it is a goal to eliminate YUI) or generalize it to include other assets like jQuery which can also be found on CDNs like Google's (see http://jquery.com/download/ for the currently available CDN links).
Created attachment 12525 [details] [review] Bug 8827 - YUI CSS files no longer found on Yahoo servers This patch removes the [% yuipath %] variable from the link to the YUI CSS files in the OPAC and adds a hard-coded path to the local files. To test, set your yuipath system preference to "from Yahoo's servers," clear your browser cache, and view the OPAC. The style and layout should look the same as if your yuipath preference were set to "local."
Created attachment 12526 [details] [review] [SIGNED_OFF] Patch
Fixes broken display.
Would it be an idea to add some text next to the pref, mentioning that css is always local and javascript comes from Yahoo, or something like that?
(In reply to comment #2) > Created attachment 12526 [details] [review] > [SIGNED_OFF] Patch works as expected, passing QA... $ koha-qa.pl -c 1 testing 1 commit(s) (applied to commit 0a35b26) * 47fd399 Bug 8827 - YUI CSS files no longer found on Yahoo servers koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc * koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc OK
(In reply to comment #4) > Would it be an idea to add some text next to the pref, mentioning that css > is always local and javascript comes from Yahoo, or something like that? great idea - i've added a new bug to track this http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8867
(In reply to comment #6) > (In reply to comment #4) > > Would it be an idea to add some text next to the pref, mentioning that css > > is always local and javascript comes from Yahoo, or something like that? > > great idea - i've added a new bug to track this > > http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8867 ahh, ignore this bug - i just clicked that its CSS *only*, thats local :)
Patch pushed to master
Patch does not apply to 3.8.x, please resubmit.
(In reply to comment #9) > Patch does not apply to 3.8.x, please resubmit. Not applicable to 3.8.x.