From: Lebbeous Fogle-Weekley Date: Fri, 21 Sep 2012 22:35:47 +0000 (-0400) Subject: Pretty start page for staff client menu to land on (that part TODO) X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6310f989691959f2daad96072ac771664ba4cf2a;p=evergreen%2Fequinox.git Pretty start page for staff client menu to land on (that part TODO) Signed-off-by: Lebbeous Fogle-Weekley --- diff --git a/Open-ILS/src/templates/url_verify/sessions.tt2 b/Open-ILS/src/templates/url_verify/sessions.tt2 new file mode 100644 index 0000000000..80cc3c63c8 --- /dev/null +++ b/Open-ILS/src/templates/url_verify/sessions.tt2 @@ -0,0 +1,51 @@ +[% WRAPPER base.tt2 no_content_pane=1 %] +[% ctx.page_title = "Link Checker" %] + +
+
[% ctx.page_title %]
+
+ [% l("New Link Checker Session") %] +
+
+
+ + +
+
+ + + + + + + + + + + + +
[% l("Verification Attempts") %][% l("Creator ") %][% l("URL Selectors") %]
+
+[% END %] diff --git a/Open-ILS/web/js/dojo/openils/URLVerify/Sessions.js b/Open-ILS/web/js/dojo/openils/URLVerify/Sessions.js new file mode 100644 index 0000000000..a2283e5187 --- /dev/null +++ b/Open-ILS/web/js/dojo/openils/URLVerify/Sessions.js @@ -0,0 +1,74 @@ +if (!dojo._hasResource["openils.URLVerify.Sessions"]) { + dojo.require("dojo.string"); + dojo.require("openils.Util"); + dojo.require("openils.URLVerify.Verify"); + + dojo.requireLocalization("openils.URLVerify", "URLVerify"); + + dojo._hasResource["openils.URLVerify.Sessions"] = true; + dojo.provide("openils.URLVerify.Sessions"); + + dojo.declare("openils.URLVerify.Sessions", null, {}); + + /* Take care that we add nothing to the global namespace. + * This is not an OO module so much as a container for + * functions needed by a specific interface. */ + +(function() { + var module = openils.URLVerify.Sessions; + var localeStrings = + dojo.i18n.getLocalization("openils.URLVerify", "URLVerify"); + + module.setup = function(grid, org_selector) { + module.grid = grid; + + module.setup_org_selector_for_grid(org_selector); + }; + + module.setup_org_selector_for_grid = function(org_selector) { + function filter_grid_by_selected_org() { + module.grid.query = { + "owning_lib": org_selector.attr("value") + }; + module.grid.refresh(); + } + + new openils.User().buildPermOrgSelector( + "URL_VERIFY", org_selector, null, + function() { + dojo.connect( + org_selector, "onChange", filter_grid_by_selected_org + ); + filter_grid_by_selected_org(); + } + ); + }; + + module.format_id = function(str) { + if (!str) + return ""; + + return "" + str + + " " + + localeStrings.CLONE_SESSION + ""; + }; + + module.format_attempts = function(list) { + if (!dojo.isArray(list)) return ""; + + return dojo.map( + list, function(id) { + if (isNaN(id)) + return ""; + return "" + + id + ""; + } + ).join(", "); + }; + +}()); + +} diff --git a/Open-ILS/web/js/dojo/openils/URLVerify/nls/URLVerify.js b/Open-ILS/web/js/dojo/openils/URLVerify/nls/URLVerify.js index 03bbd7ca63..2fc04c2e0b 100644 --- a/Open-ILS/web/js/dojo/openils/URLVerify/nls/URLVerify.js +++ b/Open-ILS/web/js/dojo/openils/URLVerify/nls/URLVerify.js @@ -9,5 +9,8 @@ "VERIFY_ALL": "Click 'OK' to verify ALL the URLs that belong to this session and match all your search terms. Click 'Cancel' if the selected, visible URLs are the only ones you want verified.", "VERIFICATION_DIALOG": "Verifying URLs ...", "VERIFICATION_ATTEMPT_ID": "Verification attempt ID: ${0}", - "NOTHING_SELECTED": "No rows are selected, so no action will be taken." + "NOTHING_SELECTED": "No rows are selected, so no action will be taken.", + "REVIEW_ATTEMPT": "Review this verification attempt", + "CLONE_SESSION": "Clone", + "REREVIEW": "Review / Verify" }