<!ENTITY staff.patron_search_form.phone.label 'Phone:'>
<!ENTITY staff.patron_search_form.post_code.accesskey ''>
<!ENTITY staff.patron_search_form.post_code.label 'ZIP:'>
+<!ENTITY staff.patron_search_form.profile.accesskey ''>
+<!ENTITY staff.patron_search_form.profile.label 'Filter by Permission Profile:'>
<!ENTITY staff.patron_search_form.search.accesskey 'S'>
<!ENTITY staff.patron_search_form.search.label 'Search'>
<!ENTITY staff.patron_search_form.second_given_name.accesskey ''>
};
}
],
+ 'profile' : [ ['render'],function(e) {
+ return function() {};
+ }
+ ],
'inactive' : [ ['render'], function(e) {
return function() {};
}
);
cb.checked = cb.getAttribute('value') == "true" ? true : false;
+ var menupopup = document.getElementById('profile').firstChild;
+ for (var i = 0; i < obj.OpenILS.data.list.pgt.length; i++) {
+ var my_pgt = obj.OpenILS.data.list.pgt[i];
+ var menuitem = document.createElement('menuitem');
+ menuitem.setAttribute('label',my_pgt.name());
+ menuitem.setAttribute('value',my_pgt.id());
+ menupopup.appendChild(menuitem);
+ };
},
'on_submit' : function(q) {
if (id == 'inactive') {
query[id] = node.getAttribute('value');
obj.error.sdump('D_DEBUG','id = ' + id + ' value = ' + node.getAttribute('value') + '\n');
+ } else if (id == 'profile') {
+ query[id] = node.selectedItem.getAttribute('value');
+ obj.error.sdump('D_DEBUG','id = ' + id + ' value = ' + node.getAttribute('value') + '\n');
} else {
if (id == 'search_depth') {
query[id] = node.firstChild.getAttribute('value');
obj.error.sdump('D_DEBUG','id = ' + id + ' value = ' + value + '\n');
}
}
- }
+ }
}
}
if (typeof obj.on_submit == 'function') {
accesskey="&staff.patron_search_form.post_code.accesskey;"/>
<textbox id="post_code" group="1" context="clipboard"/>
</row>
+ <vbox flex="1" style="overflow: auto">
+ <groupbox flex="1">
+ <caption label="&staff.patron_search_form.profile.label;" />
+ <menulist id="profile">
+ <menupopup>
+ <menuitem label="" value=""/>
+ </menupopup>
+ </menulist>
+ </groupbox>
+ </vbox>
<row id="psr12">
<spacer id="pss12"/>
<button id="search" label="&staff.patron_search_form.search.label;"