myexperiment-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Myexperiment-discuss] adding stuff


From: Linde, A.E.
Subject: RE: [Myexperiment-discuss] adding stuff
Date: Mon, 30 Jun 2008 12:16:22 +0100

Many thanks, Dave. That's great. I'll have a crack at that next.

<< didn't specify that Graphviz needed to be
installed in my set of instructions>>

Ah, is that why images are missing - didn't think to check the error messages.

Cheers,
Tony.
________________________________________
From: David R Newman address@hidden
Sent: 30 June 2008 12:03
To: Linde, A.E.; address@hidden
Subject: Re: [Myexperiment-discuss] adding stuff

Hi Tony,

I would suggest doing the 3 stages you are talking about as follows:

1.  You will want to put you sacEndpoint variable in the
environment_private.rb file.  This is in the config directory of the trunk.
As this variable will remain constant whilst myExperiment is running, we
have tended to use the standard naming convention for constants of making
the name all upper case (e.g. SAC_ENDPOINT).

2. You could create you own SKUA javascript file but I sense there is not
too much code so you might as well add it to application.js in the
public/javascripts directory.  A function to load the app I would guess
wold look a bit like the one below.

function loadSkuaApp() {
  var url = "<%= SAC_ENDPOINT %>" //Plus any additional information it can
be passed on loading.
  window.open(url);
}

3. As you said in your email, I think it would be quicker for you figure
out number 3 than for me to explain it.  It would just be a couple of lines
of code in app/views/workflows/show.rhtml.

Also in response to your previous email that I think Don is responding to.
I have just realised that I didn't specify that Graphviz needed to be
installed in my set of instructions.  I have now added it to the latest
version of developers.txt.

Regards

Dave Newman
myExperiment Team Member



--On Monday, June 30, 2008 10:27:00 +0100 "Linde, A.E."
<address@hidden> wrote:

> Not so quick question:
>
> I want the spacebook version of myExperiment to have extra bits added to
> it (though I'm now trying to keep this to a bare minimum). The end goal
> is to allow astronomy users to click an icon next to, say, a workflow and
> the metadata associated with that workflow is sent to a SKUA application
> which loads as a separate tab, window or AIR app. The SKUA app then fires
> up and allows the user to store their metadata in a SKUA SAC (semantic
> assertion collection).
>
> So, what I'd like to add to myExperiment is:
>
> 1. a variable in the config file, sacEndpoint, whose value is the
> endpoint of the SAC associated with this implementation of spacebook,
> which is then added as a global Javascript variable to every web page
> rendered by the Rails code;
>
> 2. inclusion of a SKUA javascript file in every web page;
>
> 3. an icon and text next to (initially) each workflow in the Workflows
> tab and in the individual workflow page such that clicking the icon/text
> will call a function in the Javascript file passing it the workflow
> metadata and SAC endpoint.
>
> I can probably figure out 2 & 3 (but would like to know the *best* way of
> doing it so as to make the minimum hit on my version of the myexp code)
> but definitely need some help with 1 in how to reference and include the
> value of a config variable.
>
> Cheers,
> Tony.
>
>
> _______________________________________________
> Myexperiment-discuss mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/myexperiment-discuss








reply via email to

[Prev in Thread] Current Thread [Next in Thread]