LP#1312309: JSPAC remove javascript, combined.js, etc. Signed-off-by: Jeff Godin <jgodin@tadl.org> Signed-off-by: Ben Shum <bshum@biblio.org>
Closer to being able to get authority control set from thesaurus code Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
config ui trivial improvements, scratching out a place for a browse UI
Patch from Jason Stephenson ( LP#770261, https://bugs.launchpad.net/evergreen/+bug/770261 ) adding support for bibliographic level inspection in the hold and circ matrix matchpoint tests. git-svn-id: svn://svn.open-ils.org/ILS/trunk@20380 dcc99617-32d9-48b4-a31d-7c20da2025e4
OPAC JS combation and compression enhancements Added ability to combine locale-independent common JS files (opac/common/js/) into a single JS file to reduce http back/forth from the browser. In the default skin, this combines 10 scripts into 1. The scripts to combine are parsed from js_common.xml (enclosed by START/END COMPRESSION comments). The combined file is created by autogen. Use of the combined file is enabled via new Apache configuration (off by default). When a JS compressor is configured in autogen, the JS file will be subsequently compressed. Also includes better IDL2js loader for My Account, which loads additional fieldmapper classes. TODO: Add ./configure param for setting a JS compressor at build time Options for providing compressed versions of other JS files git-svn-id: svn://svn.open-ils.org/ILS/trunk@18905 dcc99617-32d9-48b4-a31d-7c20da2025e4
Server-generated IDL JS The goal is to reduce use of pre-onload XHR, which is known to cause problems (dreaded white-screen-of-death) in firefox/xulrunner. Change allows opac, staff client, and embedded browser interfaces to load a pre-formatted JS object instead of IDL XML via XHR. In addition to dropping the XHR, clients no longer parse the XML, which should reduce page render time. Finally, in the staff interfaces, the full IDL is once again loaded, so there is no need to specifiy per-page classes. Per-page classes are still supported and used in the OPAC to reduce the up-front load time. Change requires an update to the Evergreen Apache config. See -r18700. Part of this change included condensing fieldmapper.hash and fielmapper.dojoData content into fieldmapper.Fieldmapper to avoid circular dependencies, which was causing problems with IE. Will eventually want to deprecate .hash and .dojoData, but for now they still function as before. git-svn-id: svn://svn.open-ils.org/ILS/trunk@18712 dcc99617-32d9-48b4-a31d-7c20da2025e4
replace Cookie.js/cookieManager with dojo.cookie. Some things to watch out for as we review this changeset: In Cookie.js, a -1 passed as the expires parameter indicated a session cookie. We could also specify such things as "+1y" or a specific date. With dojo.cookie, an expires value of -1 deletes a cookie. Not specifying an expires option will create a session cookie. We can enter a date or a number days from today. For the case in the code where we had "+1y", I supplied a value of 365. In the previous code, we used empty strings for a lot of cookie deletion. The canonical dojo example has us using null (with an expires of -1). There were also some cases where it seemed obvious that we were deleting cookies, but were at the same passing an actual value (see base.js). I changed these to nulls. In opac_utils.js, grabFleshedUser(), I fixed a dead code path where a cookie deletion attempt came after a return statement. I ran through the opac within and outside of the staff client, tried all of the acquisition UI's from the Acq menu, and most of the interfaces under Admin, and didn't find any auth cookie errors. git-svn-id: svn://svn.open-ils.org/ILS/trunk@18687 dcc99617-32d9-48b4-a31d-7c20da2025e4
Move dojo loading around to avoid the "white screen of death" in Firefox and xulrunner (See: http://o.dojotoolkit.org/forum/dojo-foundation/general-discussion/firefox-3-fires-domcontentloaded-event-prematurely ) git-svn-id: svn://svn.open-ils.org/ILS/trunk@18446 dcc99617-32d9-48b4-a31d-7c20da2025e4
Allow the OPAC to autoload IDL classes instead of either pulling in a long class list and evaluating them all, or loading a .5MB+ xml file and parsing the whole thing. 40% speedup in simple tests where cache is bypassed. git-svn-id: svn://svn.open-ils.org/ILS/trunk@17396 dcc99617-32d9-48b4-a31d-7c20da2025e4
This patch replaces the result page sidebar new-search trees (implemented before "faceting" became a thing, and designed for new-search, not drill-down) with and implementation of what has become the generally accepted "way to do faceting". This is implemented as a Dojo Dijit, and the markup and code footprints within the OPAC proper are small, just a couple <div>s and a little bit of glue code to help the facet rendering engine find the data it needs. The set and order of facet classes to display in a given facet bar (title, author, subject, etc) is configurable in the markup, as are the number of values displayed for each facet when collapsed (before the [More...] button is pushed). Also included is a Searcher Dijit which implements an embeddable advanced search interface. This is mainly useful for constructing boolean-chained searches (we support AND and OR now, though they're spelled && and || in the query string), and has the beginnings of support for filters and modifiers. git-svn-id: svn://svn.open-ils.org/ILS/trunk@17057 dcc99617-32d9-48b4-a31d-7c20da2025e4
added OPAC support for 1) selecting SSL manually and having it stick and 2) forcing SSL when the user is logged in to protect auth tokens and other private data. The latter option is enabled via new apache env variable git-svn-id: svn://svn.open-ils.org/ILS/trunk@16865 dcc99617-32d9-48b4-a31d-7c20da2025e4
Remove accidentally committed OPAC CC payment test code. Only the changes in payment.js and selfcheck.js were supposed to be commited in 16542. The opac changes themselves were only a rough test and aren't seaworthy. git-svn-id: svn://svn.open-ils.org/ILS/trunk@16545 dcc99617-32d9-48b4-a31d-7c20da2025e4
Incorporate CC payment interface into OPAC fines page (rough) git-svn-id: svn://svn.open-ils.org/ILS/trunk@16542 dcc99617-32d9-48b4-a31d-7c20da2025e4
some stubs for future facet UI support git-svn-id: svn://svn.open-ils.org/ILS/trunk@16088 dcc99617-32d9-48b4-a31d-7c20da2025e4
Move Google Book Preview calls in item details page to after page load Speeds things up a bit and cleans up some custom DHTML with cleaner Dojo implementation git-svn-id: svn://svn.open-ils.org/ILS/trunk@14226 dcc99617-32d9-48b4-a31d-7c20da2025e4
Avoid a mixed-content (HTTP vs. HTTPS) warning git-svn-id: svn://svn.open-ils.org/ILS/trunk@13750 dcc99617-32d9-48b4-a31d-7c20da2025e4
Avoid one useless call to the goog git-svn-id: svn://svn.open-ils.org/ILS/trunk@13643 dcc99617-32d9-48b4-a31d-7c20da2025e4
adding openils_dojo.js includes for our custom dojo build git-svn-id: svn://svn.open-ils.org/ILS/trunk@13325 dcc99617-32d9-48b4-a31d-7c20da2025e4
Patch from Jeff Godin (MLC/TADL) which: Fixes the mixed content warnings from IE7 and IE8 "out of the box" without breaking sites that use static servers for CSS and Javascript. This sets OILS_PROTOCOL based on the environment variable HTTPS (which Apache sets to "on" for https:// requests). Thus, a page loaded via https:// gets https:// urls, and a page loaded via http:// gets http:// urls. To accommodate sites with static servers that can not support https, there's a new OILS_OPAC_STATIC_PROTOCOL variable in eg_vhost.conf which can be set to "http" to force JS/CSS to be loaded over http:// (you'll get the same warnings that you got before). git-svn-id: svn://svn.open-ils.org/ILS/trunk@13288 dcc99617-32d9-48b4-a31d-7c20da2025e4
due to some odd interactions with IE and dojo and the fact that opensrf.js is not dojo-ized, load opensrf.js in the usual fashion first. may want to do this for all non-dojo-ized js files, but so far, loading this file alone seems to fix ie6 git-svn-id: svn://svn.open-ils.org/ILS/trunk@12525 dcc99617-32d9-48b4-a31d-7c20da2025e4