[open-ils-commits] r16088 - in trunk/Open-ILS/web/opac/skin/default: js xml/common (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Apr 1 13:19:15 EDT 2010


Author: miker
Date: 2010-04-01 13:19:11 -0400 (Thu, 01 Apr 2010)
New Revision: 16088

Modified:
   trunk/Open-ILS/web/opac/skin/default/js/mresult.js
   trunk/Open-ILS/web/opac/skin/default/js/rresult.js
   trunk/Open-ILS/web/opac/skin/default/xml/common/js_common.xml
Log:
some stubs for future facet UI support

Modified: trunk/Open-ILS/web/opac/skin/default/js/mresult.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/mresult.js	2010-04-01 16:18:19 UTC (rev 16087)
+++ trunk/Open-ILS/web/opac/skin/default/js/mresult.js	2010-04-01 17:19:11 UTC (rev 16088)
@@ -5,6 +5,7 @@
 var table;
 var mresultPreCache = 200;
 var searchTimer;
+var resultFacetKey;
 
 attachEvt("common", "unload", mresultUnload);
 attachEvt("common", "run", mresultDoSearch);
@@ -44,9 +45,9 @@
 	resultCollectSearchIds(false, SEARCH_MRS_QUERY, mresultHandleMRIds ); 
 }
 
-
 function mresultHandleMRIds(r) {
 	var res = r.getResultObject();
+    resultFacetKey = result.facet_key;
     resultCompiledSearch = res.compiled_search;
     cookieManager.write(COOKIE_SEARCH, js2JSON(res.compiled_search), -1);
 	if(res.count != null) {

Modified: trunk/Open-ILS/web/opac/skin/default/js/rresult.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/rresult.js	2010-04-01 16:18:19 UTC (rev 16087)
+++ trunk/Open-ILS/web/opac/skin/default/js/rresult.js	2010-04-01 17:19:11 UTC (rev 16088)
@@ -2,6 +2,7 @@
 var table;
 var rowtemplate;
 var rresultLimit = 200;
+var resultFacetKey;
 
 var rresultIsPaged = false;
 
@@ -318,6 +319,7 @@
 			ids.push(result.ids[i][0]);
 	}
 
+    resultFacetKey = result.facet_key;
     resultCompiledSearch = result.compiled_search;
     cookieManager.write(COOKIE_SEARCH, js2JSON(result.compiled_search), -1);
 	_rresultHandleIds( ids, result.count );

Modified: trunk/Open-ILS/web/opac/skin/default/xml/common/js_common.xml
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/xml/common/js_common.xml	2010-04-01 16:18:19 UTC (rev 16087)
+++ trunk/Open-ILS/web/opac/skin/default/xml/common/js_common.xml	2010-04-01 17:19:11 UTC (rev 16088)
@@ -11,6 +11,7 @@
 	<script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/fmgen.js' type='text/javascript'></script>
 	<script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/opac_utils.js' type='text/javascript'></script>
 	<script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/<!--#echo var="locale"-->/OrgTree.js' type='text/javascript'></script>
+	<script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/<!--#echo var="locale"-->/FacetDefs.js' type='text/javascript'></script>
 	<script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/OrgLasso.js' type='text/javascript'></script>
 	<script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/org_utils.js' type='text/javascript'></script>
 	<script language='javascript' src='<!--#echo var="OILS_JS_BASE"-->/RemoteRequest.js' type='text/javascript'></script>



More information about the open-ils-commits mailing list