mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger <christian.paminger@technikum-wien.at>,
|
||||
* Authors: Christian Paminger <christian.paminger@technikum-wien.at>,
|
||||
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
|
||||
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
|
||||
*/
|
||||
@@ -27,13 +27,13 @@
|
||||
// ****
|
||||
// * Liefert den Value aus einer XML-Datasource
|
||||
// ****
|
||||
function getTargetHelper(dsource,subj,predi)
|
||||
function getTargetHelper(dsource,subj,predi)
|
||||
{
|
||||
if (dsource.hasArcOut(subj, predi))
|
||||
if (dsource.hasArcOut(subj, predi))
|
||||
{
|
||||
var target = dsource.GetTarget(subj, predi, true);
|
||||
if (target instanceof Components.interfaces.nsIRDFLiteral ||
|
||||
target instanceof Components.interfaces.nsIRDFInt)
|
||||
target instanceof Components.interfaces.nsIRDFInt)
|
||||
{
|
||||
return target.Value;
|
||||
}
|
||||
@@ -69,7 +69,7 @@ function gettimestamp()
|
||||
// ****
|
||||
// * Parst die Returnwerte der DBDML Scripte
|
||||
// * @param response ... RDF Response des DBDML Scripts
|
||||
// *
|
||||
// *
|
||||
// * obj.dbdml_return ... Returnwert des Scripts
|
||||
// * obj.dbdml_errormsg ... Errormessage
|
||||
// * obj.dbdml_data ... zusaetzliche Daten vom Script. zB ID des angelegten Datansatzes
|
||||
@@ -79,13 +79,13 @@ function ParseReturnValue(response)
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
// Returnwerte aus RDF abfragen
|
||||
var dsource=parseRDFString(response, 'http://www.technikum-wien.at/dbdml');
|
||||
|
||||
|
||||
var rdfService = Components.classes["@mozilla.org/rdf/rdf-service;1"].
|
||||
getService(Components.interfaces.nsIRDFService);
|
||||
var subject = rdfService.GetResource("http://www.technikum-wien.at/dbdml/0");
|
||||
|
||||
|
||||
var predicateNS = "http://www.technikum-wien.at/dbdml/rdf";
|
||||
|
||||
|
||||
retval = getTargetHelper(dsource, subject, rdfService.GetResource( predicateNS + "#return" ));
|
||||
if(retval=='true')
|
||||
this.dbdml_return = true;
|
||||
|
||||
Reference in New Issue
Block a user