Hi Mike,

 
> Looking at the .xsl file, I don't think the node id attribute is used
> in any way.

you're right with this. It was a long time ago, I've thought about the 
rendering by the stylesheet. If you wish to use the node id attribute for 
searching you may try the way I've attached.

Andres
-- 
Dr. Andres Quast
Virtual Library GEO-LEO
Staats- und Universitätsbibliothek Göttingen
Platz der Göttinger Sieben 1
37070 Göttingen

email: [EMAIL PROTECTED]
tel: +49 551-39 4255
http://www.geo-leo.org
vocabulary2html.xsl
Snipped:

<input class="controlledvocabulary" type="checkbox" name="{$checkBoxName}" 
value="{$nodePath}"/>

:Snipped

has to be changed somehow like:

Snipped:

<input class="controlledVocabulary" type="checkbox" name="{$checkBoxName}">
<xsl:attribute name="value"><xsl:value-of select="@id"/></xsl:attribute>
</input>

:Snipped

Now you searches for the node id content.  But if you do so, you also have to 
configure the submission workflow making sure that the node id attribute will 
be stored in a dc:subject -field    

Therefore change this within the controlledvocabulary.jsp

Snipped:
                while(node != null) {
                        if(firstNode == 1) {
                                resultPath = getTextValue(node);
                                firstNode = 0;
                        } else {
                                resultPath = getTextValue(node) + pathSeparator 
+ resultPath;
                        }
                        node = getParentTextNode(node);
                }

:Snipped

to

Snipped:

                resultPath = getTextValue(node);

:Snipped


and then you have to make another change within the xsl-Stylesheet:

Snipped:

<xsl:otherwise>
<a class="value" onClick="javascript: i(this);" href="javascript:void(null);">
<xsl:value-of select="@label"/>
</a>
</xsl:otherwise>

:Snipped

to 

Snipped:

<xsl:otherwise>
<a class="value" onClick="javascript: i(this);" href="javascript:void(null);">
<xsl:value-of select="@id"/>
</a>
<font color="black">
(<xsl:value-of select="@label"/>)</font>
</xsl:otherwise>

:Snipped


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to