-.adv_search_quick_box {
-}
-
-.adv_search_left_box {
- float: left;
-}
-
+.adv_search_left_box { float: left; }
+#adv_mixed_search_div { margin: 10px; }
+#adv_refined_search_div { margin: 10px; }
+.adv_search_left_item { text-align: center; }
+.adv_search_left_item { padding: 3px; }
+#adv_search_location { text-align: center; }
.adv_search_big_box {
float: left;
- /*width: 80%;*/
text-align: center;
margin-top: -10px;
margin-left: 20px;
}
-.adv_search_left_item {
- text-align: center;
-}
-
-.adv_search_chunk_box {
-}
-
-.adv_search_left_item {
- padding: 3px;
-}
-
.adv_dashed_box {
padding: 3px;
- border: 2px dashed #99C;
+ border: 2px dashed #556644;
text-align: left;
}
text-align: left;
}
-/*
-.adv_dashed_box table tr td:first-child {
- text-align: right;
-}
-*/
-
-#adv_mixed_search_div {
- margin: 10px;
-}
-
-#adv_refined_search_div {
- margin: 10px;
-}
#adv_search_main_header {
text-align: center;
}
.adv_search_header {
- /*-moz-border-radius: 8px;*/
- background: #CCF;
+ background: #556644;
+ color: #FFF;
text-align: center;
padding-top: 7px;
padding-bottom: 7px;
padding: 2px;
}
-#adv_search_location {
- text-align: center;
-}
.box {
-/* width: 200px; */
width: 100%;
margin: 3px;
}
.box_title {
text-align: center;
width: 98%;
- /*background: #C99;*/
- /*background: #445533;*/
background: #556644;
padding: 2px;
color: #EFF;
.main_nav_cell {
width: 100%;
+ text-decoration: underline;
}
.main_nav_cell_active {
author_cell.innerHTML = " ";
author_cell.appendChild(this.mkLink(record.doc_id(), "author", author ));
+ /*
var marcd = null;
if(instanceOf(this, RecordResultPage)) {
var span = createAppElement("span");
marcd.appendChild(marcb);
}
+ */
var holddiv = null;
if(instanceOf(this, RecordResultPage)) {
holds.onclick = function() { win.toggle(holds); }
holddiv = elem("div");
- //if(instanceOf(this,RecordResultPage))
holddiv.setAttribute("style", "float:right");
-
holddiv.appendChild(holds);
- //var space = elem("span", {style:"padding:5px"},null, " ");
- //c.appendChild(space)
- //c.appendChild(mktext(" "))
- //c.appendChild(holddiv)
}
var tab = elem("table",{style:"float:right"});
if(holddiv) tc.appendChild(holddiv);
tc2.appendChild(mktext(" "));
- if(marcd) tc3.appendChild(marcd);
+ //if(marcd) tc3.appendChild(marcd);
c.appendChild(tab);
globalPage.init();
if(paramObj.__location != null) {
+ debug("Someone passed us a location ID of " + paramObj.__location);
+
globalSelectedLocation = findOrgUnit(paramObj.__location);
+
+ if(paramObj.__depth == null) {
+ paramObj.__depth = findOrgType(globalSelectedLocation.ou_type()).depth();
+ }
+
if(globalSelectedLocation == null)
debug("Invalid location in url : " + paramObj.__location);
else
debug("Setting selected location to " + globalSelectedLocation.name() );
- }
+
+ } else {
+ debug("No location provided in URL");
+ }
if(paramObj.__depth != null) {
}
try {
var r = grabUserByBarcode(this.session, recip_barcode);
- debug("Done grabbing user");
- alert(js2JSON(r));
+ //debug("Done grabbing user");
+ //alert(js2JSON(r));
this.recipient = r;
} catch(E) { if(E.err_msg) alert(E.err_msg()); else alert(E); }
}
if(loc) arr.push(this.buildDeepLink());
- if(UserSession.instance().verifySession()) {
+ if(UserSession.instance().verifySession() && !isXUL() ) {
var a = elem("a", {href:"http://" + globalRootURL + ":"
+ globalPort + "/" + globalRootPath}, null, "Logout");
a.onclick = doLogout;
RecordDetailPage.prototype.buildCustomOrgTree = function(record) {
+ var method = "open-ils.search.biblio.copy_counts.retrieve";
+
+ if(isXUL()) method += ".staff";
+
var req = new RemoteRequest(
- "open-ils.search",
- "open-ils.search.biblio.copy_counts.retrieve",
- record.doc_id() );
+ "open-ils.search", method, record.doc_id() );
var obj = this;
req.setCompleteCallback(
debug(".ou_type()Setting up view marc callback with record " + record.doc_id());
var func = buildViewMARCWindow(record);
+
marcb.onclick = func;
+ if(isXUL()) { xulEvtViewMARC(marcb, record); }
this.viewMarc.appendChild(marcb);
}
var request;
var method = "open-ils.search.biblio.metarecord_to_records";
+ if(isXUL()) method += ".staff";
+
if(this.format == "all")
request = new RemoteRequest("open-ils.search", method, mrid );
else
var req = RemoteRequest.pending[x];
if( req.id != id )
tmpArray.push(req);
- else {
- //debug("Cleaning " + req.id );
+ else
req.clean();
- }
}
}
RemoteRequest.pending = tmpArray;
}
if(obj.is_err) {
+ if( obj.err_msg.match("OpenSRF::EX::User") ) {
+ alert("Session has timed out or cannot be authenticated.\nPlease log out and log back in if necessary.");
+ return;
+ }
+
debug("Something's Wrong: " + js2JSON(obj));
throw new EXCommunication(obj.err_msg);
}
throw obj;
}
+
return obj;
}
[%
top_target = cgi.param("top_target");
sub_frame = cgi.param("sub_frame");
+ location = cgi.param("location");
%]
<frameset cols='100%'>
ELSE;
%]
- src = '/opac/?target=[%- IF top_target; top_target; ELSE; "start";END; %]'
+ src = '/opac/?target=[%- IF top_target; top_target; ELSE; "start";END; %]
+ [%- IF location; "&location=" _ location; END %]'
[% END; %]
/>
WRAPPER html/row id='hourglass_row';
cell(style="text-align:center", content=img(src="http://www.filleacgil.it/Animate/book_b.gif"));
+ #cell(style="text-align:center", content=img(src="/images/computer.gif"));
END;