From: Lebbeous Fogle-Weekley Date: Fri, 17 Aug 2012 22:58:03 +0000 (-0400) Subject: Beginnings for the big session kick-off UI. Not yet functional. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7c2cfb75a401ea6d0a3eade05336800fb9d5b98c;p=evergreen%2Fequinox.git Beginnings for the big session kick-off UI. Not yet functional. Signed-off-by: Lebbeous Fogle-Weekley --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/URLVerify.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/URLVerify.pm index 0d6df0c00e..1305f88fe9 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/URLVerify.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/URLVerify.pm @@ -672,6 +672,7 @@ sub session_perform_search { # XXX TODO, if the following search takes too long, the caller of our method # can time out + # XXX TODO keep doing this to page over the whole result set my $search_results = $U->simplereq( "open-ils.search", "open-ils.search.biblio.multiclass.query.staff", {}, $session->search diff --git a/Open-ILS/src/templates/url_verify/create_session.tt2 b/Open-ILS/src/templates/url_verify/create_session.tt2 new file mode 100644 index 0000000000..df0a61cdcd --- /dev/null +++ b/Open-ILS/src/templates/url_verify/create_session.tt2 @@ -0,0 +1,106 @@ +[% WRAPPER base.tt2 %] +[% ctx.page_title = "Link Checker - Create Session" %] + + + +
+
+
[% ctx.page_title %]
+
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + [% l("This will only be used if your search doesn't contain a hand-entered filter such as site(BR1)") %] +
+ + + +
+ + + +
+ [% l('Tags and subfields with URLs:') %] + +
+
+
+ [% l("Tag") %] + + [% l("Subfield(s)") %] + + [% l('Add') %] +
+
+ +
+ + +
+
+
+
+[% END %] diff --git a/Open-ILS/web/js/ui/default/url_verify/create_session.js b/Open-ILS/web/js/ui/default/url_verify/create_session.js new file mode 100644 index 0000000000..450963dd1e --- /dev/null +++ b/Open-ILS/web/js/ui/default/url_verify/create_session.js @@ -0,0 +1,58 @@ +var create_session = {}; + +(function() { + create_session.begin = function() { + alert("XXX TODO implement"); + } + + function TagAndSubfieldsMgr(container_id) { + var self = this; + + this.container_id = container_id; + this.counter = 0; + + this.read_new = function() { + var controls = dojo.query(".tag-and-subfield-add-another input"); + + return { + "tag": controls[0].value, + "subfields": openils.Util.uniqueElements( + controls[1].value.replace(/[^0-9a-z]/g, "").split("") + ).sort().join("") + }; + }; + + this.add = function() { + var newdata = this.read_new(); + var newid = "t-and-s-row-" + String(this.counter++); + var div = dojo.create( + "div", { + "id": newid, + "innerHTML": "" + + newdata.tag + + " \u2021" + + newdata.subfields + "" + }, this.container_id, "last" + ); + dojo.create( + "a", { + "href": "javascript:void(0);", + "onclick": function() { + var me = dojo.byId(newid); + me.parentNode.removeChild(me); + }, + "innerHTML": "[X]" /* XXX i18n */ + }, div, "last" + ); + + this.counter++; + }; + + this.get_all = function() { + }; + } + + create_session.tag_and_subfields = + new TagAndSubfieldsMgr("uv-tags-and-subfields"); + +}());