[open-ils-commits] ***SPAM*** [GIT] Evergreen ILS branch rel_2_4 updated. 8a190982e8b0f557e7f8f2f52e5abdf4cb95f7a0

Evergreen Git git at git.evergreen-ils.org
Fri Oct 11 11:31:47 EDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_4 has been updated
       via  8a190982e8b0f557e7f8f2f52e5abdf4cb95f7a0 (commit)
      from  c79d3f9bd62ed7fc21de920d950cc11f2893fb6d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8a190982e8b0f557e7f8f2f52e5abdf4cb95f7a0
Author: Bill Erickson <berick at esilibrary.com>
Date:   Wed Sep 18 15:38:08 2013 -0400

    ACQ general search sort funds; display year
    
    * Display fiscal year next to fund code in the search fund selector.
    * Sort by newest fiscal year first, followed by code
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>

diff --git a/Open-ILS/web/js/ui/default/acq/search/unified.js b/Open-ILS/web/js/ui/default/acq/search/unified.js
index 39831da..1eaad19 100644
--- a/Open-ILS/web/js/ui/default/acq/search/unified.js
+++ b/Open-ILS/web/js/ui/default/acq/search/unified.js
@@ -18,6 +18,8 @@ var resultManager;
 var uriManager;
 var pcrud = new openils.PermaCrud();
 var cgi = new openils.CGI();
+var fundSearchFormat = ['${0} (${1})', 'code', 'year'];
+var fundSort = {order_by : {"acqf":"year DESC, code"}};
 
 /* typing save: add {get,set}Value() to all HTML <select> elements */
 HTMLSelectElement.prototype.getValue = function() {
@@ -184,8 +186,11 @@ function TermSelectorFactory(terms) {
                 new openils.widget.AutoFieldWidget({
                     "fmClass": term.hint,
                     "fmField": term.field,
+                    "labelFormat": (term.field == 'fund') ? fundSearchFormat : null,
+                    "searchFormat": (term.field == 'fund') ? fundSearchFormat : null,
                     "noDisablePkey": true,
-                    "parentNode": dojo.create("span", null, parentNode, "only")
+                    "parentNode": dojo.create("span", null, parentNode, "only"),
+                    "searchOptions" : (term.field == 'fund') ? fundSort : null
                 }).build(
                     function(w) {
                         wStore[widgetKey] = w;

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/web/js/ui/default/acq/search/unified.js |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list