[open-ils-commits] ***SPAM*** [GIT] Evergreen ILS branch master updated. cb27b41c27856814045c3d25d65b2e49091cfd26

Evergreen Git git at git.evergreen-ils.org
Fri Oct 11 11:31:16 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, master has been updated
       via  cb27b41c27856814045c3d25d65b2e49091cfd26 (commit)
      from  1ef503bc1a34e60bbe98663292c36b9348aee15e (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 cb27b41c27856814045c3d25d65b2e49091cfd26
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