[open-ils-commits] ***SPAM*** [GIT] Evergreen ILS branch master updated. b343d1c308b6d7549f0289b470f58fd45afb5c58
Evergreen Git
git at git.evergreen-ils.org
Mon Nov 10 20:54:15 EST 2014
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 b343d1c308b6d7549f0289b470f58fd45afb5c58 (commit)
from 64fcd3095f3a6ba9bc6148c81340fc108c890db6 (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 b343d1c308b6d7549f0289b470f58fd45afb5c58
Author: Thomas Berezansky <tsbere at mvlc.org>
Date: Tue Jun 12 14:08:04 2012 -0400
LP#1012308: Teach the staff client to use titlesort
At least in some places.
Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
Signed-off-by: Michele Morgan <mmorgan at noblenet.org>
Signed-off-by: Ben Shum <bshum at biblio.org>
diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js
index d4c48b0..1331e19 100644
--- a/Open-ILS/xul/staff_client/server/circ/util.js
+++ b/Open-ILS/xul/staff_client/server/circ/util.js
@@ -1203,7 +1203,7 @@ circ.util.columns = function(modify,params) {
'id' : 'title',
'label' : document.getElementById('commonStrings').getString('staff.mvr_label_title'),
'flex' : 2,
- 'sort_type' : 'title',
+// 'sort_type' : 'title',
'primary' : false,
'hidden' : true,
'editable' : false, 'render' : function(my) {
@@ -1216,6 +1216,19 @@ circ.util.columns = function(modify,params) {
} else {
return my.acp.dummy_title();
}
+ },
+ 'sort_value' : function(my) {
+ if (my.mvr) {
+ if (my.mvr.doc_id() == -1) {
+ return my.acp.dummy_title();
+ } else if (my.mvr.titlesort()) {
+ return my.mvr.titlesort();
+ } else {
+ return my.mvr.title();
+ }
+ } else {
+ return my.acp.dummy_title();
+ }
}
},
{
@@ -1626,6 +1639,19 @@ circ.util.transit_columns = function(modify,params) {
'editable' : false, 'render' : function(my) {
try { return my.mvr.title(); }
catch(E) { return my.acp.dummy_title(); }
+ },
+ 'sort_value' : function(my) {
+ if (my.mvr) {
+ if (my.mvr.doc_id() == -1) {
+ return my.acp.dummy_title();
+ } else if (my.mvr.titlesort()) {
+ return my.mvr.titlesort();
+ } else {
+ return my.mvr.title();
+ }
+ } else {
+ return my.acp.dummy_title();
+ }
}
},
{
@@ -2269,7 +2295,7 @@ circ.util.hold_columns = function(modify,params) {
'id' : 'title',
'label' : document.getElementById('commonStrings').getString('staff.mvr_label_title'),
'flex' : 1,
- 'sort_type' : 'title',
+// 'sort_type' : 'title',
'primary' : false,
'hidden' : true,
'editable' : false, 'render' : function(my) {
@@ -2278,6 +2304,17 @@ circ.util.hold_columns = function(modify,params) {
} else {
return document.getElementById('circStrings').getString('staff.circ.utils.title.none');
}
+ },
+ 'sort_value' : function(my) {
+ if (my.mvr) {
+ if (my.mvr.titlesort()) {
+ return my.mvr.titlesort();
+ } else {
+ return my.mvr.title();
+ }
+ } else {
+ return document.getElementById('circStrings').getString('staff.circ.utils.title.none');
+ }
}
},
{
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/xul/staff_client/server/circ/util.js | 41 +++++++++++++++++++++++-
1 files changed, 39 insertions(+), 2 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list