[daisy] Re: daisy Digest, Vol 34, Issue 2

Brandt Solovij bso at qad.com
Tue Jul 3 12:15:15 CDT 2007


Question : David Hofmann : Create a field with a link.

If I understand your question, I actually just did something very similar. 
With the JAVA API, what I did was create the Image document - once the 
document has been saved ( document.save(); ) you can then call the " 
getId();" method, which returns a string of the document's daisy id. 

I was using this to mass import images then create SimpleDocument wrappers 
around the image, for content authors to annotate the images ( generally 
speaking, the images where exported slides from power point presentations) 
.

The assigning of a native daisy id via a link field or field list -- 
should probably be handled the same way.  While I was creating XML 
documents with < img scr=# /> tags in them, I chose to use Java --- but 
for the purpose of simply appending a custom field value, you could 
certainly use the Javascript functionality to do this : 

 / Javascript pseudo code example  -- this assumes you have already 
established all of your repository and document objects / collections, 
etc... etc.. 
......
var _YourNewID = _document.getId(); 
_YourNewID  = " < a href='" + _YourNewID + "' >click here for somefile 
</a>"; 
_document.setCustomField( "MyLinkFlied", _YourNewID);
_document.save();
.........


--- Additionally, if you need a more legible name for the link then the 
native Daisy doc id -- I'd suggest wrapping this in a select loop ( theres 
an example of a Java API select application on the Daisy JAVA API page ( 
under "Scripting the Repository" ) .  Personally I found Java to be the 
tool of choice for this ( in lieu of Javascript ) simply because of the 
ability to create / manipulate text / image and media. I actually use this 
functionality to update all sorts of fun stuff and generate on the fly 
cross referencing.

I hope this helps or answers your question, David. 


-cheers ! Brandt Solovij. 













daisy-request at lists.cocoondev.org 
Sent by: daisy-bounces at lists.cocoondev.org
07/03/2007 10:00 AM
Please respond to
daisy at lists.cocoondev.org


To
daisy at lists.cocoondev.org
cc

Subject
daisy Digest, Vol 34, Issue 2






Send daisy mailing list submissions to
                 daisy at lists.cocoondev.org

To subscribe or unsubscribe via the World Wide Web, visit
                 http://lists.cocoondev.org/mailman/listinfo/daisy
or, via email, send a message with subject or body 'help' to
                 daisy-request at lists.cocoondev.org

You can reach the person managing the list at
                 daisy-owner at lists.cocoondev.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of daisy digest..."


Today's Topics:

   1. Daisy: a blog (Bruno Dumon)
   2. create link list from multi value field (Hofmann. David)
   3. Re: create link list from multi value field (Patrick)
   4. Re: New Daisy repository runtime platform (Bruno Dumon)


----------------------------------------------------------------------

Message: 1
Date: Mon, 02 Jul 2007 21:51:03 +0200
From: Bruno Dumon <bruno at outerthought.org>
Subject: [daisy] Daisy: a blog
To: "Daisy: open source CMS - general mailinglist"
                 <daisy at lists.cocoondev.org>
Message-ID: <1183405863.6384.8.camel at localhost.localdomain>
Content-Type: text/plain

Hi,

Now available for your reading pleasure:

http://brunodumon.wordpress.com/

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org



------------------------------

Message: 2
Date: Tue, 3 Jul 2007 13:40:00 +0200
From: "Hofmann. David" <d.hofmann at seeburger.de>
Subject: [daisy] create link list from multi value field
To: <daisy at lists.cocoondev.org>
Message-ID:
 <76BB0272C9612049BC54A2E0333B12C30195D305 at SEEDEBREXCHCL.seeburger.de>
Content-Type: text/plain; charset="us-ascii"



Hello,

 

If a have a multi value field containing (Name of Document 1, Name of
Document 2, ...),

Is there a query to return a list of links to those documents like:

 

-<a href="daisy:2601-DSY">Name of Document 1</a>

-<a href="daisy:2607-DSY ">Name of Document 2</a>

 

?

This would be a very fast way to add references at the bottom of a
document instead of manually inserting links.

 

Thanks for your help.

David

_________________________________________________________________________

SEEBURGER AG Vorstand/Seeburger Executive Board:
Sitz der Gesellschaft/                                           Bernd 
Seeburger, Axel Haas, Michael Kleeberg
Registered Office:
Edisonstrasse 1 Vorsitzender des Aufsichtsrats/Chairperson of
D-75015 Bretten the Seeburger Supervisory Board:
Tel.: 07252 / 96-0                                               Dr. Franz 
Scherer
Fax:  07252 / 96-2222
Internet: http://www.seeburger.de Registergericht/Commercial Register:
e-mail: info at seeburger.de                                HRB 240708 
Mannheim
_________________________________________________________________________

Dieses E-Mail ist nur fur den Empfanger bestimmt, an den es gerichtet 
ist und kann vertrauliches bzw. unter das Berufsgeheimnis fallendes
Material enthalten. Jegliche darin enthaltene Ansicht oder Meinungs-
au?erung ist die des Autors und stellt nicht notwendigerweise die
Ansicht oder Meinung der Seeburger AG dar.
Sind Sie nicht der Empfanger, so haben Sie diese E-Mail rrtumlich
erhalten und jegliche Verwendung, Veroffentlichung, Weiterleitung,
Abschrift oder jeglicher Druck dieser E-Mail ist strengstens untersagt.
Weder die Seeburger AG noch der Absender (David Hofman)
ubernehmen die Haftung fur Viren; es obliegt Ihrer Verantwortung,
die E-Mail und deren Anhange (0) auf Viren zu prufen.

The present email addresses only the addressee which it targets and
may contain confidential material that may be protected by the
professional secret. The opinions reflected herein is not necessarily
the one of the Seeburger AG.
If you are not the addressee, you have accidentally got this email and
are not enabled to use, publish, forward, copy or print it in any way.
Whether the Seeburger AG, nor the sender (David Hofman) are
liable for viruses, being your own responsibility to check this email
and it attachments (0) for this purpose.
_________________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.cocoondev.org/pipermail/daisy/attachments/20070703/220bab0a/attachment.html


------------------------------

Message: 3
Date: Tue, 3 Jul 2007 15:05:29 +0200
From: Patrick <p.ahles at gmail.com>
Subject: Re: [daisy] create link list from multi value field
To: "Daisy: open source CMS - general mailinglist"
                 <daisy at lists.cocoondev.org>
Message-ID:
 <e51421460707030605h6ae5d104v724c427b91ff4481 at mail.gmail.com>
Content-Type: text/plain; charset="windows-1252"

I'm not sure, but if you use a field of type 'link', don't you then 
already
have what you want?

On 7/3/07, Hofmann. David <d.hofmann at seeburger.de> wrote:
>
>
>  Hello,
>
>
>
> If a have a multi value field containing (Name of Document 1, Name of
> Document 2, …),
>
> Is there a query to return a list of links to those documents like:
>
>
>
> -<a href="daisy:2601-DSY">Name of Document 1</a>
>
> -<a href="daisy:2607-DSY ">Name of Document 2</a>
>
>
>
> ?
>
> This would be a very fast way to add references at the bottom of a
> document instead of manually inserting links.
>
>
>
> Thanks for your help.
>
> David
>

-- 
Patrick

----
Neutiquam erro. Magister mundi sum!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.cocoondev.org/pipermail/daisy/attachments/20070703/00946dea/attachment-0001.htm


------------------------------

Message: 4
Date: Tue, 03 Jul 2007 16:49:55 +0200
From: Bruno Dumon <bruno at outerthought.org>
Subject: Re: [daisy] New Daisy repository runtime platform
To: "Daisy: open source CMS - general mailinglist"
                 <daisy at lists.cocoondev.org>
Message-ID: <1183474195.6339.54.camel at localhost.localdomain>
Content-Type: text/plain

Another update:

The main work on the new runtime is done. It still resides on
BRANCH_NEWRUNTIME, but I'm planning on merging it to trunk later this
week. The work has gone quicker and smoother than I expected, in part
because I've opted for completely backwards compatible component
configuration.

The switch to the new runtime should have no noticeable impact to users:

 * behind the scenes, instead of merlin, the new runtime is started

 * configuration (myconfig.xml) stays the same

Custom written authentication schemes will have to be adjusted, but the
change is straightforward and it will be a lot easier. You will now be
able to just drop the jar containing the custom authentication scheme in
a <datadir>/extensions directory, and it will be loaded automatically
(on repository startup).

Of course, I'll write some documentation explaining all this.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org                          bruno at apache.org



------------------------------

_______________________________________________
daisy community mailing list
Professional Daisy support: 
http://outerthought.org/site/services/daisy/daisysupport.html
mail to: daisy at lists.cocoondev.org
list information: http://lists.cocoondev.org/mailman/listinfo/daisy


End of daisy Digest, Vol 34, Issue 2
************************************



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cocoondev.org/pipermail/daisy/attachments/20070703/f18b9cd9/attachment-0001.htm


More information about the daisy mailing list