From 6d9deb6a0c9b212efc70d4e09d732e4bb044f4fb Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 13 Dec 2005 23:59:58 +0000 Subject: [PATCH] a few small patchups here and there for handling the new SSI directory structure some minor style updates git-svn-id: svn://svn.open-ils.org/ILS/trunk@2364 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/common/js/opac_utils.js | 9 +++++---- Open-ILS/web/opac/common/js/slimtree.js | 10 ++++++++++ Open-ILS/web/opac/skin/default/css/layout.css | 1 + Open-ILS/web/opac/skin/default/js/result_common.js | 1 + 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/Open-ILS/web/opac/common/js/opac_utils.js b/Open-ILS/web/opac/common/js/opac_utils.js index c7982271c5..99f6693bfc 100644 --- a/Open-ILS/web/opac/common/js/opac_utils.js +++ b/Open-ILS/web/opac/common/js/opac_utils.js @@ -142,7 +142,7 @@ function buildISBNSrc(isbn) { */ function buildImageLink(name, ssl) { - return findBaseURL(ssl) + "../../../images/" + name; + return findBaseURL(ssl) + "../../../../images/" + name; } function buildOPACLink(args, slim, ssl) { @@ -278,6 +278,7 @@ function grabUser(ses, force) { var at = getAuthtime(); if(isXUL()) at = xulG['authtime']; + //alert(at); new AuthTimer(at).run(); return G.user; @@ -363,7 +364,7 @@ function updateUserSetting(setting, value, user) { function commitUserPrefs() { var req = new Request( - UPDATE_USER_PREFS, G.user.session, G.user.prefs ); + UPDATE_USER_PREFS, G.user.session, null, G.user.prefs ); req.send(true); return req.result(); } @@ -411,8 +412,8 @@ function doLogin() { var code = checkILSEvent(auth_result); if(code) { alertILSEvent(code); return null; } - var u = grabUser(auth_result.payload.authtoken, true); AUTHTIME = parseInt(auth_result.payload.authtime); + var u = grabUser(auth_result.payload.authtoken, true); if(u) runEvt( "common", "locationChanged", u.home_ou(), findOrgDepth(u.home_ou()) ); checkUserSkin(); @@ -566,7 +567,7 @@ function MARCFormatToMods(format) { } function setResourcePic( img, resource ) { - img.setAttribute( "src", "../../../images/tor/" + resource + ".jpg"); + img.setAttribute( "src", "../../../../images/tor/" + resource + ".jpg"); img.title = resource; } diff --git a/Open-ILS/web/opac/common/js/slimtree.js b/Open-ILS/web/opac/common/js/slimtree.js index 9228d39d59..ed2db180a8 100644 --- a/Open-ILS/web/opac/common/js/slimtree.js +++ b/Open-ILS/web/opac/common/js/slimtree.js @@ -1,9 +1,19 @@ +/* var stpicopen = '../../../images/slimtree/folder.gif'; var stpicclose = '../../../images/slimtree/folderopen.gif'; var stpicblank = '../../../images/slimtree/page.gif'; var stpicline = '../../../images/slimtree/line.gif'; var stpicjoin = '../../../images/slimtree/join.gif'; var stpicjoinb = '../../../images/slimtree/joinbottom.gif'; +*/ + +var stpicopen = '../../../../images/slimtree/folder.gif'; +var stpicclose = '../../../../images/slimtree/folderopen.gif'; +var stpicblank = '../../../../images/slimtree/page.gif'; +var stpicline = '../../../../images/slimtree/line.gif'; +var stpicjoin = '../../../../images/slimtree/join.gif'; +var stpicjoinb = '../../../../images/slimtree/joinbottom.gif'; + var stimgopen = elem('img',{src:stpicopen,border:0}); var stimgclose = elem('img',{src:stpicclose,border:0}); diff --git a/Open-ILS/web/opac/skin/default/css/layout.css b/Open-ILS/web/opac/skin/default/css/layout.css index 5ed8339df1..9791a0990a 100644 --- a/Open-ILS/web/opac/skin/default/css/layout.css +++ b/Open-ILS/web/opac/skin/default/css/layout.css @@ -13,6 +13,7 @@ table { border-collapse: collapse; } .data_grid thead tr { background: #E0F0E0; color: #000000; } .data_grid thead td { border: 1px solid #808080; padding-right: 5px; padding-left: 5px;} .data_grid tbody td { border: 1px solid #E0E0E0; padding: 5px; } +.data_grid_center { text-align: center; } .classic_link { text-decoration: underline; color: black;} .classic_link:visited { text-decoration: underline; color: black;} diff --git a/Open-ILS/web/opac/skin/default/js/result_common.js b/Open-ILS/web/opac/skin/default/js/result_common.js index a3b1ad8869..b9ceb2e9ef 100644 --- a/Open-ILS/web/opac/skin/default/js/result_common.js +++ b/Open-ILS/web/opac/skin/default/js/result_common.js @@ -8,6 +8,7 @@ G.evt.result.hitCountReceived.push(resultSetHitInfo); G.evt.result.recordReceived.push(resultDisplayRecord, resultAddCopyCounts); G.evt.result.copyCountsReceived.push(resultDisplayCopyCounts); G.evt.result.allRecordsReceived.push(resultBuildCaches, resultDrawSubjects, resultDrawAuthors, resultDrawSeries); +//G.evt.result.allRecordsReceived.push(resultBuildCaches ); attachEvt('result','lowHits',resultLowHits); attachEvt('result','zeroHits',resultZeroHits); -- 2.43.2