args.page = "home";
goTo(buildOPACLink(args));
-
- /*
- hideMe(G.ui.sidebar.logoutbox);
- unHideMe(G.ui.sidebar.loginbox);
- hideMe(G.ui.sidebar.logged_in_as);
- */
}
}
-function goTo(url) {location.href = url;}
+function goTo(url) {
+ /* setTimeout because ie sux */
+ setTimeout( function(){ location.href = url; }, 0 );
+}
function removeChildren(dom) {
<!ENTITY rdetail.copyInfo.local "View Copy Information for this location only">
<!ENTITY rdetail.copyInfo.all "View copy information for all libraries">
<!ENTITY rdetail.loading "Loading copy infomation...">
-<!ENTITY rdetail.noneAvailable " * There are no copies in this library">
+<!ENTITY rdetail.noneAvailable " * There are no copies in this location">
<!ENTITY rdetail.detailMain.viewMarc "View MARC">
<!ENTITY rdetail.detailMain.hideMarc "Return to title summary view">
#not_the_canvas {}
#canvas_main { min-height: 300px; border-left: 3px solid #A7EA9D; border-bottom: 3px solid #A7EA9D;
- border-top: 3px solid #A7EA9D; padding-left: 6px; -moz-border-radius: 6px;}
+ border-top: 3px solid #A7EA9D; padding-left: 6px; -moz-border-radius: 6px; padding-bottom: 10px; }
.non_canvas { min-height: 300px; border-left: 3px solid #A7EA9D; border-top: 3px solid #A7EA9D;
border-bottom: 3px solid #A7EA9D; padding-left: 6px; -moz-border-radius: 6px;}
.myopac_link { width: 25%; margin: 3px; padding: 3px; text-align: center; vertical-align: middle; }
-.myopac_table thead { padding: 2px; font-weight: 600;}
+.myopac_table thead tr td { padding: 2px; font-weight: 600; border: 1px solid #808080;}
.myopac_table td { padding: 3px; };
}
function mresultSetRecords(idstruct) {
+ if(!idstruct) return;
var o = getOffset();
for( var x = o; x < idstruct.length + o; x++ ) {
if(idstruct[x-o] == null) break;
G.ui.rdetail.cp_info_all.onclick = rdetailShowAllCopies;
G.ui.rdetail.view_marc.onclick = rdetailViewMarc;
G.ui.rdetail.hide_marc.onclick = showCanvas;
+
+
+ if(getLocation() == globalOrgTree.id())
+ hideMe(G.ui.rdetail.cp_info_all);
+
var req = new Request(FETCH_RMODS, getRid());
req.callback(_rdetailDraw);
req.send();
G.ui.rdetail.cp_info_loading.parentNode.removeChild(
G.ui.rdetail.cp_info_loading);
+ var found = false;
for( var i = 0; i < summary.length; i++ ) {
var arr = summary[i];
rdetailApplyStatuses(rowNode, cpc_temp, arr[2]);
var isLocal = false;
- if( orgIsMine( findOrgUnit(getLocation()), thisOrg ) ) isLocal = true;
+ if( orgIsMine( findOrgUnit(getLocation()), thisOrg ) ) { found = true; isLocal = true; }
rdetailSetPath( thisOrg, isLocal );
}
+ if(!found) unHideMe(G.ui.rdetail.cp_info_none);
+
}
/* sets the path to org as 'active' and displays the
_fs = G.ui.searchbar.form_selector;
G.ui.searchbar.text.focus();
- G.ui.searchbar.text.onkeypress =
- function(evt) {if(userPressedEnter(evt)) searchBarSubmit();};
+ //G.ui.searchbar.text.onkeypress =
+ G.ui.searchbar.text.onkeydown =
+ function(evt) {if(userPressedEnter(evt)) { searchBarSubmit(); } };
G.ui.searchbar.submit.onclick = searchBarSubmit;
_opacHandleLocationTagClick();
} else {
- if(!isFrontPage)
+ if(!isFrontPage && (findCurrentPage() != MYOPAC)) {
searchBarSubmit();
+ }
}
}
+var chooseAnotherNode;
function buildLocationSelector(newLoc) {
var loc;
if( loc == globalOrgTree.id() ) return;
var selector = G.ui.searchbar.depth_selector
- var node = selector.removeChild(selector.getElementsByTagName("option")[0]);
+ if(!chooseAnotherNode)
+ chooseAnotherNode = selector.removeChild(selector.getElementsByTagName("option")[0]);
+ var node = chooseAnotherNode;
removeChildren(selector);
var location = findOrgUnit(loc);
newSearchDepth = depth;
}
- if(!isFrontPage && (findCurrentPage() != MYOPAC))
+ if(!isFrontPage && (findCurrentPage() != MYOPAC)
+ && (newSearchLocation != getLocation()) ) {
searchBarSubmit();
-
- alert(findCurrentPage());
- /*
- alert(MYOPAC);
- alert(findCurrentPage() == MYOPAC);
- */
-
+ }
}
}
unHideMe(G.ui.sidebar[page]);
-
- //addCSSClass(G.ui.sidebar[page], config.css.color_2);
- //addCSSClass(G.ui.sidebar[page], config.css.encircled);
addCSSClass(G.ui.sidebar[page], "sidebar_item_active");
/* if we're logged in, show it and replace the Login link with the Logout link */
/* sets up the login ui components */
var loginBoxVisible = false;
-/*
function loginDance() {
if(doLogin()) {
showCanvas();
unHideMe(G.ui.sidebar.logoutbox);
unHideMe(G.ui.sidebar.logged_in_as);
hideMe(G.ui.sidebar.loginbox);
- return true;
+ runEvt("common", "loggedIn");
}
- return false;
}
-*/
function initLogin() {
- var loginDance = function() {
- if(doLogin()) {
- showCanvas();
- G.ui.sidebar.username_dest.appendChild(text(G.user.usrname()));
- unHideMe(G.ui.sidebar.logoutbox);
- unHideMe(G.ui.sidebar.logged_in_as);
- hideMe(G.ui.sidebar.loginbox);
- runEvt("common", "loggedIn");
- }
- }
-
G.ui.login.button.onclick = loginDance;
G.ui.login.username.onkeydown =
function(evt) {if(userPressedEnter(evt)) loginDance();};
<table width='100%'>
<tbody>
<tr>
- <td valign='top' width='20%'>
+ <td id='main_left_cell'>
<xi:include href="logo.xml"/>
<xi:include href="sidebar.xml"/>
</td>
- <td style='padding-left: 6px;' valign='top' width='80%'>
+ <td id='main_right_cell'>
<div id='canvas' class='canvas'>
<xi:include href="searchbar.xml"/>
</div>
- <!--
- <xi:include href="xulsidebar.xml"/>
- -->
-
<!-- Informational sidebar components -->
<div id='logged_in_as_div' title="&navigate.loggedinas.title;" class="side_bar_item hide_me">
- <span>&navigate.loggedinas; <b id='username_dest'> </b></span>
+ <span>&navigate.loggedinas;<b id='username_dest'> </b></span>
</div>
-<!--
-style='border: 1px solid #A7EA9D;'
--->
<div id='sidebar_results_wrapper' class='hide_me' style='border: 1px solid #A7EA9D;'>
<div title="&navigate.titleGroupResults;"
id='mresult_link_div' class="side_bar_item hide_me">
</div>
- <!--
- <br/>
- <div style='padding-top: 3px;'>
- <xi:include href="searchbar.xml"/>
- </div>
- -->
-
<div id='subject_sidebar' class='sidebar_chunk hide_me'>
<div class='sidebar_header color_1'>&sidebar.relevantSubjects.headerLabel;</div>
<ul style='margin-left: 1em; padding-left: 1em;'>