/dev/adei-asec

To get this branch, use:
bzr branch http://darksoft.org/webbzr/dev/adei-asec

« back to all changes in this revision

Viewing changes to setups/katrin/js/xmlmodule/katrindata.js

  • Committer: Suren A. Chilingaryan
  • Date: 2010-08-13 14:18:27 UTC
  • Revision ID: csa@dside.dyndns.org-20100813141827-u3o97425ppvd5g7y
Revert back to SetConfiguration from SetCustomProperties while handling certain property in search; trully support HTML content in description field within search results; support execution in XMLModule; support for setup-specific javascript code; KATRIN update

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function KATRINDATA(div) {
 
2
    KATRINDATA.superclass.call(this, div);
 
3
}
 
4
 
 
5
classExtend(KATRINDATA, EVENTDATA);
 
6
 
 
7
/*
 
8
 
 
9
KATRINDATA.prototype.Update = function(json, forced) {
 
10
    if ((json.xml)&&(json.xslt)) {
 
11
        adei.xslpool.Load(json.xslt, json.xml, katrinDataRender, this);
 
12
        adei.SetSuccessStatus(translate("Done"));
 
13
    } else {
 
14
        adei.SetStatus(translate("Update failed: Incomplete response received by the module"));
 
15
    }
 
16
}
 
17
 
 
18
KATRINDATA.prototype.Render = function(xmldoc, error) {
 
19
//    adei.OpenControl(this.module);
 
20
 
 
21
    if (xmldoc) {
 
22
        htmlReplace(xmldoc, this.div, true);
 
23
    } else {
 
24
        htmlReplace(translate("Update of Katrin data is failed due \"%s\"", error), this.div);
 
25
    }
 
26
}
 
27
 
 
28
function katrinDataRender(xmldoc, self, error) {
 
29
    self.Render(xmldoc, error);
 
30
}
 
31
*/
 
 
b'\\ No newline at end of file'