From 55bac2dfd061c499f8525236202e314b89016620 Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 1 Apr 2010 17:19:11 +0000 Subject: [PATCH] some stubs for future facet UI support git-svn-id: svn://svn.open-ils.org/ILS/trunk@16088 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/skin/default/js/mresult.js | 3 ++- Open-ILS/web/opac/skin/default/js/rresult.js | 2 ++ Open-ILS/web/opac/skin/default/xml/common/js_common.xml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/opac/skin/default/js/mresult.js b/Open-ILS/web/opac/skin/default/js/mresult.js index 51850529fc..076d4aa4f8 100644 --- a/Open-ILS/web/opac/skin/default/js/mresult.js +++ b/Open-ILS/web/opac/skin/default/js/mresult.js @@ -5,6 +5,7 @@ var onlyrecord = {}; var table; var mresultPreCache = 200; var searchTimer; +var resultFacetKey; attachEvt("common", "unload", mresultUnload); attachEvt("common", "run", mresultDoSearch); @@ -44,9 +45,9 @@ function mresultCollectAdvIds() { 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) { diff --git a/Open-ILS/web/opac/skin/default/js/rresult.js b/Open-ILS/web/opac/skin/default/js/rresult.js index 4a7fb35957..985088fdba 100644 --- a/Open-ILS/web/opac/skin/default/js/rresult.js +++ b/Open-ILS/web/opac/skin/default/js/rresult.js @@ -2,6 +2,7 @@ var records = new Array(); var table; var rowtemplate; var rresultLimit = 200; +var resultFacetKey; var rresultIsPaged = false; @@ -318,6 +319,7 @@ function rresultFilterSearchResults(r) { 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 ); diff --git a/Open-ILS/web/opac/skin/default/xml/common/js_common.xml b/Open-ILS/web/opac/skin/default/xml/common/js_common.xml index 884a423b8a..fa20116129 100644 --- a/Open-ILS/web/opac/skin/default/xml/common/js_common.xml +++ b/Open-ILS/web/opac/skin/default/xml/common/js_common.xml @@ -11,6 +11,7 @@ + -- 2.11.0