[open-ils-commits] r8050 - in trunk/Open-ILS/web/opac/skin/default:
js xml/advanced
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Nov 9 15:03:15 EST 2007
Author: erickson
Date: 2007-11-09 14:47:14 -0500 (Fri, 09 Nov 2007)
New Revision: 8050
Modified:
trunk/Open-ILS/web/opac/skin/default/js/adv_global.js
trunk/Open-ILS/web/opac/skin/default/js/advanced.js
trunk/Open-ILS/web/opac/skin/default/xml/advanced/advanced_global.xml
Log:
Added limit2available on advanced search page
made sort and limit options sticky accorss advanced and results pages
removed old commented-out code
Modified: trunk/Open-ILS/web/opac/skin/default/js/adv_global.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/adv_global.js 2007-11-09 14:15:32 UTC (rev 8049)
+++ trunk/Open-ILS/web/opac/skin/default/js/adv_global.js 2007-11-09 19:47:14 UTC (rev 8050)
@@ -33,6 +33,16 @@
var input = $n($('adv_global_trow'), 'term');
input.focus();
setEnterFunc(input, advSubmitGlobal);
+
+ if(getSort() && getSortDir()) {
+ setSelector($('adv_global_sort_by'), getSort());
+ setSelector($('adv_global_sort_dir'), getSortDir());
+ if(getSort() != 'rel')
+ $('adv_global_sort_dir').disabled = false;
+ }
+
+ if(getAvail())
+ $('opac.result.limit2avail').checked = true;
}
function advAddGblRow() {
@@ -94,6 +104,7 @@
var itemtypes = advGetVisSelectorVals('adv_global_item_type');
var audiences = advGetVisSelectorVals('adv_global_audience');
var languages = getSelectedList($('adv_global_lang')) + '';
+ var limit2avail = $('opac.result.limit2avail').checked ? 1 : ''
var searches = advBuildSearchBlob();
if(!searches) return;
@@ -115,6 +126,7 @@
args[PARAM_ADVTYPE] = ADVTYPE_MULTI;
args[PARAM_STYPE] = "";
args[PARAM_TERM] = "";
+ args[PARAM_AVAIL] = limit2avail;
/* pubdate sorting causes a record (not metarecord) search */
if( sortby == SORT_TYPE_PUBDATE || !$('adv_group_titles').checked ) {
Modified: trunk/Open-ILS/web/opac/skin/default/js/advanced.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/advanced.js 2007-11-09 14:15:32 UTC (rev 8049)
+++ trunk/Open-ILS/web/opac/skin/default/js/advanced.js 2007-11-09 19:47:14 UTC (rev 8050)
@@ -5,7 +5,6 @@
function advInit() {
/* propogate these? */
- clearSearchParams();
depthSelInit();
setEnterFunc( $n( $('advanced.marc.tbody'), 'advanced.marc.value'), advMARCRun );
@@ -34,6 +33,8 @@
function advMARCRun() {
+ clearSearchParams();
+
var div = $('adv_marc_search_sidebar');
var tbodies = div.getElementsByTagName('tbody');
var searches = [];
@@ -77,6 +78,7 @@
}
function advGenericSearch() {
+ clearSearchParams();
var type = getSelectorVal($('adv_quick_type'));
var term = $('adv_quick_text').value;
Modified: trunk/Open-ILS/web/opac/skin/default/xml/advanced/advanced_global.xml
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/xml/advanced/advanced_global.xml 2007-11-09 14:15:32 UTC (rev 8049)
+++ trunk/Open-ILS/web/opac/skin/default/xml/advanced/advanced_global.xml 2007-11-09 19:47:14 UTC (rev 8050)
@@ -46,34 +46,13 @@
<td rowspan='2'>
- <!--
- <table width='100%' style='margin-bottom: 3px;'>
- <thead>
- <tr>
- <td colspan='2' align='center'>
- <span>Group Formats and Editions</span>
- <input id='adv_group_titles' type='checkbox' checked='checked' />
- </td>
- </tr>
- </thead>
- </table>
- -->
-
<table width='100%'>
<thead>
<tr><td colspan='2' align='center'>&advanced.search.filters;</td></tr>
</thead>
<tbody>
- <!--
<tr>
- <td align='right'>Search Range</td>
- <td align='left'>
- < #include virtual="../common/libselect.xml" >
- </td>
- </tr>
- -->
- <tr>
<td align='right'>
<span>&advanced.item.form;</span>
</td>
@@ -198,20 +177,6 @@
<tr style='border-top: none;'>
<td align='center' valign='bottom' style='border-top: none;'>
- <!--
- <table width='100%' style='padding: 1px;'>
- <thead>
- <tr>
- <td colspan='2' align='center'>
- <span>Group Formats and Editions</span>
- <input id='adv_group_titles' type='checkbox' checked='checked' />
- </td>
- </tr>
- </thead>
- </table>
- -->
-
-
<table style='border: none; width: 100%;'>
<tr>
<td align='center' width='100%'>
@@ -271,13 +236,14 @@
</tr>
<tr>
- <td colspan='2' align='center'>
+ <td align='center'>
<span>&advanced.frbrize;</span>
- <!--
- <input id='adv_group_titles' type='checkbox' checked='checked' />
- -->
<input id='adv_group_titles' type='checkbox' />
</td>
+ <td align='center'>
+ <span>&result.limit2avail;</span>
+ <input type='checkbox' id='opac.result.limit2avail'/>
+ </td>
</tr>
</tbody>
</table>
More information about the open-ils-commits
mailing list