diff --git a/ktatompub/.htaccess b/ktatompub/.htaccess
deleted file mode 100644
index bad6432..0000000
--- a/ktatompub/.htaccess
+++ /dev/null
@@ -1,45 +0,0 @@
-# This file sets up the necessary PHP settings to run KnowledgeTree
-# optimally.
-#
-# It is best that KnowledgeTree be allowed to manage its PHP and access
-# permissions using these .htaccess files. This prevents direct access
-# to libraries, scripts, and documents that should not be available via
-# the web.
-#
-# By default, to facilitate quick testing of functionality,
-# KnowledgeTree places the Documents directory within the KnowledgeTree
-# web root. This, by default, would allow people to browse the
-# documents in the DMS, bypassing the security permissions. The
-# default .htaccess settings would prevent this.
-#
-# KnowledgeTree itself is able to deal with most PHP configurations,
-# excepting "safe mode" currently, but is unable to handle certain
-# inherent configuration options (for example, setting the upload size
-# very low). Check the setup checklists (as described in the
-# documentation) to see how your configuration is handled.
-#
-# The default .htaccess settings ensure that no workarounds occur in the
-# PHP code, leading to better performance and robustness.
-#
-#
-#php_value default_mimetype text/html
-#php_value auto_prepend_file none
-#php_value auto_append_file none
-#php_flag display_startup_errors ON
-#php_flag display_errors ON
-#php_flag file_uploads ON
-#php_flag magic_quotes_gpc OFF
-#php_flag magic_quotes_runtime OFF
-#php_flag register_globals OFF
-#php_flag output_buffering OFF
-#php_flag session.auto_start OFF
-#
-
-
-#
-#RewriteEngine On
-#
-# SetEnv kt_no_extensions yes
-#
-#
-
diff --git a/ktatompub/Client/.project b/ktatompub/Client/.project
deleted file mode 100644
index 75404c9..0000000
--- a/ktatompub/Client/.project
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
- Atompub Client
-
-
-
-
-
-
-
-
diff --git a/ktatompub/Client/index.html b/ktatompub/Client/index.html
deleted file mode 100644
index d7c2442..0000000
--- a/ktatompub/Client/index.html
+++ /dev/null
@@ -1,527 +0,0 @@
-
-
-
-
-This is a not fully functional (for now) version of the jQuery API build for demonstration purposes only. Only tested on a Mac. More about jQuery Finder Plugin.Comments ?
This is an Alpha release. It is tested but not thoroughly. There may be bugs, but I haven't found them yet. There are some issues with Internet Explorer (see browser support below). This release is (still) only for testing purposes and proof-of-concept.
-
You are more than welcome to contribute with bug reports, code, and general ideas/comments. Please post at jQuery group or e-mail me at rudas dot n at gmail dot com.
v0.6a.zip - Contains all files used in this page (js, css, img, etc)
-
-
-
-
-
Browser support
-
-
-
There's a minor bug in most browsers: Each column's width is not calculated properly and so either a long item will collapse to two lines (or more) the column will be cut off. I need some help on this one. Possible cause: some browsers don't take into consideration the width of the scrollbars when calculating widths (?)
-
-
Unless otherwise noted, the script looks and behaves correctly for the following browsers:
-
-
-
-
Firefox 2 & 3
-
Opera 9.62
-
Safari 3.1.2 - Webkit browsers like to collapse columns
-
Chrome 1
-
IE 8b2
-
IE 7 - CSS Bug with width of list items (help please)
-
-
-
Options
-
(This section needs update, see source of ui.finder.js for options)
-
-
title String
-
The title to be displayed at the top of the Finder
-
url String
-
URL of root list, used when list should be retrieved via ajax
-
onInit Function
-
Callback function for when a Finder is initialised
-
onRootReady Function
-
Callback function for when the root list of a Finder is ready
-
onItemSelect Function
-
Callback function when an item is selected. Note: If onItemSelect returns false, default behaviour is ignored, i.e. the URL is not fetched, and the new level is not shown. onItemOpen is also not called.
-
onItemOpen Function
-
Callback function when an item is opened. Function is called when the user clicks on the anchor element (as opposed to the li element).
-
onFolderSelect Function
-
Callback function when a folder is selected. To specify a folder, add a class "folder" to your list element. Function is called when the user clicks on the list (li) element.
Note: If onFolderSelect returns false, default behaviour is ignored, i.e. the URL is not fetched, and the new level is not shown.
-
onFolderOpen Function
-
Callback function when a folder is opened. Function is called when the user clicks on the anchor element (as opposed to the li element)
-
animate Boolean
-
Slide in subsequent levels
Default: true
-
cache Boolean
-
If false, appends timestamp when retrieving subsequent levels (forcing browser to ignore cache). Useful if contents are updated frequently and user must always see new items.
Default: false
-
-
-
To do
-
-
Max width
-
New column expands to fit available space.[optional]
-
-
Support non-ajax functionality
-
When lists & file info already in dom. Display items several levels down.
-
-
Toolbar/Menubar
-
Make public methods available via toolbar and/or menubar. (nearly there)
-
-
Search
-
Search for specific items (coming next)
-
-
-
-
-
-
-
diff --git a/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/jquery.scrollTo-1.4.0-min.js b/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/jquery.scrollTo-1.4.0-min.js
deleted file mode 100644
index eacfe56..0000000
--- a/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/jquery.scrollTo-1.4.0-min.js
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * jQuery.ScrollTo - Easy element scrolling using jQuery.
- * Copyright (c) 2007-2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
- * Dual licensed under MIT and GPL.
- * Date: 9/11/2008
- * @author Ariel Flesler
- * @version 1.4
- *
- * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
- */
-;(function(h){var m=h.scrollTo=function(b,c,g){h(window).scrollTo(b,c,g)};m.defaults={axis:'y',duration:1};m.window=function(b){return h(window).scrollable()};h.fn.scrollable=function(){return this.map(function(){var b=this.parentWindow||this.defaultView,c=this.nodeName=='#document'?b.frameElement||b:this,g=c.contentDocument||(c.contentWindow||c).document,i=c.setInterval;return c.nodeName=='IFRAME'||i&&h.browser.safari?g.body:i?g.documentElement:this})};h.fn.scrollTo=function(r,j,a){if(typeof j=='object'){a=j;j=0}if(typeof a=='function')a={onAfter:a};a=h.extend({},m.defaults,a);j=j||a.speed||a.duration;a.queue=a.queue&&a.axis.length>1;if(a.queue)j/=2;a.offset=n(a.offset);a.over=n(a.over);return this.scrollable().each(function(){var k=this,o=h(k),d=r,l,e={},p=o.is('html,body');switch(typeof d){case'number':case'string':if(/^([+-]=)?\d+(px)?$/.test(d)){d=n(d);break}d=h(d,this);case'object':if(d.is||d.style)l=(d=h(d)).offset()}h.each(a.axis.split(''),function(b,c){var g=c=='x'?'Left':'Top',i=g.toLowerCase(),f='scroll'+g,s=k[f],t=c=='x'?'Width':'Height',v=t.toLowerCase();if(l){e[f]=l[i]+(p?0:s-o.offset()[i]);if(a.margin){e[f]-=parseInt(d.css('margin'+g))||0;e[f]-=parseInt(d.css('border'+g+'Width'))||0}e[f]+=a.offset[i]||0;if(a.over[i])e[f]+=d[v]()*a.over[i]}else e[f]=d[i];if(/^\d+$/.test(e[f]))e[f]=e[f]<=0?0:Math.min(e[f],u(t));if(!b&&a.queue){if(s!=e[f])q(a.onAfterFirst);delete e[f]}});q(a.onAfter);function q(b){o.animate(e,j,a.easing,b&&function(){b.call(this,r,a)})};function u(b){var c='scroll'+b,g=k.ownerDocument;return p?Math.max(g.documentElement[c],g.body[c]):k[c]}}).end()};function n(b){return typeof b=='object'?b:{top:b,left:b}}})(jQuery);
\ No newline at end of file
diff --git a/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/loading.gif b/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/loading.gif
deleted file mode 100644
index 2554018..0000000
--- a/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/loading.gif
+++ /dev/null
diff --git a/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/ui.finder-min.js b/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/ui.finder-min.js
deleted file mode 100644
index 15e9d68..0000000
--- a/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/ui.finder-min.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/*****************************************************************************
- * jQuery Finder v0.7 - Makes lists into a Finder, similar to Mac OS X
- *
- * @date $Date: 2009-02-27 14:17:07 +0200 (Fri, 27 Feb 2009) $
- * @revision $Rev: 14 $
- * @copy (c) Copyright 2009 Nicolas Rudas. All Rights Reserved.
- * @licence MIT Licensed
- * @discuss groups.google.com/group/jquery-en/browse_thread/thread/480bb6f722b66345
- * @issues code.google.com/p/jqueryfinder/issues/
- * @latest code.google.com/p/jqueryfinder/source
- * @demo nicolas.rudas.info/jquery/finder
- *
- *****************************************************************************
- * Syntax:
- * $(selector).finder() Create a new finder with default options
- *
- * $(selector).finder(options) Create a new finder with additional options
- *
- * $(selector).finder(method,[arguments]) Execute a method on an existing finder
- * - select Select item
- * - refresh Reload currently selected item (cache is ignored)
- * - destroy Completely remove finder
-
- *
- **/
-(function(A){A.fn.finder=function(F,H){var I={title:"",url:false,onInit:function(O){},onRootInit:function(O,P){},onRootReady:function(O,P){},onItemSelect:function(O,P,Q){return false;},onItemOpen:function(Q,P,O){},onFolderSelect:function(O,P,Q){},onFolderOpen:function(Q,P,O){},processData:function(O){return A('').append(O);},animate:true,cache:false,ajax:{cache:false},listSelector:false,maxWidth:450,classNames:{"ui-finder":"ui-widget ui-widget-header","ui-finder-wrapper":"ui-widget-content","ui-finder-header":undefined,"ui-finder-title":undefined,"ui-finder-list-item-active":"ui-state-default","ui-finder-list-item-activeNow":"ui-state-hover","ui-finder-list-item-file":"ui-icon-document","ui-finder-list-item-folder":"ui-icon-folder-collapsed","ui-finder-icon-folder-arrow":"ui-icon ui-icon-triangle-1-e"},toolbarActions:function(){return"";}};var N=A.Finders=A.Finders||{};var M=function(){return parseInt(new Date().valueOf(),10);};var K=A.scrollTo||false;if(typeof K=="function"){K=true;A.scrollTo.defaults.axis="xy";A.scrollTo.defaults.duration=900;}var B,C,D=(typeof H=="string")?H:null,G=(typeof H=="function")?H:null,J=arguments;if(typeof F=="string"){B=F;}else{if(typeof F=="object"){C=F;}}if(C){if(C.classNames){C.classNames=jQuery.extend(I.classNames,C.classNames);}C=jQuery.extend(I,C);}else{C=I;}function E(R,P){var O=this;this.cache={};this._queue=[];this.settings={};this.id=P;this.initial=A(R).clone(true);this.element=A(R);this.element.attr("data-finder-ts",this.id);for(var Q in C){O.settings[Q]=C[Q];}return this;}E.prototype.init=function(){var P=this,O=this.settings.toolbarActions.apply(this.element)||"",Q=this.settings.classNames,S=Q["ui-finder"]||"",R=Q["ui-finder-wrapper"]||"",T=Q["ui-finder-header"]||"",U=Q["ui-finder-title"]||"";this.element.wrap('').wrap('').wrap('');this.wrapper=this.element.parents(".ui-finder-container");this.wrapper.parents(".ui-finder").prepend('
'+O+"
").prepend('
'+this.settings.title+"
");this.widget=this.wrapper.parents(".ui-finder");this._toolbar=A("div.ui-finder-header",this.widget);this._title=A("div.ui-finder-title",this.widget);this.wrapper.unbind("click.FinderSelect").bind("click.FinderSelect",function(X){var W=X.target,V=A(W);if(!V.closest("li.ui-finder-list-item").length&&!V.is("> li.ui-finder-list-item").length||V.parents(".ui-finder-column").length===0){return ;}P.queue(V);return Boolean(P.lastSelectCallbackReturned);});setTimeout(function(){P.settings.onInit.apply(P.element,[P]);P.settings.listItemBorderColour=A(".ui-widget-header").css("backgroundColor");P.selectItem("root");},0);return this;};E.prototype.title=function(O){this._title.html(O);return this;};E.prototype.toolbar=function(O){this._toolbar.html(O);return this;};E.prototype.queue=function(R,O,Q){var P=this,S=this.wrapper;this._queue.push([R,O,Q]);if(!P.isProcessing){P.preSelect();}return this;};E.prototype.preSelect=function(){var O=this,P=this._queue;if(P.length==0){return ;}O.select.apply(O,P[0]);return this;};E.prototype.select=function(e,b,U){var Y=this,S=this.wrapper,W=(typeof e=="string")?A('a[rel="'+e+'"]',S):A(e),O=W;if(typeof e.length!="number"){throw"jQuery Finder: Target must be either a URL or a jQuery/DOM element";return this;}if(!W[0]){throw"jQuery Finder: Target element does not exist";return this;}this.isProcessing=true;var T=W.closest("li.ui-finder-list-item"),g=A("> a:first",T),d=T.parents("div[data-finder-list-level]:first"),Z=d.attr("data-finder-list-level"),Q=(T.hasClass("ui-finder-file"))?"file":"folder",R=g.attr("rel"),V=A("div.ui-finder-column:visible",S),c=this.settings.classNames,f=c["ui-finder-list-item-active"]||"",P=c["ui-finder-list-item-activeNow"]||"";W=(W[0]!==T[0]&&W[0]!==g[0])?T:W;if(U=="select"){O=W=T;}A(".ui-finder-list-item.ui-finder-list-item-activeNow",S).removeClass("ui-finder-list-item-activeNow "+P);V.each(function(){var i=A(this),h=i.attr("data-finder-list-level");if(h>=Z){A(".ui-finder-list-item.ui-finder-list-item-active",i).removeClass("ui-finder-list-item-active "+f);}if(h>Z){i.remove();}});T.addClass("ui-finder-list-item-active "+f).addClass("ui-finder-list-item-activeNow "+P);if(K){setTimeout(function(){d.scrollTo(T);},0);}var a,X=[T,O,Y];if(Q=="file"){a=Y.settings.onItemSelect.apply(Y.element,X);}else{a=Y.settings.onFolderSelect.apply(Y.element,X);}this.lastSelectCallbackReturned=a;if(a!==false&&a!==true){T.addClass("ui-finder-loading");Y.selectItem(R,b,[W,T]);return this;}this.adjustWidth(true);this.finalise();return this;};E.prototype.selectItem=function(P,S,T){var X=this,Q=X.settings,U=(T)?T[0]:null,O=(T)?T[1]:null,W=(O)?O[0].className.match(/(file|folder)/)[0]:"folder",R=(P=="root")?(Q.url)?null:this.element:A("> ul, > ol, > div",O).eq(0).clone(),P=(P=="root"&&typeof Q.url==="string")?Q.url:P;var V=function(){var Z=Q.processData,Y=R;if(A.isFunction(Z)){R=Z(R);if(!R.length){R=Y;}}else{R=A(R);}X.cache[P]={url:P,data:R,response:Y,date:new Date().valueOf(),status:"success"};if(P==Q.url&&typeof Q.onRootInit==="function"){Q.onRootInit.apply(X.element,[R,X]);}if(W=="folder"){A("> ul, > ol",R).eq(0).find("> li").each(function(){var e=A(this),b,f;if(e.hasClass("ui-finder-folder")){b="folder";}else{if(e.hasClass("ui-finder-file")){b="file";}else{if(e.children("ul,ol").length){e.addClass("ui-finder-folder");b="folder";}else{e.addClass("ui-finder-file");b="file";}}}f=(b=="file")?Q.classNames["ui-finder-list-item-file"]:Q.classNames["ui-finder-list-item-folder"];e.addClass("ui-finder-list-item").css("borderColor",Q.listItemBorderColour).append('');var a=A("> a",this),d=a.attr("href")||"_blank"+new Date().valueOf(),c=a.attr("title")||"";if(a.attr("rel")==d.substring(1)||!d.length){return ;}a.attr("rel",d).attr("href",d).append('');if(c.length==0){a.attr("title",d);}});}X.appendNewColumn(P,R,[U,O],W);};if(R&&R.length&&!S){V();}else{if(R&&R.length&&S&&P.match(/_blank\d+/)){V();}else{if(typeof this.cache[P]=="object"&&this.settings.cache&&!S){if(this.cache[P].status=="success"){R=this.cache[P].data;V();}}else{if(!P.match(/_blank\d+/)){A.ajax({url:P,cache:X.settings.ajax.cache,success:function(Y){R=Y;},error:function(Z,Y){R=Y;},complete:function(){V();}});}}}}return this;};E.prototype.appendNewColumn=function(Q,U,W,Y){var Z=this,X=(W)?W[0]:null,O=(W)?W[1]:null,V=(O)?O.parents("div[data-finder-list-level]:first"):null,P=Q.replace(/[\W\s]*/g,""),R=(function(){if(Q==Z.settings.url||Q=="root"){return 0;}return parseInt(V.attr("data-finder-list-level"),10)+1;})();var T=A('div[data-finder-list-id="'+P+'"]');if(T.length>0){T[0].parentNode.removeChild(T[0]);}T=A('').css("display","none").attr("data-finder-list-id",P).attr("data-finder-list-source",Q).attr("data-finder-list-level",R).css("z-index",0);Z.wrapper[0].appendChild(T[0]);T[0].appendChild(A(U)[0]);setTimeout(function(){Z.adjustWidth(false,T,Q);},0);if(X&&X[0]&&X.is("a")){var S=[O,T,Z];if(Y=="file"){Z.settings.onItemOpen.apply(Z.element,S);}else{Z.settings.onFolderOpen.apply(Z.element,S);}}return this;};E.prototype.adjustWidth=function(S,Y,Q){var e=this,P=this.wrapper;Y=Y||A("div[data-finder-list-id]:visible:last",P);var U=(!S)?P.children("div[data-finder-list-id]:not(.ui-finder-new-col):visible"):P.children("div[data-finder-list-id]:visible:not(:last)"),R=0;Y.removeClass("ui-finder-new-col");U.css("right","auto");U.each(function(){A(this).width("auto").width(A(this).outerWidth()+20);R+=A(this).width();});var a=10,X=(!Y.data("yscroll"))?a:0;var Z=Y.width(),c=(e.settings.maxWidth&&Z>e.settings.maxWidth)?e.settings.maxWidth:Z+X,W=R+c,T=P.width(),d=P.parent().width();Y.data("yscroll",true);if(W>d||Wd&&W!=T){if(c==W||W0){this.preSelect();}if(O==this.settings.url&&typeof this.settings.onRootReady==="function"){this.settings.onRootReady.apply(this.element,[P,this]);}return this;};E.prototype.destroy=function(){this.wrapper.unbind("click.FinderSelect");this.element.parents(".ui-finder").replaceWith(this.initial);delete N[this.id];return this;};E.prototype.current=function(){var O=A(".ui-state-hover",this.wrapper).find("a:first");return(O.length>0)?O:null;};E.prototype.refresh=function(){var O=this.current();if(O){this.queue(O,true);}else{this.selectItem("root",true);}return this;};var L=N[A(this).eq(0).attr("data-finder-ts")];if(B=="current"&&L){return L.current();}else{if(B=="get"&&L){return L;}}return this.each(function(){var P=A(this).attr("data-finder-ts")||null,O=new Date().valueOf();if(P&&B){var R=N[P];if(B=="select"&&H){if(H.constructor==Array){H=H.reverse();for(var Q=H.length-1;Q>=0;Q--){R.queue(H[Q],false,B);}}else{R.queue(H,false,B);}}else{if(B=="title"){R.title(H);}else{if(B=="toolbar"){R.toolbar(H);}else{if(B=="destroy"){R.destroy();}else{if(B=="refresh"){R.refresh();}}}}}}else{if(!B){N[O]=new E(this,O).init();}else{if(!P&&B){throw"jQuery Finder: Element is not a finder";}}}});};})(jQuery);
\ No newline at end of file
diff --git a/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/ui.finder.css b/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/ui.finder.css
deleted file mode 100644
index 471828d..0000000
--- a/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/ui.finder.css
+++ /dev/null
@@ -1,41 +0,0 @@
-.ui-finder-container {
- height:250px;/* HEIGHT MUST BE SPECIFIED OTHERWISE FINDER CONTENTS NOT VISIBLE*/}
-
-.ui-finder *{margin:0;padding:0;}
-.ui-finder{position:relative;font:1em/1em Verdana,Arial,Helvetica,sans-serif;background-position:0 0 !important ;}
-.ui-finder-wrapper{font-size:0.9em;clear:both;overflow-x:auto !important;overflow-y:hidden !important;}
-.ui-finder-header{padding:10px 0 5px ;}
-.ui-finder-header:after{content:' ';display:block;clear:both;height:0;line-height:0;}
-.ui-finder-title{font-size:0.85em;font-weight:bold;position:absolute;text-align:center;z-index:5;top:5px;left:0;right:0;}
-.ui-finder .ui-finder-container{position:relative;width:auto;}
-.ui-finder .ui-finder-content{border:0px;position:static;}
-.ui-finder .ui-finder-column{
- font-weight:normal;position:absolute;top:1px;left:1px;bottom:1px;border:0px;
- overflow-x:hidden;overflow-y:scroll;}
-.ui-finder .ui-finder-column ul,
-.ui-finder .ui-finder-column ol{list-style:none;margin:0;padding:0;}
-.ui-finder .ui-finder-column .ui-finder-list-item{margin:1px;
- padding:6px 20px 6px 10px;
- line-height:1.3em;position:relative;overflow:hidden;}
-.ui-finder .ui-finder-column .ui-finder-list-item.ui-state-default,
-.ui-finder .ui-finder-column .ui-finder-list-item.ui-state-hover{top:-2px;padding-top:7px;}
-.ui-finder .ui-finder-column .ui-finder-list-item.ui-state-default:first-child,
-.ui-finder .ui-finder-column .ui-finder-list-item.ui-state-hover:first-child{top:-1px;padding-top:6px;}
-.ui-finder .ui-finder-column .ui-finder-list-item ul,
-.ui-finder .ui-finder-column .ui-finder-list-item ol,
-.ui-finder .ui-finder-column .ui-finder-list-item div{display:none;}
-.ui-finder .ui-finder-column .ui-finder-list-item > a{text-decoration:none;cursor:pointer;display:inline-block;outline:none;position:relative;padding:0 0 0 25px;}
-.ui-finder .ui-finder-column .ui-finder-list-item:hover > a{text-decoration:underline;}
-.ui-finder .ui-finder-column .ui-finder-list-item.ui-finder-loading{background-image:url(loading.gif);background-repeat:no-repeat;background-position:right center !important;}
-.ui-finder-list-item.ui-finder-loading .ui-finder-icon-arrow,
-.ui-finder-file .ui-finder-icon-arrow,
-.ui-finder-list-item-file .ui-finder-icon-arrow{visibility:hidden;}
-.ui-finder-button{display:block;float:right;width:35px;height:22px;/*top:-5px;*/
-left:1px;/*margin-left:-1px;*/
-position:relative;}
-.ui-finder-button .ui-icon{left:9px;top:4px;position:absolute;}
-.ui-finder .ui-finder-column .ui-finder-list-item .ui-finder-icon,
-.ui-finder .ui-finder-column .ui-finder-list-item .ui-finder-icon-arrow{display:block;position:absolute;top:25%;z-index:2;}
-.ui-finder .ui-finder-column .ui-finder-list-item .ui-finder-icon-arrow{right:0px;}
-.ui-finder .ui-finder-column .ui-finder-list-item .ui-finder-icon-file,
-.ui-finder .ui-finder-column .ui-finder-list-item .ui-finder-icon-folder{left:0px;top:0px;}
diff --git a/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/ui.finder.ie.css b/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/ui.finder.ie.css
deleted file mode 100644
index 9af112b..0000000
--- a/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/ui.finder.ie.css
+++ /dev/null
@@ -1,13 +0,0 @@
-.ui-finder,
-.ui-finder .ui-finder-wrapper,
-.ui-finder .ui-finder-header {
- height:1%;
- position:relative;
- clear:both;
-}
-.ui-finder .ui-finder-container,
-.ui-finder .ui-finder-content,
-.ui-finder .ui-finder-list-item {
- position:relative;
- hasLayout:true;
-}
\ No newline at end of file
diff --git a/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/ui.finder.js b/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/ui.finder.js
deleted file mode 100644
index f19f7a4..0000000
--- a/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/ui.finder.js
+++ /dev/null
@@ -1,745 +0,0 @@
-/*****************************************************************************
- * jQuery Finder v0.7 - Makes lists into a Finder, similar to Mac OS X
- *
- * @date $Date: 2009-02-27 13:53:16 +0200 (Fri, 27 Feb 2009) $
- * @revision $Rev: 11 $
- * @copy (c) Copyright 2009 Nicolas Rudas. All Rights Reserved.
- * @licence MIT Licensed
- * @discuss groups.google.com/group/jquery-en/browse_thread/thread/480bb6f722b66345
- * @issues code.google.com/p/jqueryfinder/issues/
- * @latest code.google.com/p/jqueryfinder/source
- * @demo nicolas.rudas.info/jquery/finder
- *
- *****************************************************************************
- * Syntax:
- * $(selector).finder() Create a new finder with default options
- *
- * $(selector).finder(options) Create a new finder with additional options
- *
- * $(selector).finder(method,[arguments]) Execute a method on an existing finder
- * - select Select item
- * - refresh Reload currently selected item (cache is ignored)
- * - destroy Completely remove finder
-
- *
- **/
-;(function($){
-
-$.fn.finder = function(o,m){
-// Default options
- var defaults = {
- title : '',
- url : false,
- onInit : function(finderObj) {},
- onRootInit : function(rootList,finderObj){},
- onRootReady : function(newColumn,finderObj){},
- onItemSelect : function(listItem,eventTarget,finderObject){
- return false;
- },
- onItemOpen : function(listItem,newColumn,self){},
- onFolderSelect : function(listItem,eventTarget,finderObject){},
- onFolderOpen : function(listItem,newColumn,self){},
- processData : function(responseText) {
- return $('').append(responseText);
- },
- animate : true,
- cache : false,
- ajax : { cache : false },
- listSelector : false,
- maxWidth : 450,
- classNames : {
- 'ui-finder' : 'ui-widget ui-widget-header',
- 'ui-finder-wrapper' : 'ui-widget-content',
- 'ui-finder-header' : undefined,
- 'ui-finder-title' : undefined,
- 'ui-finder-list-item-active' : 'ui-state-default',
- 'ui-finder-list-item-activeNow' : 'ui-state-hover',
- 'ui-finder-list-item-file' : 'ui-icon-document',
- 'ui-finder-list-item-folder' : 'ui-icon-folder-collapsed',
- 'ui-finder-icon-folder-arrow' : 'ui-icon ui-icon-triangle-1-e'
-
- },
- toolbarActions : function() { return ''; }
-
- };
-
-
-// Keep a reference to all finders created
- var Finders = $.Finders = $.Finders || {};
-
-// Return a new timestamp
-// Usually used for caching URLs, or creating unique identifiers e.g. Finders[ timestamp() ] = new Finder();
- var timestamp = function() { return parseInt(new Date().valueOf(),10); };
-
-// Check if scrollTo Plugin exists
- var scrollToPlugin = $.scrollTo || false;
- if(typeof scrollToPlugin == 'function') {
- scrollToPlugin = true;
- $.scrollTo.defaults.axis = 'xy';
- $.scrollTo.defaults.duration = 900;
- }
-
-// Set some variables (know what we are dealing with)
- var method, opts,
- url = (typeof m == 'string') ? m : null,
- func = (typeof m == 'function') ? m : null,
- _args = arguments;
-
- if(typeof o == 'string') { method = o; }
- else if (typeof o == 'object') { opts = o; }
-
- if(opts) {
- if(opts.classNames) {
- opts.classNames = jQuery.extend(defaults.classNames, opts.classNames); }
- opts = jQuery.extend(defaults, opts);}
- else { opts = defaults;}
-
- /**
- * Finder Constructor
- *
- *
- **/
- function Finder(element,finderId){
- var self = this;
-
- this.cache = {};
-
- this._queue = [];
-
- this.settings = {};
-
- this.id = finderId;
-
- // Reference to initial element - used when destroying Finder
- this.initial = $(element).clone(true);
-
- // Reference to element, used throughout
- this.element = $(element);
- this.element.attr('data-finder-ts',this.id);
-
- // make options internal properties
- for(var i in opts){
- self.settings[i] = opts[i]; }
-
- return this;
- };
-
- /**
- * Initialise Finder
- * Append necessary HTML, bind events etc
- *
- **/
- Finder.prototype.init = function(){
- var self = this,
- toolbarActions = this.settings.toolbarActions.apply(this.element) || '',
- classes = this.settings.classNames,
- uiFinder = classes['ui-finder'] || '',
- uiFinderWrapper = classes['ui-finder-wrapper'] || '',
- uiFinderHeader = classes['ui-finder-header'] || '',
- uiFinderTitle = classes['ui-finder-title'] || '';
-
- // Wrap list to finder-wrapper
- this.element
- .wrap('')
- .wrap('')
- .wrap('');
-
- this.wrapper = this.element.parents('.ui-finder-container');
-
- this.wrapper.parents('.ui-finder')
- .prepend('
'+toolbarActions+'
')
- .prepend('
'+this.settings.title+'
');
-
- this.widget = this.wrapper.parents('.ui-finder');
-
- this._toolbar = $('div.ui-finder-header',this.widget);
-
- this._title = $('div.ui-finder-title',this.widget);
-
- // Bind click events to wrapper so that only one event per finder is specified
- // Click event to handle showing of columns etc
- this.wrapper
- .unbind('click.FinderSelect')
- .bind('click.FinderSelect',function(e){
- var event_target = e.target,
- $event_target = $(event_target);
-
- if(!$event_target.closest('li.ui-finder-list-item').length
- && !$event_target.is('> li.ui-finder-list-item').length
- || $event_target.parents('.ui-finder-column').length === 0 ) {
- return;
- }
-
- // Otherwise 'register' this action in queue
- self.queue($event_target);
-
- // And prevent any other browser actions
- return Boolean(self.lastSelectCallbackReturned);
- });
-
- setTimeout(function() {
- self.settings.onInit.apply(self.element,[self]);
-
- self.settings.listItemBorderColour = $('.ui-widget-header').css('backgroundColor');
-
- // Initialise root list
- self.selectItem('root');
- },0);
-
- return this;
- };
-
- Finder.prototype.title = function(val) {
- this._title.html(val);
- return this;
- };
-
- Finder.prototype.toolbar = function(val) {
- this._toolbar.html(val);
- return this;
- };
-
- /**
- * Queue - Following a click event on a list item or anchor, the queue function is called
- * It stores info about click events so that the script can handle click events
- * on a first-come first-served basis.
- *
- * @param noCache - True when queue function called via 'refresh' API
- * i.e. caching is false when refreshing
- * @param actionType - Either 'select' or 'open', specified only if queue fn
- * called via API (ie. selector.finder('select', ... ))
- **/
- Finder.prototype.queue = function(target,noCache,actionType /* select or open */){
- var self = this,
- wrapper = this.wrapper;
-
- this._queue.push( [target,noCache,actionType] );
-
- // isProcessing is set to true when the Finder is currently 'doing stuff'
- // and set to false when not. So, if its not doing anything right now,
- // continue to process this event
- if(!self.isProcessing) { self.preSelect(); }
-
-
- return this;
- };
-
- /**
- * preSelect - Simple function to determine which item to select
- * based on the current queue => Always first item in queue
- * (first-come, first-served)
- **/
- Finder.prototype.preSelect = function(){
- var self = this,
- q = this._queue;
-
- if(q.length==0) { return;}
-
- self.select.apply(self,q[0]);
-
- return this;
- };
-
- /**
- * Select - Considering the target of a click event, this function determines
- * what to do next by taking into consideration if target was anchor, or list item,
- * and if target was a file or a folder.
- *
- * Note: - Cannot select an item which is not in page (i.e. in sublevels)
- * - When selecting item via API, not selecting levels properly
- **/
- Finder.prototype.select = function(target,noCache,actionType) {
- var self = this,
- wrapper = this.wrapper,
- targetElement = (typeof target == 'string')
- ? $('a[rel="'+target+'"]',wrapper) : $(target),
- eventTarget = targetElement;
-
- if(typeof target.length != 'number') {
- throw 'jQuery Finder: Target must be either a URL or a jQuery/DOM element'; return this; }
-
- if(!targetElement[0]) {
- throw 'jQuery Finder: Target element does not exist'; return this; }
-
- this.isProcessing = true;
-
- var targetList = targetElement.closest('li.ui-finder-list-item'),
- targetA = $('> a:first',targetList),
- targetContainer = targetList.parents('div[data-finder-list-level]:first'),
- targetLevel = targetContainer.attr('data-finder-list-level'),
- type = (targetList.hasClass('ui-finder-file')) ? 'file' : 'folder',
- url = targetA.attr('rel'),
- wrapperLists = $('div.ui-finder-column:visible',wrapper),
- classes = this.settings.classNames,
- classesActive = classes['ui-finder-list-item-active'] || '',
- classesActiveNow = classes['ui-finder-list-item-activeNow'] || '';
-
- // Fix event's target element. Only list and anchor elements make sense
- targetElement = (targetElement[0] !== targetList[0] && targetElement[0] !== targetA[0])
- ? targetList
- : targetElement;
-
- // If select was triggered via API and target was a URL (e.g. finder('select',url))
- // then target is considered to be the list item so as to select item and not open it.
- // This allows user to select an item by providing the URL of an anchor element
- // which would otherwise open the item
- if(actionType == 'select' /*&& typeof target == 'string' *//*&& type == 'file'*/) {
- eventTarget = targetElement = targetList; }
-
- // Currently selected item will no longer be active
- $('.ui-finder-list-item.ui-finder-list-item-activeNow',wrapper)
- .removeClass('ui-finder-list-item-activeNow ' + classesActiveNow );
-
- // Remove visible lists which should not be visible anymore
- wrapperLists.each(function(){
- var finderListWrapper = $(this),
- finderListLevel = finderListWrapper.attr('data-finder-list-level');
-
- if( finderListLevel >= targetLevel ) {
- $('.ui-finder-list-item.ui-finder-list-item-active',finderListWrapper)
- .removeClass('ui-finder-list-item-active ' + classesActive ); }
-
- if( finderListLevel > targetLevel ) {
- finderListWrapper.remove(); }
- });
-
- // Style selected list item
- // active refers to all previously selected list items
- // activeNow refers to the currently active list item
- targetList
- .addClass('ui-finder-list-item-active ' + classesActive)
- .addClass('ui-finder-list-item-activeNow ' + classesActiveNow);
-
- // Scroll to selected item
- // Mostly useful if item not selected following direct user action (e.g. click event)
- if(scrollToPlugin){
- setTimeout(function() {
- targetContainer.scrollTo(targetList); }, 0); }
-
- // Call onSelectItem or onSelectFolder callbacks
- // If callback does not return false,
- // proceed to display item/folder in new column
- var selectCallback, callbackArgs = [targetList,eventTarget,self];
-
- if (type == 'file') {
- selectCallback = self.settings.onItemSelect.apply(self.element,callbackArgs); }
- else {
- selectCallback = self.settings.onFolderSelect.apply(self.element,callbackArgs); }
-
- this.lastSelectCallbackReturned = selectCallback;
-
- // If callback returns false, no new column is added
- // If callback returns true, default browser action is taken (i.e. url followed)
- if( selectCallback !== false && selectCallback !== true) {
- // Notify user of loading action
- targetList.addClass('ui-finder-loading');
-
- // Select item
- self.selectItem(url,noCache,[targetElement,targetList]);
-
- return this; }
-
- // Script will only reach this point when select callbacks return false or true
-
- // Adjust the width of the current columns
- // true param needed so that adjustWidth knows that
- // there are no new columns being added
- this.adjustWidth(true);
-
- // Finalise process (move on with queue etc)
- this.finalise();
-
- return this;
- };
-
- /**
- * Select Item
- *
- * This function retrieves the data to be shown to the user after a click event
- * Finder will only reach this point when select callbacks do not return false
- **/
-
- Finder.prototype.selectItem = function(url,noCache,targets){
- var self = this,
- settings = self.settings,
- target = (targets) ? targets[0] : null,
- listItem = (targets) ? targets[1] : null,
- type = (listItem) ? listItem[0].className.match(/(file|folder)/)[0] : 'folder',
- data = (url == 'root')
- ? (settings.url) ? null : this.element
- : $('> ul, > ol, > div',listItem).eq(0).clone(),
- url = (url == 'root' && typeof settings.url === 'string') ? settings.url : url;
-
- // Process data before appending new column
- var proceed = function(){
- var processData = settings.processData,
- tmp_data = data;
-
- if($.isFunction(processData)) {
- data = processData(data);
- if(!data.length) { data = tmp_data;} }
- else {
- data = $(data); }
-
- // Store data in cache
- self.cache[url] = {
- 'url':url, 'data' : data, 'response': tmp_data,
- 'date': new Date().valueOf(), 'status' : 'success' };
-
- // If just loaded root, call on root init callback
- if(url == settings.url && typeof settings.onRootInit === 'function') {
- settings.onRootInit.apply(self.element,[data,self]); }
-
- if(type == 'folder') {
- // Process data. Find list items and add necessary classes and icons
- $('> ul, > ol',data).eq(0).find('> li').each(function(){
- var $this = $(this),
- thisType,thisTypeClass;
-
- // Get the type of this list item (file or folder)
- if($this.hasClass('ui-finder-folder')) {
- thisType = 'folder'; }
- else if ($this.hasClass('ui-finder-file')) {
- thisType = 'file'; }
-
- // If type (file or folder) is not specified try to figure it out
- else {
- if($this.children('ul,ol').length) {
- $this.addClass('ui-finder-folder');
- thisType = 'folder'; }
- else { // default type is file
- $this.addClass('ui-finder-file');
- thisType = 'file'; }
- }
-
- // Set class for icon
- thisTypeClass = (thisType == 'file')
- ? settings.classNames['ui-finder-list-item-file']
- : settings.classNames['ui-finder-list-item-folder'];
-
- $this
- .addClass('ui-finder-list-item')
- .css('borderColor',settings.listItemBorderColour)
- .append('');
-
- // Remove links
- var anch = $('> a',this),
- anchHref = anch.attr('href') || '_blank'+ new Date().valueOf(),
- anchTitle = anch.attr('title') || '';
-
- if(anch.attr('rel') == anchHref.substring(1) || !anchHref.length) { return;}
-
- anch
- .attr('rel',anchHref)
- .attr('href',anchHref)
- .append('');
-
- if(anchTitle.length == 0) {anch.attr('title',anchHref);}
- });
- }
-
- // Append the new data
- self.appendNewColumn(url,data,[target,listItem],type);
- };
-
- // Folder contents exist and no refresh
- if(data && data.length && !noCache) { proceed(); }
-
- // Folder content exist, and refresh, but no URL
- else if(data && data.length && noCache && url.match(/_blank\d+/)) { proceed(); }
-
- // Caching and data somewhere in cache
- else if( typeof this.cache[url] == 'object' && this.settings.cache && !noCache) {
- if(this.cache[url].status == 'success' ) {
- data = this.cache[url].data;
- proceed();
- }
- }
- // No data yet, so retrieve from URL
- else if(!url.match(/_blank\d+/)) {
- $.ajax({
- url : url, cache : self.settings.ajax.cache,
- success: function(response){
- data = response;
- },
- error: function(xhr,response){
- data = response;
- },
- complete : function(){
- proceed();
- }
- });
- }
-
- return this;
- };
-
- /***
- * Append new Column - Function to append a new column to finder
- * called from selectItem function
- *
- * Triggers Callback functions for OpenItem or OpenFolder !
- ***/
- Finder.prototype.appendNewColumn = function(url,data,targets,type){
- var self = this,
- target = (targets) ? targets[0] : null,
- listItem = (targets) ? targets[1] : null,
- targetParent = (listItem)
- ? listItem.parents('div[data-finder-list-level]:first') : null,
- columnId = url.replace(/[\W\s]*/g,''),
- columnLevel = (function(){
- if (url == self.settings.url || url == 'root') { return 0; }
- return parseInt(targetParent.attr('data-finder-list-level'),10) + 1;
- })();
-
- // If column already exists, remove it
- var newColumn = $('div[data-finder-list-id="'+columnId+'"]');
- if(newColumn.length > 0) { newColumn[0].parentNode.removeChild(newColumn[0]); }
-
- // Specify new column, and add necessary attributes
- newColumn = $('')
- // Avoid showing the column when it's not yet ready
- // Also, setting display to none makes DOM manipulation a bit faster
- .css('display','none')
- .attr('data-finder-list-id',columnId)
- .attr('data-finder-list-source',url)
- .attr('data-finder-list-level',columnLevel)
- .css('z-index',0); // Keep beneath other columns
-
- // Append new column
- // Plain DOM scripting used as opposed to jQuery as it's faster
- self.wrapper[0].appendChild(newColumn[0]);
-
- newColumn[0].appendChild($(data)[0]);
-
- // Adjust the width of the Finder
- // but make sure that column is appended & parsed (timeout = 0)
- setTimeout(function(){
- self.adjustWidth(false,newColumn,url);},0);
-
- // Call onOpenItem or onOpenFolder callback if target was anchor
- // Note: target check necessary, root list has no target
- if(target && target[0] && target.is('a')) {
- var callbackArgs = [listItem,newColumn,self];
- if(type == 'file') { self.settings.onItemOpen.apply(self.element,callbackArgs); }
- else { self.settings.onFolderOpen.apply(self.element,callbackArgs); }
- }
-
- return this;
- };
-
- /***
- * Adjust Width - Adjust the width of the columns and the wrapper element
- * param ignoreNew is true when select callbacks return false
- ***/
- Finder.prototype.adjustWidth = function(ignoreNew,newColumn,url){
- var self = this,
- wrapper = this.wrapper;
-
- newColumn = newColumn || $('div[data-finder-list-id]:visible:last',wrapper);
-
- // Get all siblings of the new column
- // i.e those visible and not the last, as new column is always last
- var columns = (!ignoreNew)
- ? wrapper.children('div[data-finder-list-id]:not(.ui-finder-new-col):visible')
- : wrapper.children('div[data-finder-list-id]:visible:not(:last)'),
- width = 0;
-
- newColumn.removeClass('ui-finder-new-col');
-
- // Prevent previous columns from taking up all the space (width)
- columns.css('right','auto');
-
- // Calculate the space taken by the visible columns
- // The total width of these columns will be set as
- // the left property of the new column (so that each column appears next to each other)
- columns.each(function() {
- $(this)
- .width('auto')
- // Explicitly setting the width of the column fixes some issues in IE.
- // The 20px padding is needed for Webkit browsers (don't know why)
- .width( $(this).outerWidth() + 20 );
-
- width += $(this).width();});
-
- // Account for Y axis scrollbar (only if it wasn't accounted before)
- // The value specified will be added to the new column's width
- var yScroll = 10,// ($.browser.msie && $.browser.version < 8) ? 10 : 5,
- accountYScroll = ( !newColumn.data('yscroll') ) ? yScroll : 0;
-
- // Need to know the width of the new column (newColumnWidth),
- // the total width of all columns (newWidth),
- // the current width of the wrapper element (currentWidth),
- // and the available width (specified in wrapper's parent)
- var _tmpNewColumnWidth = newColumn.width(),
- newColumnWidth = (self.settings.maxWidth && _tmpNewColumnWidth > self.settings.maxWidth)
- ? self.settings.maxWidth : _tmpNewColumnWidth + accountYScroll,
- newWidth = width + newColumnWidth,
- currentWidth = wrapper.width(),
- availableWidth = wrapper.parent().width();
-
- // Mark column as y scrollbar fixed
- newColumn.data('yscroll',true);
-
- // Adjust the width of the wrapper element. As columns as absolutely positioned
- // no horizontal scrollbars appear if the total width of the columns exceeds the space available.
- // By setting the width of the wrapper element to that of the columns, a horizontal scrollbar appears.
- if ( newWidth > availableWidth || newWidth < currentWidth
- && currentWidth > availableWidth && newWidth != currentWidth) {
-
- // If going from multiple levels down (ie. many columns) to a higher level
- // (ie. to few columns) the new width will be less than available.
- // Also if theres only one column visible (ie. root) newWidth will equal newColumnWidth.
- // In these cases make sure Finder takes up all available space.
- if(newColumnWidth == newWidth || newWidth < availableWidth) { newWidth = 'auto'; }
-
- // Account for Y axis scrollbar
- // This adds the necessary width when moving backwards
- accountYScroll = ( newWidth != 'auto' && newWidth != currentWidth ) ? yScroll : '';
-
- // Set width to new
- wrapper.width( newWidth + accountYScroll);
- }
-
- // As the column is absolutely positioned, its left property
- // must be specified
- newColumn.css('left',width);
-
- // Make the new column take up all available space
- // this must be set AFTER new column's width has been retrieved
- // otherwise the value is not true
- newColumn.css('right',0);
-
- // By setting the z-index of the new column to '2'
- // it prevents subsequent columns from being above it
- // whilst their css properties (left & right) are being set.
- // For this to be effective columns must have a background specified
- // (CSS class: .ui-finder-column)
- newColumn.css('z-index',2);
-
- // Set display to block so that we can scroll to the new column
- // Set visibility to hidden to avoid flicker if animation is required
- newColumn.css({'display':'block','visibility':'hidden'});
-
- // Scroll to new column
- if(newColumn && scrollToPlugin){
- this.wrapper.parent().scrollTo(newColumn); }
-
- // ignoreNew exists when select callbacks return FALSE
- // i.e. no new column was appended, but width of existing columns
- // and wrapper still need fixing
- if(!ignoreNew && this.settings.animate) {
- // Animate column if desired
- var duration = (!isNaN(this.settings.animate)) ? this.settings.animate : 500;
- // To animate the column we cannot use its width value (its 0)
- // but we can use its left property to calculate the width it currently occupies.
- // Pixels from left - total pixels = pixels available for the column (i.e. width)
- var fromLeft = newColumn.css('left').replace(/\D/g,''),
- fromRight = wrapper.width() - fromLeft;
-
- // So by setting the column's right property to the calculated value
- // and keeping its left property, the column becomes insivible
- // The animation then decreases the right property gradually to zero
- // to make the column visible
- newColumn
- .css('overflow-y','hidden') // avoid showing a scroll bar whilst animating
- .css('right',fromRight)
- .css('visibility','visible')
- .animate({'right':0 },{
- duration:duration,
- complete:function(){
- newColumn.css('overflow-y','scroll');
- self.finalise(newColumn,url); }
- });
- }
- // No animation, just show the new column
- else {
- newColumn.css('visibility','visible');
- self.finalise(newColumn,url); }
-
- return this;
- };
-
- Finder.prototype.finalise = function(newColumn,url){
- // Remove any loading classes
- $('div.ui-finder-column .ui-finder-list-item.ui-finder-loading',this.wrapper)
- .removeClass('ui-finder-loading');
-
- // Specify that script is done processing (used in queing)
- this.isProcessing = false;
-
- // Remove last item from queue
- // and if there are more items, move on
- this._queue.shift();
- if(this._queue.length > 0) {
- this.preSelect(); }
-
- // If just loaded root, call on root ready callback
- if(url == this.settings.url && typeof this.settings.onRootReady === 'function') {
- this.settings.onRootReady.apply(this.element,[newColumn,this]); }
-
- return this;
- };
-
- Finder.prototype.destroy = function(){
- // Unbind events
- this.wrapper
- .unbind('click.FinderSelect');
-
- // Remove Finder's HTML, append initial element
- this.element.parents('.ui-finder').replaceWith(this.initial);
-
- // Delete reference to Finder
- delete Finders[this.id];
-
- return this;
- };
-
- Finder.prototype.current = function(){
- var current = $('.ui-state-hover',this.wrapper).find('a:first');
- return (current.length>0) ? current : null;
- };
-
- Finder.prototype.refresh = function(){
- var current = this.current();
-
- if(current) { this.queue(current,true); }
- else { this.selectItem('root',true); }
-
- return this;
- };
-
- var _finder = Finders[ $(this).eq(0).attr('data-finder-ts') ];
-
- if(method == 'current' && _finder) { return _finder.current(); }
- else if(method == 'get' && _finder) { return _finder; }
-
- return this.each(function(){
- var finderId = $(this).attr('data-finder-ts') || null,
- timeStamp = new Date().valueOf();
-
- // If name of method provided
- // execute method
- if(finderId && method) {
- var finder = Finders[finderId];
-
- // Access private methods
- if(method == 'select' && m) {
- if(m.constructor == Array) {
- m = m.reverse();
- for (var i = m.length - 1; i >= 0; i--){
- finder.queue(m[i],false,method); }
- }
- else { finder.queue(m,false,method); }
- }
- else if(method == 'title') { finder.title(m); }
- else if(method == 'toolbar') { finder.toolbar(m); }
- else if(method == 'destroy') { finder.destroy(); }
- else if(method == 'refresh') { finder.refresh(); }
- }
- // If no method provided new finder is created
- else if (!method) { Finders[timeStamp] = new Finder(this,timeStamp).init(); }
- else if (!finderId && method) { throw 'jQuery Finder: Element is not a finder'; }
- });
-};})(jQuery);
\ No newline at end of file
diff --git a/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/ui.theme.css b/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/ui.theme.css
deleted file mode 100644
index 55f543c..0000000
--- a/ktatompub/Client/js/@research/jqueryfinder-0.7.0.1/ui.theme.css
+++ /dev/null
@@ -1,243 +0,0 @@
-
-
-/*
-* jQuery UI CSS Framework
-* Copyright (c) 2009 AUTHORS.txt (http://ui.jquery.com/about)
-* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
-* To view and modify this theme, visit http://ui.jquery.com/themeroller/?tr=&ffDefault=Verdana,Arial,sans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
-*/
-
-
-/* Component containers
-----------------------------------*/
-.ui-widget { font-family: Verdana,Arial,sans-serif; font-size: 1.1em; }
-.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Verdana,Arial,sans-serif; font-size: 1em; }
-.ui-widget-header { border: 1px solid #aaaaaa; background: #cccccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; color: #222222; font-weight: bold; }
-.ui-widget-header a { color: #222222; }
-.ui-widget-content { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; color: #222222; }
-.ui-widget-content a { color: #222222; }
-
-/* Interaction states
-----------------------------------*/
-.ui-state-default, .ui-widget-content .ui-state-default { border: 1px solid #d3d3d3; background: #e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #555555; outline: none; }
-.ui-state-default a { color: #555555; text-decoration: none; outline: none; }
-.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus { border: 1px solid #999999; background: #dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; outline: none; }
-.ui-state-hover a { color: #212121; text-decoration: none; outline: none; }
-.ui-state-active, .ui-widget-content .ui-state-active { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; outline: none; }
-.ui-state-active a { color: #212121; outline: none; text-decoration: none; }
-
-/* Interaction Cues
-----------------------------------*/
-.ui-state-highlight, .ui-widget-content .ui-state-highlight {border: 1px solid #fcefa1; background: #fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x; color: #363636; }
-.ui-state-error, .ui-widget-content .ui-state-error {border: 1px solid #cd0a0a; background: #fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x; color: #cd0a0a; }
-.ui-state-error-text, .ui-widget-content .ui-state-error-text { color: #cd0a0a; }
-.ui-state-disabled, .ui-widget-content .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
-.ui-priority-primary, .ui-widget-content .ui-priority-primary { font-weight: bold; }
-.ui-priority-secondary, .ui-widget-content .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
-
-/* Icons
-----------------------------------*/
-
-/* states and images */
-.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
-.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
-.ui-widget-header .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
-.ui-state-default .ui-icon { background-image: url(images/ui-icons_888888_256x240.png); }
-.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); }
-.ui-state-active .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); }
-.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_2e83ff_256x240.png); }
-.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_cd0a0a_256x240.png); }
-
-/* positioning */
-.ui-icon-carat-1-n { background-position: 0 0; }
-.ui-icon-carat-1-ne { background-position: -16px 0; }
-.ui-icon-carat-1-e { background-position: -32px 0; }
-.ui-icon-carat-1-se { background-position: -48px 0; }
-.ui-icon-carat-1-s { background-position: -64px 0; }
-.ui-icon-carat-1-sw { background-position: -80px 0; }
-.ui-icon-carat-1-w { background-position: -96px 0; }
-.ui-icon-carat-1-nw { background-position: -112px 0; }
-.ui-icon-carat-2-n-s { background-position: -128px 0; }
-.ui-icon-carat-2-e-w { background-position: -144px 0; }
-.ui-icon-triangle-1-n { background-position: 0 -16px; }
-.ui-icon-triangle-1-ne { background-position: -16px -16px; }
-.ui-icon-triangle-1-e { background-position: -32px -16px; }
-.ui-icon-triangle-1-se { background-position: -48px -16px; }
-.ui-icon-triangle-1-s { background-position: -64px -16px; }
-.ui-icon-triangle-1-sw { background-position: -80px -16px; }
-.ui-icon-triangle-1-w { background-position: -96px -16px; }
-.ui-icon-triangle-1-nw { background-position: -112px -16px; }
-.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
-.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
-.ui-icon-arrow-1-n { background-position: 0 -32px; }
-.ui-icon-arrow-1-ne { background-position: -16px -32px; }
-.ui-icon-arrow-1-e { background-position: -32px -32px; }
-.ui-icon-arrow-1-se { background-position: -48px -32px; }
-.ui-icon-arrow-1-s { background-position: -64px -32px; }
-.ui-icon-arrow-1-sw { background-position: -80px -32px; }
-.ui-icon-arrow-1-w { background-position: -96px -32px; }
-.ui-icon-arrow-1-nw { background-position: -112px -32px; }
-.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
-.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
-.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
-.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
-.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
-.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
-.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
-.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
-.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
-.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
-.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
-.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
-.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
-.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
-.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
-.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
-.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
-.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
-.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
-.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
-.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
-.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
-.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
-.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
-.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
-.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
-.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
-.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
-.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
-.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
-.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
-.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
-.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
-.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
-.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
-.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
-.ui-icon-arrow-4 { background-position: 0 -80px; }
-.ui-icon-arrow-4-diag { background-position: -16px -80px; }
-.ui-icon-extlink { background-position: -32px -80px; }
-.ui-icon-newwin { background-position: -48px -80px; }
-.ui-icon-refresh { background-position: -64px -80px; }
-.ui-icon-shuffle { background-position: -80px -80px; }
-.ui-icon-transfer-e-w { background-position: -96px -80px; }
-.ui-icon-transferthick-e-w { background-position: -112px -80px; }
-.ui-icon-folder-collapsed { background-position: 0 -96px; }
-.ui-icon-folder-open { background-position: -16px -96px; }
-.ui-icon-document { background-position: -32px -96px; }
-.ui-icon-document-b { background-position: -48px -96px; }
-.ui-icon-note { background-position: -64px -96px; }
-.ui-icon-mail-closed { background-position: -80px -96px; }
-.ui-icon-mail-open { background-position: -96px -96px; }
-.ui-icon-suitcase { background-position: -112px -96px; }
-.ui-icon-comment { background-position: -128px -96px; }
-.ui-icon-person { background-position: -144px -96px; }
-.ui-icon-print { background-position: -160px -96px; }
-.ui-icon-trash { background-position: -176px -96px; }
-.ui-icon-locked { background-position: -192px -96px; }
-.ui-icon-unlocked { background-position: -208px -96px; }
-.ui-icon-bookmark { background-position: -224px -96px; }
-.ui-icon-tag { background-position: -240px -96px; }
-.ui-icon-home { background-position: 0 -112px; }
-.ui-icon-flag { background-position: -16px -112px; }
-.ui-icon-calendar { background-position: -32px -112px; }
-.ui-icon-cart { background-position: -48px -112px; }
-.ui-icon-pencil { background-position: -64px -112px; }
-.ui-icon-clock { background-position: -80px -112px; }
-.ui-icon-disk { background-position: -96px -112px; }
-.ui-icon-calculator { background-position: -112px -112px; }
-.ui-icon-zoomin { background-position: -128px -112px; }
-.ui-icon-zoomout { background-position: -144px -112px; }
-.ui-icon-search { background-position: -160px -112px; }
-.ui-icon-wrench { background-position: -176px -112px; }
-.ui-icon-gear { background-position: -192px -112px; }
-.ui-icon-heart { background-position: -208px -112px; }
-.ui-icon-star { background-position: -224px -112px; }
-.ui-icon-link { background-position: -240px -112px; }
-.ui-icon-cancel { background-position: 0 -128px; }
-.ui-icon-plus { background-position: -16px -128px; }
-.ui-icon-plusthick { background-position: -32px -128px; }
-.ui-icon-minus { background-position: -48px -128px; }
-.ui-icon-minusthick { background-position: -64px -128px; }
-.ui-icon-close { background-position: -80px -128px; }
-.ui-icon-closethick { background-position: -96px -128px; }
-.ui-icon-key { background-position: -112px -128px; }
-.ui-icon-lightbulb { background-position: -128px -128px; }
-.ui-icon-scissors { background-position: -144px -128px; }
-.ui-icon-clipboard { background-position: -160px -128px; }
-.ui-icon-copy { background-position: -176px -128px; }
-.ui-icon-contact { background-position: -192px -128px; }
-.ui-icon-image { background-position: -208px -128px; }
-.ui-icon-video { background-position: -224px -128px; }
-.ui-icon-script { background-position: -240px -128px; }
-.ui-icon-alert { background-position: 0 -144px; }
-.ui-icon-info { background-position: -16px -144px; }
-.ui-icon-notice { background-position: -32px -144px; }
-.ui-icon-help { background-position: -48px -144px; }
-.ui-icon-check { background-position: -64px -144px; }
-.ui-icon-bullet { background-position: -80px -144px; }
-.ui-icon-radio-off { background-position: -96px -144px; }
-.ui-icon-radio-on { background-position: -112px -144px; }
-.ui-icon-pin-w { background-position: -128px -144px; }
-.ui-icon-pin-s { background-position: -144px -144px; }
-.ui-icon-play { background-position: 0 -160px; }
-.ui-icon-pause { background-position: -16px -160px; }
-.ui-icon-seek-next { background-position: -32px -160px; }
-.ui-icon-seek-prev { background-position: -48px -160px; }
-.ui-icon-seek-end { background-position: -64px -160px; }
-.ui-icon-seek-first { background-position: -80px -160px; }
-.ui-icon-stop { background-position: -96px -160px; }
-.ui-icon-eject { background-position: -112px -160px; }
-.ui-icon-volume-off { background-position: -128px -160px; }
-.ui-icon-volume-on { background-position: -144px -160px; }
-.ui-icon-power { background-position: 0 -176px; }
-.ui-icon-signal-diag { background-position: -16px -176px; }
-.ui-icon-signal { background-position: -32px -176px; }
-.ui-icon-battery-0 { background-position: -48px -176px; }
-.ui-icon-battery-1 { background-position: -64px -176px; }
-.ui-icon-battery-2 { background-position: -80px -176px; }
-.ui-icon-battery-3 { background-position: -96px -176px; }
-.ui-icon-circle-plus { background-position: 0 -192px; }
-.ui-icon-circle-minus { background-position: -16px -192px; }
-.ui-icon-circle-close { background-position: -32px -192px; }
-.ui-icon-circle-triangle-e { background-position: -48px -192px; }
-.ui-icon-circle-triangle-s { background-position: -64px -192px; }
-.ui-icon-circle-triangle-w { background-position: -80px -192px; }
-.ui-icon-circle-triangle-n { background-position: -96px -192px; }
-.ui-icon-circle-arrow-e { background-position: -112px -192px; }
-.ui-icon-circle-arrow-s { background-position: -128px -192px; }
-.ui-icon-circle-arrow-w { background-position: -144px -192px; }
-.ui-icon-circle-arrow-n { background-position: -160px -192px; }
-.ui-icon-circle-zoomin { background-position: -176px -192px; }
-.ui-icon-circle-zoomout { background-position: -192px -192px; }
-.ui-icon-circle-check { background-position: -208px -192px; }
-.ui-icon-circlesmall-plus { background-position: 0 -208px; }
-.ui-icon-circlesmall-minus { background-position: -16px -208px; }
-.ui-icon-circlesmall-close { background-position: -32px -208px; }
-.ui-icon-squaresmall-plus { background-position: -48px -208px; }
-.ui-icon-squaresmall-minus { background-position: -64px -208px; }
-.ui-icon-squaresmall-close { background-position: -80px -208px; }
-.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
-.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
-.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
-.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
-.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
-.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
-
-
-/* Misc visuals
-----------------------------------*/
-
-/* Corner radius */
-.ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; }
-.ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; }
-.ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; }
-.ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; }
-.ui-corner-top { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; }
-.ui-corner-bottom { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; }
-.ui-corner-right { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; }
-.ui-corner-left { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; }
-.ui-corner-all { -moz-border-radius: 4px; -webkit-border-radius: 4px; }
-
-/* Overlays */
-.ui-widget-overlay { background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); }
-.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -webkit-border-radius: 8px; }
\ No newline at end of file
diff --git a/ktatompub/Client/js/APP/KT_atom_server.js b/ktatompub/Client/js/APP/KT_atom_server.js
deleted file mode 100644
index e42a21a..0000000
--- a/ktatompub/Client/js/APP/KT_atom_server.js
+++ /dev/null
@@ -1,107 +0,0 @@
-KT_atom_server=new function(){
- this.xmlhelpers=new function(){
- this.getTagContents=function(node,tagName){
- return $(node).find(tagName)[0].textContent;
- }
- }
-
- this.set=function(element,value){
- if(element.tagName!=undefined){
- switch ((''+element.tagName+'').toLowerCase() ){
- case 'input':
- $(element).val(value);
- break;
- default:
- $(element).html(value);
- }
- }
- }
-};
-
-
-KT_atom_server.folder=new function(){
- this.fieldList={
- 'folder_id' :'id',
- 'folder_name' :'folder_name',
- 'folder_path' :'full_path',
- 'folder_permissions' :'permissions'
- };
- this.data={};
-
- this.parseXML=function(entry){
- this.data={};
- for(var lFname in this.fieldList){
- this.data[lFname]=KT_atom_server.xmlhelpers.getTagContents(entry,this.fieldList[lFname]);
- }
- }
-
- this.renderContainer=function(containerId){
- var elem=lib.def(document.getElementById(containerId),window.document.body);
- for(var field in this.fieldList){
- $("."+field,elem).each(function(){
- KT_atom_server.set(this,KT_atom_server.folder.data[field]);
- });
- }
- }
-}
-
-KT_atom_server.serviceDoc=new function(){
- this.parseXML=function(data,workspace){
- $('workspace',data).each(function(){
- var ws=$(this);
- lib.debug.inspect($(ws[0].childNodes));
- if($('title',this)[0].textContent==workspace){
- alert('found workspace '+workspace)
- }
- });
- }
-}
-
-
-KT_atom_server.document=new function(){
- this.fieldList={
- 'document_id' :'document_id',
- 'document_title' :'title',
- 'document_custom_no' :'custom_document_no',
- 'document_oem_no' :'oem_document_no',
- 'document_type' :'document_type',
- 'document_filename' :'filename',
- 'document_file_size' :'filesize',
- 'document_full_path' :'full_path',
- 'document_created_by' :'created_by',
- 'document_created_on' :'created_date',
- 'document_modified_by' :'modified_by',
- 'document_modified_on' :'modified_date',
- 'document_checkout_by' :'checked_out_by',
- 'document_checkout_on' :'checked_out_date',
- 'document_owned_by' :'owned_by',
- 'document_version' :'version',
- 'document_content_id' :'content_id',
- 'document_immutable' :'is_immutable',
- 'document_permissions' :'permissions',
- 'document_workflow' :'workflow',
- 'document_workflow_state' :'workflow_state',
- 'document_mime_type' :'mime_type',
- 'document_mime_display' :'mime_display',
- 'document_storage_path' :'storage_path',
- 'document_download_url' :'downloaduri'
- };
- this.data={};
-
- this.parseXML=function(entry){
- this.data={};
- for(var lFname in this.fieldList){
- this.data[lFname]=KT_atom_server.xmlhelpers.getTagContents(entry,this.fieldList[lFname]);
- }
-
- }
-
- this.renderContainer=function(containerId){
- var elem=lib.def(document.getElementById(containerId),window.document.body);
- for(var field in this.fieldList){
- $("."+field,elem).each(function(){
- KT_atom_server.set(this,KT_atom_server.document.data[field]);
- });
- }
- }
-}
\ No newline at end of file
diff --git a/ktatompub/Client/js/APP/app.js b/ktatompub/Client/js/APP/app.js
deleted file mode 100644
index fc283e0..0000000
--- a/ktatompub/Client/js/APP/app.js
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- * AtomPub Handlers
- *
- * This library formats compliant AtomPub requests, handles server interaction
- * and interprets the results back into JSON
- */
-APP=new function(){
- this.GET=function(url){
-
- }
-
- this.PUT=function(){
- }
-
- this.POST=function(){
- }
-
- this.DELETE=function(){
- }
-
-}
\ No newline at end of file
diff --git a/ktatompub/Client/js/APP/ktApp.js b/ktatompub/Client/js/APP/ktApp.js
deleted file mode 100644
index b55f885..0000000
--- a/ktatompub/Client/js/APP/ktApp.js
+++ /dev/null
@@ -1,141 +0,0 @@
-KT_atom_server=new function(){
- this.xmlhelpers=new function(){
- this.getTagContents=function(node,tagName){
- return $(node).find(tagName)[0].textContent;
- }
- }
-
- this.set=function(element,value){
- //lib.debug.info('Setting Element '+element.id+' value: '+value);
- if(element.tagName!=undefined){
- switch ((''+element.tagName+'').toLowerCase() ){
- case 'input':
- $(element).val(value);
- break;
- default:
- $(element).html(value);
- }
- }
- }
-};
-
-/**
- $('.folder_id',elem).html($(entry).find('id')[0].textContent);
- $('.folder_name',elem).html($(entry).find('folder_name')[0].textContent);
- $('.folder_path',elem).html($(entry).find('full_path')[0].textContent);
- $('.folder_permissions',elem).html($(entry).find('permissions')[0].textContent);
- */
-
-/*
- $('.document_id',elem).html($(entry).find('document_id')[0].textContent);
- $('.document_title',elem).html($(entry).find('title')[0].textContent);
- $('.document_custom_no',elem).html($(entry).find('custom_document_no')[0].textContent);
- $('.document_oem_no',elem).html($(entry).find('oem_document_no')[0].textContent);
- $('.document_type',elem).html($(entry).find('document_type')[0].textContent);
- $('.document_filename',elem).html($(entry).find('filename')[0].textContent);
- $('.document_file_size',elem).html($(entry).find('filesize')[0].textContent);
- $('.document_full_path',elem).html($(entry).find('full_path')[0].textContent);
- $('.document_created_by',elem).html($(entry).find('created_by')[0].textContent);
- $('.document_created_on',elem).html($(entry).find('created_date')[0].textContent);
- $('.document_checkout_by',elem).html($(entry).find('checked_out_by')[0].textContent);
- $('.document_checkout_on',elem).html($(entry).find('checked_out_date')[0].textContent);
- $('.document_modified_by',elem).html($(entry).find('modified_by')[0].textContent);
- $('.document_modified_on',elem).html($(entry).find('modified_date')[0].textContent);
- $('.document_owned_by',elem).html($(entry).find('owned_by')[0].textContent);
- $('.document_version',elem).html($(entry).find('version')[0].textContent);
- $('.document_content_id',elem).html($(entry).find('content_id')[0].textContent);
- $('.document_immutable',elem).html($(entry).find('is_immutable')[0].textContent);
- $('.document_permissions',elem).html($(entry).find('permissions')[0].textContent);
- $('.document_workflow',elem).html($(entry).find('workflow')[0].textContent);
- $('.document_workflow_state',elem).html($(entry).find('workflow_state')[0].textContent);
- $('.document_mime_type',elem).html($(entry).find('mime_type')[0].textContent);
- $('.document_mime_display',elem).html($(entry).find('mime_display')[0].textContent);
- $('.document_storage_path',elem).html($(entry).find('storage_path')[0].textContent);
-
- */
-KT_atom_server.folder=new function(){
- this.fieldList={
- 'folder_id' :'id',
- 'folder_name' :'folder_name',
- 'folder_path' :'full_path',
- 'folder_permissions' :'permissions'
- };
- this.data={};
-
- this.parseXML=function(entry){
- this.data={};
- for(var lFname in this.fieldList){
- this.data[lFname]=KT_atom_server.xmlhelpers.getTagContents(entry,this.fieldList[lFname]);
- }
- }
-
- this.renderContainer=function(containerId){
- var elem=lib.def(document.getElementById(containerId),window.document.body);
- for(var field in this.fieldList){
- $("."+field,elem).each(function(){
- KT_atom_server.set(this,KT_atom_server.folder.data[field]);
- });
- }
- }
-}
-
-KT_atom_server.serviceDoc=new function(){
- this.parseXML=function(data,workspace){
- $('workspace',data).each(function(){
- var ws=$(this);
- lib.debug.inspect($(ws[0].childNodes).);
- if($('title',this)[0].textContent==workspace){
- alert('found workspace '+workspace)
- }
- });
- }
-}
-
-
-KT_atom_server.document=new function(){
- this.fieldList={
- 'document_id' :'document_id',
- 'document_title' :'title',
- 'document_custom_no' :'custom_document_no',
- 'document_oem_no' :'oem_document_no',
- 'document_type' :'document_type',
- 'document_filename' :'filename',
- 'document_file_size' :'filesize',
- 'document_full_path' :'full_path',
- 'document_created_by' :'created_by',
- 'document_created_on' :'created_date',
- 'document_modified_by' :'modified_by',
- 'document_modified_on' :'modified_date',
- 'document_checkout_by' :'checked_out_by',
- 'document_checkout_on' :'checked_out_date',
- 'document_owned_by' :'owned_by',
- 'document_version' :'version',
- 'document_content_id' :'content_id',
- 'document_immutable' :'is_immutable',
- 'document_permissions' :'permissions',
- 'document_workflow' :'workflow',
- 'document_workflow_state' :'workflow_state',
- 'document_mime_type' :'mime_type',
- 'document_mime_display' :'mime_display',
- 'document_storage_path' :'storage_path',
- 'document_download_url' :'downloaduri'
- };
- this.data={};
-
- this.parseXML=function(entry){
- this.data={};
- for(var lFname in this.fieldList){
- this.data[lFname]=KT_atom_server.xmlhelpers.getTagContents(entry,this.fieldList[lFname]);
- }
-
- }
-
- this.renderContainer=function(containerId){
- var elem=lib.def(document.getElementById(containerId),window.document.body);
- for(var field in this.fieldList){
- $("."+field,elem).each(function(){
- KT_atom_server.set(this,KT_atom_server.document.data[field]);
- });
- }
- }
-}
\ No newline at end of file
diff --git a/ktatompub/Client/js/chili-2.2/start-here.html b/ktatompub/Client/js/chili-2.2/start-here.html
deleted file mode 100644
index ee0f6f5..0000000
--- a/ktatompub/Client/js/chili-2.2/start-here.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
accessing the quick start page...
-
-
diff --git a/ktatompub/Client/js/chili/cplusplus.js b/ktatompub/Client/js/chili/cplusplus.js
deleted file mode 100644
index a1725eb..0000000
--- a/ktatompub/Client/js/chili/cplusplus.js
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
-===============================================================================
-Chili is the jQuery code highlighter plugin
-...............................................................................
-LICENSE: http://www.opensource.org/licenses/mit-license.php
-WEBSITE: http://noteslog.com/chili/
-
- Copyright 2008 / Andrea Ercolino
-===============================================================================
-*/
-
-{
- _name: "cpp"
- , _case: true
- , _main: {
- mlcom : {
- _match: /\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\//
- , _style: "color: #4040c2;"
- }
- , com : {
- _match: /\/\/.*/
- , _style: "color: green;"
- }
- , preproc : {
- _match: /(?=^|\n)\s*#\w+/
- , _style: "color: red;"
- }
- , string : {
- _match: /(?:\'[^\'\\\n]*(?:\\.[^\'\\\n]*)*\')|(?:\"[^\"\\\n]*(?:\\.[^\"\\\n]*)*\")/
- , _style: "color: teal;"
- }
- , number : {
- _match: /\b[+-]?(?:\d*\.?\d+|\d+\.?\d*)(?:[eE][+-]?\d+)?\b/
- , _style: "color: red;"
- }
- , datatype: {
- _match: /\b(?:wint_t|wctype_t|wctrans_t|wchar_t|va_list|uintptr_t|tm|time_t|terminate_function|size_t|signed|sig_atomic_t|short|ptrdiff_t|mbstate_t|long|ldiv_t|lconv|jmp_buf|intptr_t|int|fpos_t|float|double|div_t|clock_t|char|bool|_wfinddatai64_t|_wfinddata_t|_utimbuf|_timeb|_stati64|_stat|_purecall_handler|_onexit_t|_off_t|_finddatai64_t|_finddata_t|_exception|_diskfree_t|_dev_t|_complex|__wfinddata64_t|__wchar_t|__timeb64|__time64_t|__stat64|__int8|__int64|__int32|__int16|__finddata64_t|_PNH|_HFILE|_HEAPINFO|_FPIEEE_RECORD|_EXCEPTION_POINTERS|WPARAM|WORD|WCHAR|VOID|USN|USHORT|ULONG_PTR|ULONGLONG|ULONG64|ULONG32|ULONG|UINT_PTR|UINT64|UINT32|UINT|UHALF_PTR|UCHAR|TCHAR|TBYTE|SSIZE_T|SIZE_T|SHORT|SERVICE_STATUS_HANDLE|SC_LOCK|SC_HANDLE|PWSTR|PWORD|PWCHAR|PVOID|PUSHORT|PULONG_PTR|PULONGLONG|PULONG64|PULONG32|PULONG|PUINT_PTR|PUINT64|PUINT32|PUINT|PUHALF_PTR|PUCHAR|PTSTR|PTCHAR|PTBYTE|PSTR|PSSIZE_T|PSIZE_T|PSHORT|POINTER_64|POINTER_32|PLONG_PTR|PLONGLONG|PLONG64|PLONG32|PLONG|PLCID|PINT_PTR|PINT64|PINT32|PINT|PHKEY|PHANDLE|PHALF_PTR|PFLOAT|PDWORD_PTR|PDWORDLONG|PDWORD64|PDWORD32|PCWSTR|PCTSTR|PCSTR|PCHAR|PBYTE|PBOOLEAN|PBOOL|LRESULT|LPWSTR|LPWORD|LPVOID|LPTSTR|LPSTR|LPLONG|LPINT|LPHANDLE|LPDWORD|LPCWSTR|LPCVOID|LPCTSTR|LPCSTR|LPCOLORREF|LPBYTE|LPBOOL|LPARAM|LONG_PTR|LONGLONG|LONG64|LONG32|LONG|LGRPID|LCTYPE|LCID|LANGID|INT_PTR|INT64|INT32|INT|HWND|HWINSTA|HSZ|HRSRC|HRGN|HRESULT|HPEN|HPALETTE|HMONITOR|HMODULE|HMETAFILE|HMENU|HLOCAL|HKL|HKEY|HINSTANCE|HICON|HHOOK|HGLOBAL|HGDIOBJ|HFONT|HFILE|HENHMETAFILE|HDWP|HDROP|HDESK|HDDEDATA|HDC|HCURSOR|HCONVLIST|HCONV|HCOLORSPACE|HBRUSH|HBITMAP|HANDLE|HALF_PTR|HACCEL|FLOAT|FILE|DWORD_PTR|DWORDLONG|DWORD64|DWORD32|DWORD|COLORREF|CHAR|BYTE|BOOLEAN|BOOL|ATOM)\b/
- , _style: "color: blue;"
- }
- , keyword : {
- _match: /\b(?:while|whcar_t|volatile|void|virtual|uuid|using|union|typename|typeid|typedef|try|true|throw|thread|this|template|switch|struct|static_cast|static|sizeof|selectany|return|reinterpret_cast|register|public|protected|private|nothrow|noreturn|noinline|new|namespace|naked|mutable|inline|if|goto|friend|for|false|extern|explicit|enum|else|dynamic_cast|do|dllimport|dllexport|deprecated|delete|default|continue|const_cast|const|class|catch|case|break|__try|__finally|__exception|__declspec)\b/
- , _style: "color: navy; font-weight: bold;"
- }
- }
-}
diff --git a/ktatompub/Client/js/chili/csharp.js b/ktatompub/Client/js/chili/csharp.js
deleted file mode 100644
index 96205ce..0000000
--- a/ktatompub/Client/js/chili/csharp.js
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
-===============================================================================
-Chili is the jQuery code highlighter plugin
-...............................................................................
-LICENSE: http://www.opensource.org/licenses/mit-license.php
-WEBSITE: http://noteslog.com/chili/
-
- Copyright 2008 / Andrea Ercolino
-===============================================================================
-*/
-
-{
- _name: "cs"
- , _case: true
- , _main: {
- mlcom : {
- _match: /\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\//
- , _style: "color: #4040c2;"
- }
- , com : {
- _match: /\/\/.*/
- , _style: "color: green;"
- }
- , string : {
- _match: /(?:\'[^\'\\\n]*(?:\\.[^\'\\\n]*)*\')|(?:\"[^\"\\\n]*(?:\\.[^\"\\\n]*)*\")/
- , _style: "color: teal;"
- }
- , preproc: {
- _match: /^\s*#.*/
- , _style: "color: red;"
- }
- , number : {
- _match: /\b[+-]?(?:\d*\.?\d+|\d+\.?\d*)(?:[eE][+-]?\d+)?\b/
- , _style: "color: red;"
- }
- , keyword: {
- _match: /\b(?:while|volatile|void|virtual|using|ushort|unsafe|unchecked|ulong|uint|typeof|try|true|throw|this|switch|struct|string|static|stackalloc|sizeof|short|sealed|sbyte|return|ref|readonly|public|protected|private|params|override|out|operator|object|null|new|namespace|long|lock|is|internal|interface|int|in|implicit|if|goto|foreach|for|float|fixed|finally|false|extern|explicit|event|enum|else|double|do|delegate|default|decimal|continue|const|class|checked|char|catch|case|byte|break|bool|base|as|abstract)\b/
- , _style: "color: navy; font-weight: bold;"
- }
- }
-}
diff --git a/ktatompub/Client/js/chili/css.js b/ktatompub/Client/js/chili/css.js
deleted file mode 100644
index 9020715..0000000
--- a/ktatompub/Client/js/chili/css.js
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
-===============================================================================
-Chili is the jQuery code highlighter plugin
-...............................................................................
-LICENSE: http://www.opensource.org/licenses/mit-license.php
-WEBSITE: http://noteslog.com/chili/
-
- Copyright 2008 / Andrea Ercolino
-===============================================================================
-*/
-
-{
- _name: 'css'
- , _case: true
- , _main: {
- comment: {
- _match: /\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\//
- , _style: "color: olive;"
- }
- , directive: {
- _match: /@\w+/
- , _style: "color: fuchsia;"
- }
- , url: {
- _match: /\b(url\s*\()([^)]+)(\))/
- , _replace: "$1$2$3"
- , _style: "color: fuchsia;"
- }
- , block: {
- _match: /\{([\w\W]*?)\}/
- , _replace: function( all, pairs ) {
- return '{' + this.x( pairs, '/definition' ) + '}';
- }
- }
- , 'class': {
- _match: /\.\w+/
- , _style: "color: #CC0066; font-weight: bold;"
- }
- , id: {
- _match: /#\w+/
- , _style: "color: IndianRed; font-weight: bold;"
- }
- , pseudo: {
- _match: /:\w+/
- , _style: "color: #CC9900;"
- }
- , element: {
- _match: /\w+/
- , _style: "color: Purple; font-weight: bold;"
- }
- }
- , definition: {
- comment: {
- _match: /\/\*[^*]*\*+(?:[^\/][^*]*\*+)*\//
- }
- , property: {
- _match: /\b(?:zoom|z-index|writing-mode|word-wrap|word-spacing|word-break|width|widows|white-space|volume|voice-family|visibility|vertical-align|unicode-bidi|top|text-underline-position|text-transform|text-shadow|text-overflow|text-kashida-space|text-justify|text-indent|text-decoration|text-autospace|text-align-last|text-align|table-layout|stress|speech-rate|speak-punctuation|speak-numeral|speak-header|speak|size|scrollbar-track-color|scrollbar-shadow-color|scrollbar-highlight-color|scrollbar-face-color|scrollbar-dark-shadow-color|scrollbar-base-color|scrollbar-arrow-color|scrollbar-3d-light-color|ruby-position|ruby-overhang|ruby-align|right|richness|quotes|position|play-during|pitch-range|pitch|pause-before|pause-after|pause|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-Y|overflow-X|overflow|outline-width|outline-style|outline-color|outline|orphans|min-width|min-height|max-width|max-height|marks|marker-offset|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|line-break|letter-spacing|left|layout-grid-type|layout-grid-mode|layout-grid-line|layout-grid-char-spacing|layout-grid-char|layout-grid|layout-flow|layer-background-image|layer-background-color|include-source|ime-mode|height|font-weight|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-family|font|float|filter|empty-cells|elevation|display|direction|cursor|cue-before|cue-after|cue|counter-reset|counter-increment|content|color|clip|clear|caption-side|bottom|border-width|border-top-width|border-top-style|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-left-width|border-left-style|border-left-color|border-left|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-color|border-bottom|border|behavior|background-repeat|background-position-y|background-position-x|background-position|background-image|background-color|background-attachment|background|azimuth|accelerator)\s*:/
- , _style: "color: #330066;"
- }
- , special: {
- _match: /\b(?:-use-link-source|-set-link-source|-replace|-moz-user-select|-moz-user-modify|-moz-user-input|-moz-user-focus|-moz-outline-width|-moz-outline-style|-moz-outline-color|-moz-outline|-moz-opacity|-moz-border-top-colors|-moz-border-right-colors|-moz-border-radius-topright|-moz-border-radius-topleft|-moz-border-radius-bottomright|-moz-border-radius-bottomleft|-moz-border-radius|-moz-border-left-colors|-moz-border-bottom-colors|-moz-binding)\s*:/
- , _style: "color: #330066; text-decoration: underline;"
- }
- , url: {
- _match: /\b(url\s*\()([^)]+)(\))/
- , _replace: "$1$2$3"
- }
- , value: {
- _match: /\b(?:xx-small|xx-large|x-soft|x-small|x-slow|x-low|x-loud|x-large|x-high|x-fast|wider|wait|w-resize|visible|url|uppercase|upper-roman|upper-latin|upper-alpha|underline|ultra-expanded|ultra-condensed|tv|tty|transparent|top|thin|thick|text-top|text-bottom|table-row-group|table-row|table-header-group|table-footer-group|table-column-group|table-column|table-cell|table-caption|sw-resize|super|sub|status-bar|static|square|spell-out|speech|solid|soft|smaller|small-caption|small-caps|small|slower|slow|silent|show|separate|semi-expanded|semi-condensed|se-resize|scroll|screen|s-resize|run-in|rtl|rightwards|right-side|right|ridge|rgb|repeat-y|repeat-x|repeat|relative|projection|print|pre|portrait|pointer|overline|outside|outset|open-quote|once|oblique|nw-resize|nowrap|normal|none|no-repeat|no-open-quote|no-close-quote|ne-resize|narrower|n-resize|move|mix|middle|message-box|medium|marker|ltr|lowercase|lower-roman|lower-latin|lower-greek|lower-alpha|lower|low|loud|local|list-item|line-through|lighter|level|leftwards|left-side|left|larger|large|landscape|justify|italic|invert|inside|inset|inline-table|inline|icon|higher|high|hide|hidden|help|hebrew|handheld|groove|format|fixed|faster|fast|far-right|far-left|fantasy|extra-expanded|extra-condensed|expanded|embossed|embed|e-resize|double|dotted|disc|digits|default|decimal-leading-zero|decimal|dashed|cursive|crosshair|cross|crop|counters|counter|continuous|condensed|compact|collapse|code|close-quote|circle|center-right|center-left|center|caption|capitalize|braille|bottom|both|bolder|bold|block|blink|bidi-override|below|behind|baseline|avoid|auto|aural|attr|armenian|always|all|absolute|above)\b/
- , _style: "color: #3366FF;"
- }
- , string: {
- _match: /(?:\'[^\'\\\n]*(?:\\.[^\'\\\n]*)*\')|(?:\"[^\"\\\n]*(?:\\.[^\"\\\n]*)*\")/
- , _style: "color: teal;"
- }
- , number: {
- _match: /(?:\b[+-]?(?:\d*\.?\d+|\d+\.?\d*))(?:%|(?:(?:px|pt|em|)\b))/
- , _style: "color: red;"
- }
- , color : {
- _match: /(?:\#[a-fA-F0-9]{3,6})|\b(?:yellow|white|teal|silver|red|purple|olive|navy|maroon|lime|green|gray|fuchsia|blue|black|aqua|YellowGreen|Yellow|WhiteSmoke|White|Wheat|Violet|Turquoise|Tomato|Thistle|Teal|Tan|SteelBlue|SpringGreen|Snow|SlateGrey|SlateGray|SlateBlue|SkyBlue|Silver|Sienna|SeaShell|SeaGreen|SandyBrown|Salmon|SaddleBrown|RoyalBlue|RosyBrown|Red|Purple|PowderBlue|Plum|Pink|Peru|PeachPuff|PapayaWhip|PaleVioletRed|PaleTurquoise|PaleGreen|PaleGoldenRod|Orchid|OrangeRed|Orange|OliveDrab|Olive|OldLace|Navy|NavajoWhite|Moccasin|MistyRose|MintCream|MidnightBlue|MediumVioletRed|MediumTurquoise|MediumSpringGreen|MediumSlateBlue|MediumSeaGreen|MediumPurple|MediumOrchid|MediumBlue|MediumAquaMarine|Maroon|Magenta|Linen|LimeGreen|Lime|LightYellow|LightSteelBlue|LightSlateGrey|LightSlateGray|LightSkyBlue|LightSeaGreen|LightSalmon|LightPink|LightGrey|LightGreen|LightGray|LightGoldenRodYellow|LightCyan|LightCoral|LightBlue|LemonChiffon|LawnGreen|LavenderBlush|Lavender|Khaki|Ivory|Indigo|IndianRed|HotPink|HoneyDew|Grey|GreenYellow|Green|Gray|GoldenRod|Gold|GhostWhite|Gainsboro|Fuchsia|ForestGreen|FloralWhite|FireBrick|DodgerBlue|DimGrey|DimGray|DeepSkyBlue|DeepPink|Darkorange|DarkViolet|DarkTurquoise|DarkSlateGrey|DarkSlateGray|DarkSlateBlue|DarkSeaGreen|DarkSalmon|DarkRed|DarkOrchid|DarkOliveGreen|DarkMagenta|DarkKhaki|DarkGrey|DarkGreen|DarkGray|DarkGoldenRod|DarkCyan|DarkBlue|Cyan|Crimson|Cornsilk|CornflowerBlue|Coral|Chocolate|Chartreuse|CadetBlue|BurlyWood|Brown|BlueViolet|Blue|BlanchedAlmond|Black|Bisque|Beige|Azure|Aquamarine|Aqua|AntiqueWhite|AliceBlue)\b/
- , _style: "color: green;"
- }
- }
-}
diff --git a/ktatompub/Client/js/chili/delphi.js b/ktatompub/Client/js/chili/delphi.js
deleted file mode 100644
index d3382a7..0000000
--- a/ktatompub/Client/js/chili/delphi.js
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
-===============================================================================
-Chili is the jQuery code highlighter plugin
-...............................................................................
-LICENSE: http://www.opensource.org/licenses/mit-license.php
-WEBSITE: http://noteslog.com/chili/
-
- Copyright 2008 / Andrea Ercolino
-===============================================================================
-*/
-
-{
- _name: "pas"
- , _case: true
- , _main: {
- mlcom: {
- _match: /(?:\(\*[\w\W]*?\*\))|(?:{(?!\$)[\w\W]*?})/
- , _style: "color: #4040c2;"
- }
- , com: {
- _match: /\/\/.*/
- , _style: "color: green;"
- }
- , string: {
- _match: /(?:\'[^\'\\\n]*(?:\\.[^\'\\\n]*)*\')/
- , _style: "color: teal;"
- }
- , number: {
- _match: /(?:\b[+-]?(?:\d*\.?\d+|\d+\.?\d*)(?:[eE][+-]?\d+)?\b)|(?:\$[a-zA-Z0-9]+\b)/
- , _style: "color: red;"
- }
- , direct: {
- _match: /\{\$[a-zA-Z]+ .+\}/
- , _style: "color: red;"
- }
- , keyword: {
- _match: /\b(?:abs|addr|and|ansichar|ansistring|array|as|asm|begin|boolean|byte|cardinal|case|char|class|comp|const|constructor|currency|destructor|div|do|double|downto|else|end|except|exports|extended|false|file|finalization|finally|for|function|goto|if|implementation|in|inherited|initialization|int64|integer|interface|is|label|library|longint|longword|mod|nil|not|object|of|on|or|packed|pansichar|pansistring|pchar|pcurrency|pdatetime|pextended|pint64|pointer|private|procedure|program|property|protected|pshortstring|pstring|public|published|pvariant|pwidechar|pwidestring|raise|real|real48|record|repeat|set|shl|shortint|shortstring|shr|single|smallint|string|then|threadvar|to|true|try|type|unit|until|uses|val|var|varirnt|while|widechar|widestring|with|word|write|writeln|xor)\b/
- , _style: "color: navy; font-weight: bold;"
- }
- }
-}
diff --git a/ktatompub/Client/js/chili/html.js b/ktatompub/Client/js/chili/html.js
deleted file mode 100644
index f02954b..0000000
--- a/ktatompub/Client/js/chili/html.js
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
-===============================================================================
-Chili is the jQuery code highlighter plugin
-...............................................................................
-LICENSE: http://www.opensource.org/licenses/mit-license.php
-WEBSITE: http://noteslog.com/chili/
-
- Copyright 2008 / Andrea Ercolino
-===============================================================================
-*/
-
-{
- _name: 'html'
- , _case: false
- , _main: {
- doctype: {
- _match: //
- , _style: "color: #CC6600;"
- }
- , ie_style: {
- _match: /()/
- , _replace: function( all, open, content, close ) {
- return "" + this.x( open ) + ""
- + this.x( content, '//style' )
- + "" + this.x( close ) + "";
- }
- , _style: "color: DarkSlateGray; font-weight: bold;"
- }
- , comment: {
- _match: //
- , _style: "color: #4040c2;"
- }
- , script: {
- _match: /(
-
-
-
-
-
-
-
-
-
- */
- this.libraries={
- 'js/lib.js' :'Framework Main Library',
- 'js/lib.debug.js' :'Framework Debugger Library',
- 'js/events.js' :'Events Delegation Engine',
- 'js/site.event.js' :'Site Events',
- 'js/jquery-1.3.2.min.js' :'jQuery Ver 1.3.2',
- 'js/jquery.cookie.js' :'jQuery Cookie Plugin',
- 'js/ui/ui.core.js' :'jQuery UI Core',
- 'js/ui/ui.tabs.js' :'jQuery UI Tabs Plugin',
- 'js/jquery.dynatree.min.js' :'jQuery DynaTree Tree Menu Plugin',
- 'js/ktApp.js' :'KT Atom Publishing Protocol Library'
- }
-
- this.init=function(){
- this.setupUrls();
- $('#perspectives').tabs().fadeIn(400);
- this.setupCommsPanel();
- this.setupTabEvents();
- this.setupInspectors();
- this.setupDisplay();
- events.trigger('perspective.folders.show');
- }
-
- this.bootStrap=function(){
- for(var liburl in this.libraries){
- this.includeJs(liburl);
- //alert('loading '+ liburl)
- }
- $('document').ready(function(){site.init();});
- }
-
- this.includeJs=function(url){
- $.ajax({async:false,url:url}); //Preload the javascript
- var e = document.createElement("script");
- e.src = url;
- e.type="text/javascript";
- document.getElementsByTagName("head")[0].appendChild(e);
- }
-
- this.setupDisplay=function(){
- events.trigger('panel.clear');
- $('#dialog').dialog({autoOpen:false, modal:true, dialogClass:'dialogs', closeOnEscape:true, buttons:{'OK':function(){$(this).dialog('close');}}});
- $('.fg-button').each(function(){
- $(this).mouseover(function(){
- $(this).addClass('ui-state-hover');
- });
- $(this).mouseout(function(){
- $(this).removeClass('ui-state-hover');
- });
- });
- }
-
- this.showDialog=function(title,msg,buttons){
- var d=$('#dialog');
- if(buttons!=undefined)if(typeof(buttons)=='object'){
- d.dialog('option','buttons',buttons);
- }
- d.dialog('option','title',title);
- d.html(msg);
- d.dialog('open');
- }
-
- this.hideDialog=function(){
- var d=$('#dialog');
- d.dialog('close');
- }
-
- this.setupUrls=function(){
- lib.resources.setResourceUrl('base',this.cfg('baseurl'));
- lib.resources.setResourceUrl('services',this.cfg('baseurl')+this.cfg('services'));
- };
-
- this.setupCommsPanel=function(){
- events.listen('LIB.RESOURCES:Resource_Fetched',function(data){
- $('#panel_comms').val($('#panel_comms').val()+"\n\n"+(data.data));
- lib.debug.inspect($.xml2json(data.data));
-
- // $('#panel_comms').chili();
- })
-
- events.listen('comms_clear_cache',function(){
- document.getElementById('panel_comms').value='';
- lib.debug.info('cleared comms panel');
- })
- }
-
- this.setupInspectors=function(){
-
-
- events.listen('panel.document.info.show',site.event_handlers.document_panel_info_show,site.event_handlers);
- events.listen('panel.document.edit.show',site.event_handlers.document_panel_edit_show,site.event_handlers);
- events.listen('panel.document.action.save',site.event_handlers.document_action_save,site.event_handlers);
- events.listen('panel.document.action.delete',site.event_handlers.document_action_delete,site.event_handlers);
- events.listen('panel.document.action.checkout',site.event_handlers.document_action_checkout,site.event_handlers);
- events.listen('panel.document.action.download',site.event_handlers.document_action_download,site.event_handlers);
-
- events.listen('panel.folder.info.show',site.event_handlers.folder_panel_info_show,site.event_handlers);
- events.listen('panel.folder.edit.show',site.event_handlers.folder_panel_edit_show,site.event_handlers);
- events.listen('panel.folder.action.save',site.event_handlers.folder_action_save,site.event_handlers);
- events.listen('panel.folder.action.move',site.event_handlers.folder_action_move,site.event_handlers);
-
-
-
-
-
-
-
- events.listen('info.activate.folder',function(id){site.event_handlers.folder_panel_info_show(id);});
- events.listen('info.activate.document',function(id){site.event_handlers.document_panel_info_show(id);});
-
- events.listen('panel.clear',function(){
- for(var i=0; i element with this ID.
- initAjax: null, // Ajax options used to initialize the tree strucuture.
- autoFocus: true, // Set focus to first child, when expanding or lazy-loading.
- keyboard: true, // Support keyboard navigation.
- persist: false, // Persist expand-status to a cookie
- autoCollapse: false, // Automatically collapse all siblings, when a node is expanded.
- clickFolderMode: 3, // 1:activate, 2:expand, 3:activate and expand
- activeVisible: true, // Make sure, active nodes are visible (expanded).
- checkbox: false, // Show checkboxes.
- selectMode: 2, // 1:single, 2:multi, 3:multi-hier
- fx: null, // Animations, e.g. null or { height: "toggle", duration: 200 }
-
- // Low level event handlers: onEvent(dtnode, event): return false, to stop default processing
- onClick: null, // null: generate focus, expand, activate, select events.
- onDblClick: null, // (No default actions.)
- onKeydown: null, // null: generate keyboard navigation (focus, expand, activate).
- onKeypress: null, // (No default actions.)
- onFocus: null, // null: handle focus.
- onBlur: null, // null: handle unfocus.
-
- // Pre-event handlers onQueryEvent(flag, dtnode): return false, to stop processing
- onQueryActivate: null, // Callback(flag, dtnode) before a node is (de)activated.
- onQuerySelect: null, // Callback(flag, dtnode) before a node is (de)selected.
- onQueryExpand: null, // Callback(flag, dtnode) before a node is expanded/collpsed.
-
- // High level event handlers
- onPostInit: null, // Callback(isReloading, isError) when tree was (re)loaded.
- onActivate: null, // Callback(dtnode) when a node is activated.
- onDeactivate: null, // Callback(dtnode) when a node is deactivated.
- onSelect: null, // Callback(flag, dtnode) when a node is (de)selected.
- onExpand: null, // Callback(flag, dtnode) when a node is expanded.
- onLazyRead: null, // Callback(dtnode) when a lazy node is expanded for the first time.
-
- ajaxDefaults: { // Used by initAjax option
- cache: false, // false: Append random '_' argument to the request url to prevent caching.
- dataType: "json" // Expect json format and pass json object to callbacks.
- },
- strings: {
- loading: "Loading",
- loadError: "Load error!"
- },
- idPrefix: "ui-dynatree-id-", // Used to generate node id's like .
- cookieId: "ui-dynatree-cookie", // Choose a more unique name, to allow multiple trees.
- cookie: { // Options passed to $.cookie (see jquery.cookie.js)
- expires: null, // Days or Date; null: session cookie
- path: undefined, // String; Defaults to current page
- domain: undefined, // String; Defaults to creator's domain
- secure: undefined // Boolean; Defaults to false
- },
- debugLevel: 1 // 0:quiet, 1:normal, 2:debug
-
-*/
- })
- }
-};
-
-
-
diff --git a/ktatompub/Client/js/ktAtompubClient/site/site.ui.js b/ktatompub/Client/js/ktAtompubClient/site/site.ui.js
deleted file mode 100644
index d13f564..0000000
--- a/ktatompub/Client/js/ktAtompubClient/site/site.ui.js
+++ /dev/null
@@ -1,12 +0,0 @@
-site.ui=new function(){
- this.defaults.createButton=function(){
- var buttonSpanAttributes={
- id:
- }
- }
-
-
- createButton=function(text,options){
- //Edit
- }
-}
\ No newline at end of file
diff --git a/ktatompub/Client/js/ktAtompubClient/site/site_cfg.js b/ktatompub/Client/js/ktAtompubClient/site/site_cfg.js
deleted file mode 100644
index e69de29..0000000
--- a/ktatompub/Client/js/ktAtompubClient/site/site_cfg.js
+++ /dev/null
diff --git a/ktatompub/Client/js/ktatompubclient js.zip b/ktatompub/Client/js/ktatompubclient js.zip
deleted file mode 100644
index 39ef6b1..0000000
--- a/ktatompub/Client/js/ktatompubclient js.zip
+++ /dev/null
diff --git a/ktatompub/Client/js/lib/events.js b/ktatompub/Client/js/lib/events.js
deleted file mode 100644
index 4faa4a4..0000000
--- a/ktatompub/Client/js/lib/events.js
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * Event delegation
- */
-events=new function(){
- this.registry={}
- this.listeners={}
- this.cfg={
- 'debug.enabled' :true,
- 'debug.inspectParameters' :false,
- 'debug.trace.enabled' :false
- }
-
- /**
- * Internal function: get the appropriate event registry
- */
- this._getEventRegistry=function(evtname){
- if(this.registry[evtname]==undefined){this.registry[evtname]=[];}
- return this.registry[evtname];
- }
-
- /**
- * Trigger an event with a set of parameters
- */
- this.trigger=function(evt,params){
- if(this.cfg['debug.enabled']==true){
- lib.debug.info('Firing '+evt);
- if(this.cfg['debug.trace.enabled'])lib.debug.trace();
- if(this.cfg['debug.inspectParameters']==true)lib.debug.inspect(params);
- }
- if(params==undefined)params={};
- var evtr=this._getEventRegistry(evt);
- for(var i=0; i0){
- var cur=ns[0];
- if(cobj==undefined)cobj=window;
- if(cobj[cur]==undefined)cobj[cur]={};
- ns=ns.slice(1,ns.length-2);
- if(ns.length>0){
- this.namespace(ns.join('.'),cobj[cur]);
- }
- }
- }
-
- this.def=function(){
- var ret=undefined;
- var acount=arguments.length;
- var acur=0;
- do{
- ret=arguments[acur];
- acur++;
- }while(ret==undefined && acur>>(32-s));
- return t4;
- };
-
- this.lsb_hex=function(val) {
- var str="";
- var i;
- var vh;
- var vl;
-
- for( i=0; i<=6; i+=2 ) {
- vh = (val>>>(i*4+4))&0x0f;
- vl = (val>>>(i*4))&0x0f;
- str += vh.toString(16) + vl.toString(16);
- }
- return str;
- };
-
- this.cvt_hex=function(val) {
- var str="";
- var i;
- var v;
-
- for( i=7; i>=0; i-- ) {
- v = (val>>>(i*4))&0x0f;
- str += v.toString(16);
- }
- return str;
- };
-
-
- this.Utf8Encode=function(string) {
-
- string = (string+'').replace(/\r\n/g,"\n");
- var utftext = "";
-
- for (var n = 0; n < string.length; n++) {
-
- var c = string.charCodeAt(n);
-
- if (c < 128) {
- utftext += String.fromCharCode(c);
- }
- else if((c > 127) && (c < 2048)) {
- utftext += String.fromCharCode((c >> 6) | 192);
- utftext += String.fromCharCode((c & 63) | 128);
- }
- else {
- utftext += String.fromCharCode((c >> 12) | 224);
- utftext += String.fromCharCode(((c >> 6) & 63) | 128);
- utftext += String.fromCharCode((c & 63) | 128);
- }
-
- }
-
- return utftext;
- };
-
-
- this.SHA1=function(msg) {
- var blockstart;
- var i, j;
- var W = new Array(80);
- var H0 = 0x67452301;
- var H1 = 0xEFCDAB89;
- var H2 = 0x98BADCFE;
- var H3 = 0x10325476;
- var H4 = 0xC3D2E1F0;
- var A, B, C, D, E;
- var temp;
-
- msg = this.Utf8Encode(msg);
-
- var msg_len = msg.length;
-
- var word_array = new Array();
- for( i=0; i>>29 );
- word_array.push( (msg_len<<3)&0x0ffffffff );
-
-
- for ( blockstart=0; blockstartsaved back to the system by clicking here.' +
- 'The site will then generate an atompub formatted PUT request, and clear it\'s own cache before reloading the folder' +
- ' information and switching to the folder info view panel.');
- }
-
- this.folder_action_move=function(){
- site.showDialog('Feature Not Yet Supported','In the future, a folder can be moved by clicking here.');
- }
-
-
-
-
- this.document_action_save=function(){
- site.showDialog('Feature Not Yet Supported','In the future, document meta info can be saved back to the system by clicking here.' +
- 'The site will then generate an atompub formatted PUT request, and clear it\'s own cache before reloading the document' +
- ' information and switching to the document info view panel.');
- }
-
- this.document_action_checkout=function(){
- site.showDialog('Feature Not Yet Supported','In the future the document can be checked out here.');
- }
-
- this.document_action_download=function(){
- //site.showDialog('Feature Not Yet Supported','In the future the document can be downloaded here.');
- if(site.currentDocument!=undefined){
- var url=unescape(KT_atom_server.document.data.document_download_url);
- window.document.location.replace(url);
- }
- }
-
- this.document_action_delete=function(){
- site.showDialog('Feature Not Yet Supported','In the future, a document can be deleted clicking here.' +
- 'The site will then generate an atompub formatted DELETE request, and clear it\'s own cache and the document tree cache before ' +
- 'switching to an empty panel.');
- }
-
-
- this.discovery=function(url){
- var sdoc=url+'servicedocument';
- if(typeof(url)!='string')sdoc=site.cfg('service');
- site.cfg('service',sdoc);
- if(lib.resources.resourceLoaded(sdoc)){
- var data=lib.resources.getResourceFromUrl(sdoc);
- KT_atom_server.serviceDoc.parseXML($(data.data).find('service')[0],'DMS');
-
- }else{
- lib.resources.getUrl(sdoc,site.event_handlers.discovery);
- }
- }
-}
\ No newline at end of file
diff --git a/ktatompub/Client/js/site/site.js b/ktatompub/Client/js/site/site.js
deleted file mode 100644
index 57ead49..0000000
--- a/ktatompub/Client/js/site/site.js
+++ /dev/null
@@ -1,369 +0,0 @@
-// JavaScript Document
-
-site=new function(){
- this.infoPanels=[
- 'panel_document_info',
- 'panel_folder_info',
- 'panel_document_info_edit'
- ];
-
- this.currentFolder=null;
- this.currentDocument=null;
-
- this._cfgDefaults={
- 'baseurl' :'',
- 'services' :'',
- 'service.treestruct' :'',
- 'service.folderInfo' :'',
- 'service.docInfo' :''
- };
-
- this.cfg=function(cfgName){
- if(arguments.length>0){
- $.cookie(cfgName,arguments[1]);
- }
- var d=undefined;
- if(this._cfgDefaults[cfgName]!=undefined)d=this._cfgDefaults[cfgName];
- return lib.def($.cookie(cfgName),d);
- }
-/*
- * The script includes are made instead of running site.bootStrap for Titanium compatibility
- * (see index.html)
- *
-
-
-
-
-
-
-
-
-
-
- */
- this.libraries={
- 'js/lib.js' :'Framework Main Library',
- 'js/lib.debug.js' :'Framework Debugger Library',
- 'js/events.js' :'Events Delegation Engine',
- 'js/site.event.js' :'Site Events',
- 'js/jquery-1.3.2.min.js' :'jQuery Ver 1.3.2',
- 'js/jquery.cookie.js' :'jQuery Cookie Plugin',
- 'js/ui/ui.core.js' :'jQuery UI Core',
- 'js/ui/ui.tabs.js' :'jQuery UI Tabs Plugin',
- 'js/jquery.dynatree.min.js' :'jQuery DynaTree Tree Menu Plugin',
- 'js/KT_atom_server.js' :'KT Atom Publishing Protocol Library'
- }
-
- this.init=function(){
- this.setupUrls();
- $('#perspectives').tabs().fadeIn(400);
- this.setupCommsPanel();
- this.setupTabEvents();
- this.setupInspectors();
- this.setupDisplay();
- this.checkSettings();
- events.trigger('perspective.folders.show');
- }
-
- this.checkSettings=function(){
- if(this.cfg('baseurl')==''){
- $('#setup').dialog('open');
- }else{
- }
- }
-
- this.bootStrap=function(){
- for(var liburl in this.libraries){
- this.includeJs(liburl);
- }
- $('document').ready(function(){site.init();});
- }
-
- this.includeJs=function(url){
- $.ajax({async:false,url:url}); //Preload the javascript
- var e = document.createElement("script");
- e.src = url;
- e.type="text/javascript";
- document.getElementsByTagName("head")[0].appendChild(e);
- }
-
- this.setupDisplay=function(){
- events.trigger('panel.clear');
- $('#dialog').dialog({autoOpen:false, modal:true, dialogClass:'dialogs', closeOnEscape:true, buttons:{'OK':function(){$(this).dialog('close');}}});
- $('#setup').dialog({width: 400, height:200, modal: true, autoOpen:false, dialogClass: 'dialogs'});
- $('.fg-button').each(function(){
- $(this).mouseover(function(){
- $(this).addClass('ui-state-hover');
- });
- $(this).mouseout(function(){
- $(this).removeClass('ui-state-hover');
- });
- });
- }
-
- this.showDialog=function(title,msg,buttons){
- var d=$('#dialog');
- if(buttons!=undefined)if(typeof(buttons)=='object'){
- d.dialog('option','buttons',buttons);
- }
- d.dialog('option','title',title);
- d.html(msg);
- d.dialog('open');
- }
-
- this.hideDialog=function(){
- var d=$('#dialog');
- d.dialog('close');
- }
-
- this.setupUrls=function(){
- lib.resources.setResourceUrl('base',this.cfg('baseurl'));
- lib.resources.setResourceUrl('services',this.cfg('baseurl')+this.cfg('services'));
- };
-
- this.setupCommsPanel=function(){
- events.listen('LIB.RESOURCES:Resource_Fetched',function(data){
- $('#panel_comms').val($('#panel_comms').val()+"\n\n"+(data.data));
- lib.debug.inspect($.xml2json(data.data));
-
- // $('#panel_comms').chili();
- })
-
- events.listen('comms_clear_cache',function(){
- document.getElementById('panel_comms').value='';
- lib.debug.info('cleared comms panel');
- })
- }
-
- this.setupInspectors=function(){
-
-
- events.listen('panel.document.info.show',site.event_handlers.document_panel_info_show,site.event_handlers);
- events.listen('panel.document.edit.show',site.event_handlers.document_panel_edit_show,site.event_handlers);
- events.listen('panel.document.action.save',site.event_handlers.document_action_save,site.event_handlers);
- events.listen('panel.document.action.delete',site.event_handlers.document_action_delete,site.event_handlers);
- events.listen('panel.document.action.checkout',site.event_handlers.document_action_checkout,site.event_handlers);
- events.listen('panel.document.action.download',site.event_handlers.document_action_download,site.event_handlers);
-
- events.listen('panel.folder.info.show',site.event_handlers.folder_panel_info_show,site.event_handlers);
- events.listen('panel.folder.edit.show',site.event_handlers.folder_panel_edit_show,site.event_handlers);
- events.listen('panel.folder.action.save',site.event_handlers.folder_action_save,site.event_handlers);
- events.listen('panel.folder.action.move',site.event_handlers.folder_action_move,site.event_handlers);
-
- events.listen('setup.getservicedoc',site.event_handlers.discovery,site.event_handlers);
-
-
-
-
-
-
- events.listen('info.activate.folder',function(id){site.event_handlers.folder_panel_info_show(id);});
- events.listen('info.activate.document',function(id){site.event_handlers.document_panel_info_show(id);});
-
- events.listen('panel.clear',function(){
- for(var i=0; i element with this ID.
- initAjax: null, // Ajax options used to initialize the tree strucuture.
- autoFocus: true, // Set focus to first child, when expanding or lazy-loading.
- keyboard: true, // Support keyboard navigation.
- persist: false, // Persist expand-status to a cookie
- autoCollapse: false, // Automatically collapse all siblings, when a node is expanded.
- clickFolderMode: 3, // 1:activate, 2:expand, 3:activate and expand
- activeVisible: true, // Make sure, active nodes are visible (expanded).
- checkbox: false, // Show checkboxes.
- selectMode: 2, // 1:single, 2:multi, 3:multi-hier
- fx: null, // Animations, e.g. null or { height: "toggle", duration: 200 }
-
- // Low level event handlers: onEvent(dtnode, event): return false, to stop default processing
- onClick: null, // null: generate focus, expand, activate, select events.
- onDblClick: null, // (No default actions.)
- onKeydown: null, // null: generate keyboard navigation (focus, expand, activate).
- onKeypress: null, // (No default actions.)
- onFocus: null, // null: handle focus.
- onBlur: null, // null: handle unfocus.
-
- // Pre-event handlers onQueryEvent(flag, dtnode): return false, to stop processing
- onQueryActivate: null, // Callback(flag, dtnode) before a node is (de)activated.
- onQuerySelect: null, // Callback(flag, dtnode) before a node is (de)selected.
- onQueryExpand: null, // Callback(flag, dtnode) before a node is expanded/collpsed.
-
- // High level event handlers
- onPostInit: null, // Callback(isReloading, isError) when tree was (re)loaded.
- onActivate: null, // Callback(dtnode) when a node is activated.
- onDeactivate: null, // Callback(dtnode) when a node is deactivated.
- onSelect: null, // Callback(flag, dtnode) when a node is (de)selected.
- onExpand: null, // Callback(flag, dtnode) when a node is expanded.
- onLazyRead: null, // Callback(dtnode) when a lazy node is expanded for the first time.
-
- ajaxDefaults: { // Used by initAjax option
- cache: false, // false: Append random '_' argument to the request url to prevent caching.
- dataType: "json" // Expect json format and pass json object to callbacks.
- },
- strings: {
- loading: "Loading",
- loadError: "Load error!"
- },
- idPrefix: "ui-dynatree-id-", // Used to generate node id's like .
- cookieId: "ui-dynatree-cookie", // Choose a more unique name, to allow multiple trees.
- cookie: { // Options passed to $.cookie (see jquery.cookie.js)
- expires: null, // Days or Date; null: session cookie
- path: undefined, // String; Defaults to current page
- domain: undefined, // String; Defaults to creator's domain
- secure: undefined // Boolean; Defaults to false
- },
- debugLevel: 1 // 0:quiet, 1:normal, 2:debug
-
-*/
- })
- }
-};
-
-
-
diff --git a/ktatompub/Client/js/site/site.ui.js b/ktatompub/Client/js/site/site.ui.js
deleted file mode 100644
index d13f564..0000000
--- a/ktatompub/Client/js/site/site.ui.js
+++ /dev/null
@@ -1,12 +0,0 @@
-site.ui=new function(){
- this.defaults.createButton=function(){
- var buttonSpanAttributes={
- id:
- }
- }
-
-
- createButton=function(text,options){
- //Edit
- }
-}
\ No newline at end of file
diff --git a/ktatompub/Client/js/site/site_cfg.js b/ktatompub/Client/js/site/site_cfg.js
deleted file mode 100644
index e69de29..0000000
--- a/ktatompub/Client/js/site/site_cfg.js
+++ /dev/null
diff --git a/ktatompub/auth.php b/ktatompub/auth.php
deleted file mode 100644
index d0a8da8..0000000
--- a/ktatompub/auth.php
+++ /dev/null
@@ -1,49 +0,0 @@
-.
- *
- * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
- * California 94120-7775, or email info@knowledgetree.com.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "Powered by
- * KnowledgeTree" logo and retain the original copyright notice. If the display of the
- * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
- * must display the words "Powered by KnowledgeTree" and retain the original
- * copyright notice.
- * Contributor( s):
- * Mark Holtzhausen
- *
- */
-
-/**
- * Automatic Login bypassing HTTP Basic Auth
- * TODO: Thest HTTP Basic Auth - Try Library From Home
- */
-
-$SessionId=KT_atom_service_helper::login('admin','admin');
-$SessionId=$SessionId['session_id'];
-
-
-?>
\ No newline at end of file
diff --git a/ktatompub/index.php b/ktatompub/index.php
deleted file mode 100644
index 1809161..0000000
--- a/ktatompub/index.php
+++ /dev/null
@@ -1,106 +0,0 @@
-.
- *
- * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
- * California 94120-7775, or email info@knowledgetree.com.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "Powered by
- * KnowledgeTree" logo and retain the original copyright notice. If the display of the
- * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
- * must display the words "Powered by KnowledgeTree" and retain the original
- * copyright notice.
- * Contributor( s):
- * Mark Holtzhausen
- *
- */
-
-ob_start();
-
-/**
- * Constants
- */
-
-/**
- * To sidestep url rewrites but still retain the atomPub URL convention,
- * the entry point is: index.php?/
- * eg. 1. Accessing the servicedocument: http://example.com/ktatompub/index.php?/servicedocument
- * 2. Accessing the folder service: http://example.com/ktatompub/index.php?/folder/1
- *
- * If URL rewrites are used, they should point any reference below
- * this folder to index.php?/
- *
- * Because index.php is accessed as the default document, the url can be shortened to http://example.com/ktatompub/?/
- */
-
-define('KT_APP_BASE_URI',"http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/?/');
-define('KT_APP_SYSTEM_URI',"http://".$_SERVER['HTTP_HOST']);
-define('KT_ATOM_LIB_FOLDER','lib/');
-
-// Define whether to use in debug mode for viewing generated structures
-//define('KT_APP_WEB_OUTPUT',false); //defunct
-
-
-
-/**
- * Includes
- */
-include_once('../ktapi/ktapi.inc.php');
-include_once(KT_ATOM_LIB_FOLDER.'KT_atom_server.inc.php');
-include_once(KT_ATOM_LIB_FOLDER.'KT_atom_service_helper.inc.php'); //Containing helper bridge functions to KtAPI
-include_once(KT_ATOM_LIB_FOLDER.'KT_atom_baseDoc.inc.php'); //Containing the parent class allowing easy XML manipulation
-include_once(KT_ATOM_LIB_FOLDER.'KT_atom_serviceDoc.inc.php'); //Containing the servicedoc class allowing easy ServiceDocument generation
-include_once(KT_ATOM_LIB_FOLDER.'KT_atom_responseFeed.inc.php'); //Containing the response feed class allowing easy atom feed generation
-include_once(KT_ATOM_LIB_FOLDER.'KT_atom_service.inc.php');
-include_once(KT_ATOM_LIB_FOLDER.'KT_atom_server.default_dms_services.inc.php');
-include_once('auth.php'); //Containing the authentication protocols
-
-
-//Start the AtomPubProtocol Routing Engine
-$APP=new KT_atom_server();
-
-/**
- * Register Services
- *
- * Registered services are classes extended from KT_atom_service
- * The registration process takes the following parameters
- * Workspace :The workspace within which the service collection will be grouped
- * ServiceName :This is the name by which the service/collection is exposed
- * ServiceClass :This is the class name of the class to be instantiated when this service is accessed
- * Title :This is the title given to the service/collection in the servicedocument
-*/
-$APP->registerService('DMS','fulltree','KT_atom_service_fulltree','Full Document Tree');
-$APP->registerService('DMS','folder','KT_atom_service_folder','Folder Detail');
-$APP->registerService('DMS','document','KT_atom_service_document','Document Detail');
-
-//Execute the current url/header request
-$APP->execute();
-
-//echo '
'.print_r($APP,true).'
';
-
-//Render the resulting feed response
-$APP->render();
-
-?>
\ No newline at end of file
diff --git a/ktatompub/lib/KT_atom_baseDoc.inc.php b/ktatompub/lib/KT_atom_baseDoc.inc.php
deleted file mode 100644
index fd6670b..0000000
--- a/ktatompub/lib/KT_atom_baseDoc.inc.php
+++ /dev/null
@@ -1,128 +0,0 @@
-.
- *
- * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
- * California 94120-7775, or email info@knowledgetree.com.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "Powered by
- * KnowledgeTree" logo and retain the original copyright notice. If the display of the
- * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
- * must display the words "Powered by KnowledgeTree" and retain the original
- * copyright notice.
- * Contributor( s):
- * Mark Holtzhausen
- *
- */
-
-/**
- * Includes
- */
-
-class KT_atom_baseDoc{
- const XML_ENCODING='utf-8';
- const XML_VERSION='1.0';
-
- public $DOM=NULL;
-
- public function __construct(){
- $this->DOM=new DOMDocument(self::XML_VERSION ,self::XML_ENCODING);
- }
-
- public function &newAttr($name=NULL){
- $node=$this->DOM->createAttribute($name);
- if(func_num_args()>1){
- $val=func_get_arg(1);
- $node->value=$val;
- }
- return $node;
- }
-
- public function &newElement($name=NULL){
- if(func_num_args()>1){
- $val=func_get_arg(1);
- $node=$this->DOM->createElement($name,$val);
- }else{
- $node=$this->DOM->createElement($name);
- }
- return $node;
- }
-
- public function &newCDATA($data=NULL){
- $this->DOM->createCDATASection($data);
- }
-
- public function &newB64Stream($tagName=NULL,$tagAttrs=array(),$streamString=NULL){
- $e=$this->newElement($tagName,chunk_split(base64_encode($streamString),75));
- foreach($tagAttrs as $attr=>$val){
- $attr=$this->newAttr($attr,$val);
- $e->appendChild($attr);
- }
- return $e;
- }
-
-
-
- public function formatXmlString($xml) {
- // add marker linefeeds to aid the pretty-tokeniser (adds a linefeed between all tag-end boundaries)
- $xml = preg_replace('/(>)(<)(\/*)/', "$1\n$2$3", $xml);
-
- // now indent the tags
- $token = strtok($xml, "\n");
- $result = ''; // holds formatted version as it is built
- $pad = 0; // initial indent
- $matches = array(); // returns from preg_matches()
-
- // scan each line and adjust indent based on opening/closing tags
- while ($token !== false) :
-
- // test for the various tag states
-
- // 1. open and closing tags on same line - no change
- if (preg_match('/.+<\/\w[^>]*>$/', $token, $matches)) :
- $indent=0;
- // 2. closing tag - outdent now
- elseif (preg_match('/^<\/\w/', $token, $matches)) :
- $pad--;
- // 3. opening tag - don't pad this one, only subsequent tags
- elseif (preg_match('/^<\w[^>]*[^\/]>.*$/', $token, $matches)) :
- $indent=1;
- // 4. no indentation needed
- else :
- $indent = 0;
- endif;
-
- // pad the line with the required number of leading spaces
- $line = str_pad($token, strlen($token)+$pad, ' ', STR_PAD_LEFT);
- $result .= $line . "\n"; // add to the cumulative result, with linefeed
- $token = strtok("\n"); // get the next token
- $pad += $indent; // update the pad size for subsequent lines
- endwhile;
-
- return $result;
- }
-}
-
-?>
\ No newline at end of file
diff --git a/ktatompub/lib/KT_atom_responseFeed.inc.php b/ktatompub/lib/KT_atom_responseFeed.inc.php
deleted file mode 100644
index fa64117..0000000
--- a/ktatompub/lib/KT_atom_responseFeed.inc.php
+++ /dev/null
@@ -1,45 +0,0 @@
-constructHeader();
- $this->baseURI=$baseURI;
- }
-
- private function constructHeader(){
- $feed=$this->newElement('feed');
- $feed->appendChild($this->newAttr('xmlns','http://www.w3.org/2005/Atom'));
- $this->feed=&$feed;
- $this->DOM->appendChild($this->feed);
- }
-
- public function &newEntry(){
- $entry=$this->newElement('entry');
- $this->feed->appendChild($entry);
- return $entry;
- }
-
- public function &newField($name=NULL,$value=NULL,&$attachToNode=NULL){
- $field=$this->newElement($name,$value);
- if(isset($attachToNode))$attachToNode->appendChild($field);
- return $field;
- }
-
- public function render(){
- return $this->formatXmlString(trim($this->DOM->saveXML()));
- }
-
-
-}
-
-class KT_atom_ResponseFeed_GET extends KT_atom_responseFeed{}
-class KT_atom_ResponseFeed_PUT extends KT_atom_responseFeed{}
-class KT_atom_ResponseFeed_POST extends KT_atom_responseFeed{}
-class KT_atom_ResponseFeed_DELETE extends KT_atom_responseFeed{}
-
-?>
\ No newline at end of file
diff --git a/ktatompub/lib/KT_atom_server.default_dms_services.inc.php b/ktatompub/lib/KT_atom_server.default_dms_services.inc.php
deleted file mode 100644
index 423b733..0000000
--- a/ktatompub/lib/KT_atom_server.default_dms_services.inc.php
+++ /dev/null
@@ -1,93 +0,0 @@
-newEntry();
- $feed->newField('id',$id,$entry);
- foreach($item as $property=>$value){
- $feed->newField($property,$value,$entry);
- }
- }
- //Expose the responseFeed
- $this->responseFeed=$feed;
- }
-
- public function DELETE_action(){
- $feed = new KT_atom_ResponseFeed_DELETE();
- $this->responseFeed=$feed;
- }
-}
-
-
-
-
-/**
- * AtomPub Service: folder
- *
- * Returns detail on a particular folder
- *
- */
-class KT_atom_service_folder extends KT_atom_service {
- public function GET_action(){
- //Create a new response feed
- $feed=new KT_atom_responseFeed(KT_APP_BASE_URI);
-
- //Invoke the KtAPI to get detail about the referenced document
- $folderDetail=KT_atom_service_helper::getFolderDetail($this->params[0]?$this->params[0]:1);
-
- //Create the atom response feed
- $entry=$feed->newEntry();
- foreach($folderDetail as $property=>$value){
- $feed->newField($property,$value,$entry);
- }
-
- //Expose the responseFeed
- $this->responseFeed=$feed;
- }
-}
-
-
-
-
-/**
- * AtomPub Service: document
- *
- * Returns detail on a particular document
- *
- */
-class KT_atom_service_document extends KT_atom_service {
- public function GET_action(){
- //Create a new response feed
- $feed=new KT_atom_responseFeed(KT_APP_BASE_URI);
-
- //Invoke the KtAPI to get detail about the referenced document
- $docDetail=KT_atom_service_helper::getDocumentDetail($this->params[0]);
-
- //Create the atom response feed
- $entry=$feed->newEntry();
- foreach($docDetail['results'] as $property=>$value){
- $feed->newField($property,$value,$entry);
- }
- //Add a downloaduri field manually
- $feed->newField('downloaduri',urlencode(KT_APP_SYSTEM_URI.'/action.php?kt_path_info=ktcore.actions.document.view&fDocumentId='.$docDetail['results']['document_id']),$entry);
-
- //Expose the responseFeed
- $this->responseFeed=$feed;
- }
-}
-?>
\ No newline at end of file
diff --git a/ktatompub/lib/KT_atom_server.inc.php b/ktatompub/lib/KT_atom_server.inc.php
deleted file mode 100644
index 7ba14cf..0000000
--- a/ktatompub/lib/KT_atom_server.inc.php
+++ /dev/null
@@ -1,87 +0,0 @@
-queryArray=$queryArray;
- $this->serviceName=$service;
- $this->method=$reqMethod;
- $this->workspace=$workspace;
-
- if($workspace=='servicedocument'){
- $this->serviceDocument();
- return;
- }
-
- $service=$this->getRegisteredService($workspace,$serviceName);
- if(is_array($service)){
- $serviceClass=$service['serviceClass'];
- echo 'made it';
- $serviceObject=new $serviceClass($reqMethod,$requestParams,$rawRequest);
- $this->output=$serviceObject->render();
- }else{
- $serviceObject=new KT_atom_service($requestParams,$rawRequest);
- $serviceObject->setStatus(KT_atom_service::STATUS_NOT_FOUND);
- $this->output=$serviceObject->render();
- }
- }
-
- public function registerService($workspace=NULL,$serviceName=NULL,$serviceClass=NULL,$title=NULL){
- $workspace=strtolower(trim($workspace));
- $serviceName=strtolower(trim($serviceName));
-
- $serviceRecord=array(
- 'fileName' =>$fileName,
- 'serviceClass' =>$serviceClass,
- 'title' =>$title
- );
-
- $this->services[$workspace][$serviceName]=$serviceRecord;
- }
-
- public function getRegisteredService($workspace,$serviceName=NULL){
- $serviceName=strtolower(trim($serviceName));
- if(isset($this->services[$workspace][$serviceName]))return $this->services[$workspace][$serviceName];
- return false;
- }
-
- public function serviceDocument(){
- $service=new KT_atom_serviceDoc(KT_APP_BASE_URI);
-
- foreach($this->services as $workspace=>$collection){
- //Creating the Default Workspace for use with standard atomPub Clients
- $ws=$service->newWorkspace($workspace);
-
- foreach($collection as $serviceName=>$serviceInstance){
- $col=$service->newCollection(KT_APP_BASE_URI.$workspace.'/'.$serviceName.'/',$serviceInstance['title'],$ws);
- }
- }
-
- $this->output=$service->getAPPdoc();
- }
-
- public function render(){
- ob_end_clean();
- header('Content-type: text/xml');
- echo $this->output;
- }
-}
-
-?>
\ No newline at end of file
diff --git a/ktatompub/lib/KT_atom_service.inc.php b/ktatompub/lib/KT_atom_service.inc.php
deleted file mode 100644
index 511992f..0000000
--- a/ktatompub/lib/KT_atom_service.inc.php
+++ /dev/null
@@ -1,90 +0,0 @@
-method=$method;
- $this->params=$params;
- $this->rawContent=$content;
- $this->parseHeaders();
- $this->parsedXMLContent=$this->xml2array($this->rawContent);
- $this->setStatus(self::STATUS_OK);
- $this->responseFeed=new KT_atom_responseFeed(KT_APP_BASE_URI);
- switch(strtoupper($this->method)){
- case 'GET': $this->GET_action();break;
- case 'PUT': $this->PUT_action();break;
- case 'POST': $this->POST_action();break;
- case 'DELETE': $this->DELETE_action();break;
- default: $this->UNSUPPORTED_action();break;
- }
- }
-
- public function GET_action(){
- $this->setStatus(KT_atom_service::STATUS_OK);
- }
-
- public function PUT_action(){
- $this->setStatus(KT_atom_service::STATUS_NOT_FOUND );
- }
-
- public function POST_action(){
- $this->setStatus(KT_atom_service::STATUS_NOT_FOUND );
- }
-
- public function DELETE_action(){
- $this->setStatus(KT_atom_service::STATUS_NOT_FOUND );
- }
-
- public function UNSUPPORTED_action(){
- $this->setStatus(KT_atom_service::STATUS_NOT_FOUND );
- }
-
-
- public function render(){
- return $this->responseFeed->render();
- }
-
- private function xml2array($xml){
- $array=json_decode(json_encode(@simplexml_load_string($xml)),true); //TODO - XML2ARRAY Translation
- return $array;
- }
-
- private function parseHeaders(){
- $headers=null;
- if(function_exists('http_get_request_headers')){ //Try to use pcre_http library if it exists
- $headers=http_get_request_headers();
- }else{
- if(function_exists('apache_request_headers')){ //If not: try to use apache specific headers
- $headers=apache_request_headers();
- }else{ //If not: not supported - empty headers
- $headers=array();
- }
- }
- $this->headers=$headers;
- }
-
- public function setStatus($status=NULL){
- header("HTTP/1.1 ".$status);
- }
-
- private function setEtag($etagValue=NULL){
- if($etagValue)header('ETag: '.$etagValue);
- }
-
-}
-?>
\ No newline at end of file
diff --git a/ktatompub/lib/KT_atom_serviceDoc.inc.php b/ktatompub/lib/KT_atom_serviceDoc.inc.php
deleted file mode 100644
index 2fa2d37..0000000
--- a/ktatompub/lib/KT_atom_serviceDoc.inc.php
+++ /dev/null
@@ -1,138 +0,0 @@
-.
- *
- * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
- * California 94120-7775, or email info@knowledgetree.com.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "Powered by
- * KnowledgeTree" logo and retain the original copyright notice. If the display of the
- * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
- * must display the words "Powered by KnowledgeTree" and retain the original
- * copyright notice.
- * Contributor( s):
- * Mark Holtzhausen
- *
- */
-
-
-/**
- * Includes
- */
-include_once('KT_atom_baseDoc.inc.php');
-
-
-class KT_atom_serviceDoc extends KT_atom_baseDoc {
-
- private $baseURI=NULL;
- private $service=NULL;
-
-
- public function __construct($baseURI=NULL){
- parent::__construct();
- $this->constructServiceDocumentHeaders();
- $this->baseURI=$baseURI;
- }
-
- private function constructServiceDocumentHeaders(){
- $service=$this->newElement('service');
- $service->appendChild($this->newAttr('xmlns','http://www.w3.org/2007/app'));
- $service->appendChild($this->newAttr('xmlns:atom','http://www.w3.org/2005/Atom'));
- $this->service=&$service;
- $this->DOM->appendChild($this->service);
- }
-
- public function &newWorkspace($title=NULL){
- $ws=$this->newElement('workspace');
- $ws->appendChild($this->newElement('atom:title',$title));
- $this->service->appendChild($ws);
- return $ws;
- }
-
- public function &newCollection($url=NULL,$title=NULL,&$ws=NULL){
- $collection=$this->newElement('collection');
- $collection->appendChild($this->newAttr('href',$url));
- $collection->appendChild($this->newElement('atom:title',$title));
- if(isset($ws))$ws->appendChild($collection);
- return $collection;
- }
-
- public function &newAccept($docType=NULL,&$collection=NULL){
- if($docType){
- $accept=$this->newElement('accept',$docType);
- }else{
- $accept=$this->newElement('accept');
- }
- if($collection)$collection->appendChild($accept);
- return $accept;
- }
-
-
- public function getAPPdoc(){
- return $this->formatXmlString(trim($this->DOM->saveXML()));
- }
-
-}
-
-
-
-
-
-
-
-
-/**
-
-
-
- Main Site
-
- My Blog Entries
-
-
-
- Pictures
- image/png
- image/jpeg
- image/gif
-
-
-
- Sidebar Blog
-
- Remaindered Links
- application/atom+xml;type=entry
-
-
-
-
-
-
-
-
- */
-
-
-?>
\ No newline at end of file
diff --git a/ktatompub/lib/KT_atom_service_helper.inc.php b/ktatompub/lib/KT_atom_service_helper.inc.php
deleted file mode 100644
index 299a0f7..0000000
--- a/ktatompub/lib/KT_atom_service_helper.inc.php
+++ /dev/null
@@ -1,227 +0,0 @@
-.
- *
- * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
- * California 94120-7775, or email info@knowledgetree.com.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "Powered by
- * KnowledgeTree" logo and retain the original copyright notice. If the display of the
- * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
- * must display the words "Powered by KnowledgeTree" and retain the original
- * copyright notice.
- * Contributor( s):
- * Mark Holtzhausen
- *
- */
-
-class KT_atom_service_helper{
- private static $FOLDER_LIST_PROPERTIES=array('id','title','permissions','mime_icon_path');
- private static $FILE_LIST_PROPERTIES=array('id','title','document_type','created_by','created_date','checked_out_by','checked_out_date','modified_by','modified_date','owned_by','mime_type','mime_icon_path','mime_display');
- private static $FOLDER_RECURSION_LEVEL=100;
- private static $kt=NULL;
-
- /**
- * Make sure the class is always treated statically and never instantiated.
- *
- * @return void
- */
- public function __construct(){
- die('KT_atom_service_helper should not be instantiated. Only use as a static class');
- }
-
-
- /**
- * Get the KT singleton instance
- *
- * @return object
- */
- public static function getKt(){
- if(!isset(self::$kt)){
- self::$kt=new KTAPI();
- self::$kt->get_active_session(session_id());
- }
- return self::$kt;
- }
-
-
- /**
- * Get the subfolders of the indicated folder
- *
- * @param integer $folderId
- * @return array
- */
- public static function getSubFolders($folderId=NULL){
- if(!(int)$folderId)$folderId=1; //Default to root folder
- $folderInfo=self::getKT()->get_folder_contents($folderId,1);
- $subfolders=array();
- foreach($folderInfo['results']['items'] as $item){
- if($item['item_type']=='F'){
- $subfolders[$item[id]]=self::extractFromArray($item,self::$FOLDER_LIST_PROPERTIES);
- }
- }
- return $subfolders;
- }
-
-
- /**
- * Get every folder & document in the repository
- *
- * @param integer $parent the id of the folder to start recursing from - defaults to root folder [1]
- * @return array
- */
- public static function getFullTree($parent=NULL){
- if(!(int)$parent)$parent=1;
- $ktTree=self::getKT()->get_folder_contents($parent,1);
- $appTree=array();
- foreach($ktTree['results']['items'] as $item){
- $newItem=array();
- $newItem['parent']=$parent;
- $newItem['type']=$item['item_type'];
- $newItem['title']=$item['title'];
- $newItem['filename']=$item['filename'];
- $newItem['id']=$item['id'];
-// $newItem['fullrecord']=$item;
- $appTree[]=$newItem;
- if($newItem['type']=='F')$appTree=array_merge($appTree,self::getFullTree($item['id']));
- }
- return $appTree;
- }
-
-
- /**
- * Get detail about the folder
- *
- * @param integer $folderId The id of the folder to get detail on.
- * @return array
- */
- public static function getFolderDetail($folderId=NULL){
- $ktInfo=self::getKT()->get_folder_by_id($folderId);
- return $ktInfo->get_detail();
- }
-
-
- /**
- * Get detail about the indicated document
- *
- * @param integer $docId The document Id
- * @return array
- */
- public static function getDocumentDetail($docId=NULL){
- $ktInfo=self::getKT()->get_document_detail($docId);
- return $ktInfo;
- }
-
-
- /**
- * Get a list of all the documents in a folder.
- *
- * @param integer $folderId The id of the folder
- * @return array
- */
- public static function getFileList($folderId=NULL){
- $folderContents=self::getKt()->get_folder_contents($folderId,1);
- $folderFiles=array();
- foreach($folderContents['results']['items'] as $item){
- if($item['item_type']=='D'){
- $folderFiles[$item['id']]=self::extractFromArray($item,self::$FILE_LIST_PROPERTIES);
- }
- }
- return $folderFiles;
- }
-
-
- /**
- * Returns an array containing only the associated values from $array where the keys were found in $keyArray
- *
- * @param array $array The array to be processed
- * @param array $keyArray The list of keys to extract from the array
- * @return array
- */
- public static function extractFromArray($array,$keyArray){
- $newArray=array();
- foreach($keyArray as $key){
- $newArray[$key]=isset($array[$key])?$array[$key]:NULL;
- }
- return $newArray;
- }
-
- /**
- * Log in to KT easily
- *
- * @param string $username
- * @param string $password
- * @param string $ip
- * @return object Containing the status_code of the login and session id
- */
- function login($username, $password, $ip=null){
- $kt = self::getKt();
-
- $session = $kt->start_session($username,$password, $ip);
- if (PEAR::isError($session)){
- $response['status_code']=KT_atom_server_FAILURE;
- $response['session_id']='';
- }else{
- $session= $session->get_session();
- $response['status_code'] = KT_atom_server_SUCCESS;
- $response['session_id'] = $session;
- }
- return $response;
- }
-
-
- /**
- * Log out of KT using the session id
- *
- * @param string $session_id
- * @return object Containing the status_code of the logout attempt
- */
- function logout($session_id){
- $kt = self::getKt();
- $session = $kt->get_active_session($session_id, null);
-
- if (PEAR::isError($session)){
- $response['status_code']=KT_atom_server_FAILURE;
- }else{
- $session->logout();
- $response['status_code'] = KT_atom_server_SUCCESS;
- }
- return $response;
- }
-
- /**
- * Check whether the session_id is logged into KT
- *
- * @param string $session_id
- * @return boolean
- */
- function isLoggedIn($session_id){
- $kt=self::getKt();
- $session=$kt->get_active_session($session_id);
- return !PEAR::isError($session);
- }
-
-}
-?>
\ No newline at end of file
diff --git a/ktatompub/lib/cmis/KTCMISAPPFeed.inc.php b/ktatompub/lib/cmis/KTCMISAPPFeed.inc.php
deleted file mode 100644
index 4fc0741..0000000
--- a/ktatompub/lib/cmis/KTCMISAPPFeed.inc.php
+++ /dev/null
@@ -1,153 +0,0 @@
-.
- *
- * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
- * California 94120-7775, or email info@knowledgetree.com.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "Powered by
- * KnowledgeTree" logo and retain the original copyright notice. If the display of the
- * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
- * must display the words "Powered by KnowledgeTree" and retain the original
- * copyright notice.
- * Contributor( s): ______________________________________
- *
- */
-
-
-/**
- * Includes
- */
-include_once('../KT_atom_baseDoc.inc.php');
-
-/**
- * This class generates an AtomPub CMIS feed
- */
-
-class KTCMISAPPFeed extends KT_atom_baseDoc {
-
- private $baseURI = NULL;
- private $id = NULL;
- private $title = NULL;
- private $feed = NULL;
-
- public function __construct($baseURI = NULL, $title = NULL, $link = NULL, $updated = NULL, $author = NULL, $id = NULL)
- {
- parent::__construct();
-
- $this->baseURI = $baseURI;
- $this->id = $id;
- $this->title = $title;
- $this->constructHeader();
- }
-
- private function constructHeader()
- {
- $feed = $this->newElement('feed');
- $feed->appendChild($this->newAttr('xmlns','http://www.w3.org/2007/app'));
- $feed->appendChild($this->newAttr('xmlns','http://www.w3.org/2005/Atom'));
- $feed->appendChild($this->newAttr('xmlns:cmis','http://www.cmis.org/2008/05'));
- $this->feed = &$feed;
-
- if (!is_null($this->id))
- {
- $this->newId($this->id, $this->feed);
- }
-
- $link = $this->newElement('link');
- $link->appendChild($this->newAttr('rel','self'));
- $link->appendChild($this->newAttr('href', $this->baseURI . trim($_SERVER['QUERY_STRING'], '/')));
- $feed->appendChild($link);
-
- if (!is_null($this->title))
- {
- $this->feed->appendChild($this->newElement('title', $this->title));
- }
-
- $this->DOM->appendChild($this->feed);
- }
-
- public function &newEntry()
- {
- $entry = $this->newElement('entry');
- $this->feed->appendChild($entry);
- return $entry;
- }
-
- public function &newId($id, $entry = null)
- {
- $id = $this->newElement('id', $id);
- if(isset($entry))$entry->appendChild($id);
- return $id;
- }
-
- public function &newField($name = NULL, $value = NULL, &$entry = NULL)
- {
- $append = false;
-
- if(func_num_args() > 3)
- {
- $append = ((func_get_arg(3) === true) ? true : false);
- }
-
- $field = $this->newElement('cmis:' . $name,$value);
-
- if (isset($entry)) $entry->appendChild($field);
- else if ($append) $this->feed->appendChild($field);
-
- return $field;
- }
-
- public function getAPPdoc()
- {
- return $this->formatXmlString(trim($this->DOM->saveXML()));
- }
-
-}
-
-/*
-
-
-
- Example Feed
-
- 2003-12-13T18:30:02Z
-
- John Doe
-
- urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6
-
-
- Atom-Powered Robots Run Amok
-
- urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a
- 2003-12-13T18:30:02Z
- Some text.
-
-
-
-*/
-
-?>
\ No newline at end of file
diff --git a/ktatompub/lib/cmis/KTCMISAPPServiceDoc.inc.php b/ktatompub/lib/cmis/KTCMISAPPServiceDoc.inc.php
deleted file mode 100644
index 8284faa..0000000
--- a/ktatompub/lib/cmis/KTCMISAPPServiceDoc.inc.php
+++ /dev/null
@@ -1,129 +0,0 @@
-.
- *
- * You can contact KnowledgeTree Inc., PO Box 7775 #87847, San Francisco,
- * California 94120-7775, or email info@knowledgetree.com.
- *
- * The interactive user interfaces in modified source and object code versions
- * of this program must display Appropriate Legal Notices, as required under
- * Section 5 of the GNU General Public License version 3.
- *
- * In accordance with Section 7(b) of the GNU General Public License version 3,
- * these Appropriate Legal Notices must retain the display of the "Powered by
- * KnowledgeTree" logo and retain the original copyright notice. If the display of the
- * logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices
- * must display the words "Powered by KnowledgeTree" and retain the original
- * copyright notice.
- * Contributor( s): ______________________________________
- *
- */
-
-/**
- * Includes
- */
-include_once('../KT_atom_baseDoc.inc.php');
-
-/**
- * This class generates an AtomPub CMIS service document
- */
-
-class KTCMISAPPServiceDoc extends KT_atom_baseDoc {
-
- private $baseURI=NULL;
- private $service=NULL;
-
- public function __construct($baseURI=NULL){
- parent::__construct();
- $this->constructServiceDocumentHeaders();
- $this->baseURI=$baseURI;
- }
-
- private function constructServiceDocumentHeaders(){
- $service=$this->newElement('service');
- $service->appendChild($this->newAttr('xmlns','http://www.w3.org/2007/app'));
- $service->appendChild($this->newAttr('xmlns:atom','http://www.w3.org/2005/Atom'));
- $service->appendChild($this->newAttr('xmlns:cmis','http://www.cmis.org/2008/05'));
- $this->service=&$service;
- $this->DOM->appendChild($this->service);
- }
-
- public function &newWorkspace($title=NULL){
- $ws=$this->newElement('workspace');
- $ws->appendChild($this->newElement('atom:title',$title));
- $this->service->appendChild($ws);
- return $ws;
- }
-
- public function &newCollection($url = NULL, $title = NULL, $cmisCollectionType = NULL, &$ws = NULL){
- $collection=$this->newElement('collection');
- $collection->appendChild($this->newAttr('href', $url));
- $collection->appendChild($this->newAttr('cmis:collectionType', $cmisCollectionType));
- $collection->appendChild($this->newElement('atom:title', $title));
- if(isset($ws))$ws->appendChild($collection);
- return $collection;
- }
-
- public function &newAccept($docType=NULL,&$collection=NULL){
- if($docType){
- $accept=$this->newElement('accept',$docType);
- }else{
- $accept=$this->newElement('accept');
- }
- if($collection)$collection->appendChild($accept);
- return $accept;
- }
-
- public function getAPPdoc(){
- return $this->formatXmlString(trim($this->DOM->saveXML()));
- }
-
-}
-
-/**
-
-
-
- Main Site
-
- My Blog Entries
-
-
-
- Pictures
- image/png
- image/jpeg
- image/gif
-
-
-
- Sidebar Blog
-
- Remaindered Links
- application/atom+xml;type=entry
-
-
-
-
-
-
-
- */
-?>
\ No newline at end of file
diff --git a/ktatompub/phpinfo.php b/ktatompub/phpinfo.php
deleted file mode 100644
index 968c8df..0000000
--- a/ktatompub/phpinfo.php
+++ /dev/null
@@ -1,3 +0,0 @@
-
\ No newline at end of file
diff --git a/ktatompub/xmlparsetest.php b/ktatompub/xmlparsetest.php
deleted file mode 100644
index 33a0117..0000000
--- a/ktatompub/xmlparsetest.php
+++ /dev/null
@@ -1,138 +0,0 @@
-getName();
- if($ns)$tagName=$ns.':'.$tagName;
- $array=array();
- $array[$tagName]['@attributes']=self::getAttributes($xml,$rootXML);
- if(self::hasChildren($xml,$rootXML)){
- $children=self::getChildren($xml,$rootXML);
- echo ''.$tagName.'
';
-
-
-//echo http_get_request_headers();
-
-?>
\ No newline at end of file
diff --git a/webservice/atompub/cmis/index.php b/webservice/atompub/cmis/index.php
index 8f7d7a6..325265f 100644
--- a/webservice/atompub/cmis/index.php
+++ b/webservice/atompub/cmis/index.php
@@ -95,9 +95,9 @@ if ($workspace == 'servicedocument')
* ServiceName :This is the name by which the service/collection is exposed
* ServiceClass :This is the class name of the class to be instantiated when this service is accessed
* Title :This is the title given to the service/collection in the servicedocument
- * http://ktatompub/index.php?/service/param1/param2
- * http://ktatompub/?/folder/children/whatfoldertolookat
- * http://ktatompub/{folder/folder2/folder3/}service/param1/param2
+ * http://webservice/atompub/cmis/index.php?/service/param1/param2
+ * http://webservice/atompub/cmis/?/folder/children/whatfoldertolookat
+ * http://webservice/atompub/cmis/{folder/folder2/folder3/}service/param1/param2
*/
// TODO consider a registerServices function which will, dependant on what is requested, register the appropriate services, keep the logic out of the index file
$APP->registerService('dms', 'folder', 'KT_cmis_atom_service_folder', 'Root Folder Children Collection',
diff --git a/webservice/atompub/index.php b/webservice/atompub/index.php
index 96d364b..8fe3887 100644
--- a/webservice/atompub/index.php
+++ b/webservice/atompub/index.php
@@ -46,13 +46,13 @@ ob_start();
/**
* To sidestep url rewrites but still retain the atomPub URL convention,
* the entry point is: index.php?/
- * eg. 1. Accessing the servicedocument: http://example.com/ktatompub/index.php?/servicedocument
- * 2. Accessing the folder service: http://example.com/ktatompub/index.php?/folder/1
+ * eg. 1. Accessing the servicedocument: http://example.com/webservice/atompub/index.php?/servicedocument
+ * 2. Accessing the folder service: http://example.com/webservice/atompub/index.php?/folder/1
*
* If URL rewrites are used, they should point any reference below
* this folder to index.php?/
*
- * Because index.php is accessed as the default document, the url can be shortened to http://example.com/ktatompub/?/
+ * Because index.php is accessed as the default document, the url can be shortened to http://example.com/webservice/atompub/?/
*/
define('KT_APP_BASE_URI',"http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/?/');