From: Lebbeous Fogle-Weekley Date: Fri, 21 Dec 2012 04:27:30 +0000 (-0500) Subject: best hold sort order UI off to rockin' start X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b75aebd25f6c0ab7c44616bd308458bbe59ed476;p=evergreen%2Fequinox.git best hold sort order UI off to rockin' start Signed-off-by: Lebbeous Fogle-Weekley --- 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