[open-ils-commits] r9647 - in
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb:
public/oils/media/ui_js/oils/default/acq/po
templates/oils/default/acq/po
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue May 20 23:03:49 EDT 2008
Author: erickson
Date: 2008-05-20 23:03:47 -0400 (Tue, 20 May 2008)
New Revision: 9647
Modified:
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/po/li_search.js
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/po/base.html
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/po/li_search.html
Log:
added some search filters. added lineitem search to menu
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/po/li_search.js
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/po/li_search.js 2008-05-20 21:49:04 UTC (rev 9646)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/po/li_search.js 2008-05-21 03:03:47 UTC (rev 9647)
@@ -13,17 +13,29 @@
var lineitems = [];
function drawForm() {
-
+ openils.acq.Provider.createStore(
+ function(store) {
+ providerSelector.store =
+ new dojo.data.ItemFileReadStore({data:store});
+ },
+ 'MANAGE_PROVIDER'
+ );
}
var liReceived;
function doSearch(values) {
- search = {};
- search = {state:'new'};
+ var search = {};
+ for(var v in values) {
+ var val = values[v];
+ if(val != null && val != '')
+ search[v] = val;
+ }
+
search = [search, {limit:searchLimit, offset:searchOffset}];
options = {clear_marc:1, flesh_attrs:1};
liReceived = 0;
+ lineitems = [];
dojo.style('searchProgress', 'visibility', 'visible');
fieldmapper.standardRequest(
['open-ils.acq', 'open-ils.acq.lineitem.search'],
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/po/base.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/po/base.html 2008-05-20 21:49:04 UTC (rev 9646)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/po/base.html 2008-05-21 03:03:47 UTC (rev 9647)
@@ -3,6 +3,7 @@
<%def name='block_navigate()'>
<div id='oils-acq-picklist-nav-div'>
<div class='oils-acq-nav-link'><a href='${c.oils.acq.prefix.value}/po/search'>${_('PO Search')}</a></div>
+ <div class='oils-acq-nav-link'><a href='${c.oils.acq.prefix.value}/po/li_search'>${_('Lineitem Search')}</a></div>
<div class='oils-acq-nav-link'><a href='${c.oils.acq.prefix.value}/po/marc_upload'>${_('Load Order Record')}</a></div>
</div>
<script>setSelectedNavLink('oils-acq-picklist-nav-div');</script>
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/po/li_search.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/po/li_search.html 2008-05-20 21:49:04 UTC (rev 9646)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/acq/po/li_search.html 2008-05-21 03:03:47 UTC (rev 9647)
@@ -15,9 +15,15 @@
doSearch(this.getValues());
return false; /* don't redirect */
</script>
+ <label for='state'>${_('State')}</label>
<select dojoType='dijit.form.FilteringSelect' name='state'>
<option value='new'>${_("New")}</option>
+ <option value='approved'>${_("Approved")}</option>
</select>
+ <label for='provider'>${_('Provider')}</label>
+ <select dojoType='dijit.form.FilteringSelect' name='provider'
+ labalAttr='code' searchAttr='code' jsId='providerSelector'>
+ </select>
<div dojoType='dijit.form.Button' type='submit'>${_("Search")}</div>
</div>
</form>
More information about the open-ils-commits
mailing list