From b75aebd25f6c0ab7c44616bd308458bbe59ed476 Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Thu, 20 Dec 2012 23:27:30 -0500 Subject: [PATCH] best hold sort order UI off to rockin' start Signed-off-by: Lebbeous Fogle-Weekley --- .../conify/global/config/best_hold_order.tt2 | 89 ++++++++++ .../web/js/dojo/openils/conify/BestHoldOrder.js | 183 +++++++++++++++++++++ Open-ILS/web/js/dojo/openils/conify/nls/conify.js | 4 +- 3 files changed, 275 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/templates/conify/global/config/best_hold_order.tt2 create mode 100644 Open-ILS/web/js/dojo/openils/conify/BestHoldOrder.js diff --git a/Open-ILS/src/templates/conify/global/config/best_hold_order.tt2 b/Open-ILS/src/templates/conify/global/config/best_hold_order.tt2 new file mode 100644 index 0000000000..41a9b5df0c --- /dev/null +++ b/Open-ILS/src/templates/conify/global/config/best_hold_order.tt2 @@ -0,0 +1,89 @@ +[% WRAPPER base.tt2 %] + +

[% l('Best-Hold Selection Sort Order') %]

+ + +
+ [% l('Interface loading') %] + +
+ + + + +[% END %] diff --git a/Open-ILS/web/js/dojo/openils/conify/BestHoldOrder.js b/Open-ILS/web/js/dojo/openils/conify/BestHoldOrder.js new file mode 100644 index 0000000000..5538b80b8a --- /dev/null +++ b/Open-ILS/web/js/dojo/openils/conify/BestHoldOrder.js @@ -0,0 +1,183 @@ +if (!dojo._hasResource["openils.conify.BestHoldOrder"]) { + dojo.requireLocalization("openils.conify", "conify"); + + dojo._hasResource["openils.conify.BestHoldOrder"] = true; + dojo.provide("openils.conify.BestHoldOrder"); + dojo.provide("openils.conify.SetOrderer"); + + dojo.require("dojo.string"); + dojo.require("openils.Util"); + +(function() { + var localeStrings = + dojo.i18n.getLocalization("openils.conify", "conify"); + + /* This helper module is OO. */ + dojo.declare( + "openils.conify.SetOrderer", null, { + "constructor": function(select, field_map, format_string) { + this.select = select; /* HTML