You received this message because you are subscribed to the Google Groups "bungeni-editor" group.--
To post to this group, send email to bungeni...@googlegroups.com.
To unsubscribe from this group, send email to bungeni-edito...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bungeni-editor?hl=en.
<action name="mark_reference" source="inlineType" metadata="ref">
<router class="org.bungeni.editor.actions.routers.routerInputReference"
dialog="refinline"
/>
</action> <dialog id="refinline" class="org.bungeni.editor.selectors.general.Main" >
<dialog
class="org.bungeni.editor.selectors.general.ref.RefURI"
/>
</dialog>
The dialog for the "ref" markup provides a text field where you can input a URI / URL and thats implemented here :
org.bungeni.editor.selectors.general.ref.RefURI
The entry point for the action is in toolbar_actions/debaterecord.xml :
<action name="ref.general" mode="TEXT_SELECTED_INSERT" target="mark_reference"
visible="true"
condition="textSelected:true"
title="REF_INLINE" tooltip="MARK_SELECTION_AS_INLINE_REF"> </action>
The output for the markup looks like this :
<speech bodf:sourceId="speech1" as="#MemberOfParliament" asText="MemberOfParliament" by="#JamesMuendo">
<from bodf:sourceId="id687910772">Mr. James</from>
<p>
<ref bodf:sourceId="id1847723105" href="http://www.google.com">This</ref>is the speech</p>
</speech>
---------- Forwarded message ----------
From: Samar Ayesh <say...@birzeit.edu>
Date: Mon, Dec 17, 2012 at 10:59 AM
Subject: Re: new configuration
To: bungeni...@googlegroups.com
Cc: Ahmad Hammo <hah...@birzeit.edu>
Thanks Ashok for this explaining .. it worked fine with me ...
but when the case is like that:
I have an inlineType and it doesn't have a dialog ..
"like longTitle in preface"
I think toolbarAction function is not implemented for this case
if (actionSourceValue.length() > 0 ) {
if (this.actionSource.equals(actionSourceOrigin.sectionType)) {
this.setupSectionType(this.actionSourceValue);
} else if (this.actionSource.equals(actionSourceOrigin.inlineType)) {
log.debug("This is an inline type - no special setup for now");
} else if (this.actionSource.equals(actionSourceOrigin.annotationType)) {
log.debug("This is an annotation type - no special setup for now");
}
I debugged through this code, and found that !!
<inlineType name="ref">
<output>
<metadatas>
<metadata name="BungeniRefURI" />
</metadatas>
<content>
<an:ref href="$BungeniRefURI" />
</content>
</output>
</inlineType>
Also my output for ref is like this:
<preamble bodf:sourceId="preamble">
<p>4<ref href="">4444</ref>44444444</p>
</preamble>
id attribute not shown !
href value is missing!
BungeniRefURI is used in RefURI.java ..but it's value is null when generating xml file??
also
<output>
<metadatas>
<metadata name="BungeniWorkAuthor" />
</metadatas>
<meta>
<references>
<TLCOrganization id="$BungeniWorkAuthor" />
</references>
</meta>
....
didn't work !!
On Mon, Dec 17, 2012 at 10:59 AM, Samar Ayesh <say...@birzeit.edu> wrote:
Thanks Ashok for this explaining .. it worked fine with me ...
but when the case is like that:
I have an inlineType and it doesn't have a dialog ..
"like longTitle in preface"
I think toolbarAction function is not implemented for this case
if (actionSourceValue.length() > 0 ) {
if (this.actionSource.equals(actionSourceOrigin.sectionType)) {
this.setupSectionType(this.actionSourceValue);
} else if (this.actionSource.equals(actionSourceOrigin.inlineType)) {
log.debug("This is an inline type - no special setup for now");
} else if (this.actionSource.equals(actionSourceOrigin.annotationType)) {
log.debug("This is an annotation type - no special setup for now");
}
I debugged through this code, and found that !!
I have just committed birzeit_configs folder .. you can find ref under act >> preamble
--___________________________
Samar Ayesh
aha , it's clear now .. I think I don't have to create separate xslt currently
I will update birzeit_configs/system folder according to your system folder
then I will try reference inlineType ..
but what about inlineTypes with no dialog .. how can implement it?
On Wed, Dec 19, 2012 at 8:50 AM, Ashok Hariharan <as...@parliaments.info> wrote:
Hi Samar --
Let me know if you got the problem .. if you need help let me know,
Did you set the svn:externals property on the folder ?
http://justinram.wordpress.com/2009/06/04/howto-add-svnexternals-in-windows-using-tortoisesvn/
On 19 December 2012 13:00, Samar Ayesh <smr....@gmail.com> wrote:Actually i deleted local copies and added externals in xsl.. So as to have same version as yours and checked out system-configs again
But i don't know why my folder is still not updated on svn after i committed it !!