Hi,
I'm trying to define a controlled vocabulary for the dc.type field as
specified in the DRIVER guidelines [1]. To sum up, it defines some types
like "article" or "masterThesis" all prefixed with the
"info:eu-repo/semantics/" namespace. So, in a OAI response, it would
appear like this:
<dc:type>info:eu-repo/semantics/masterThesis</dc:type>
So far, I've written this little xml bellow and modified the
input-forms.xml to use it.
<node label="info:eu-repo/semantics/">
<isComposedBy>
<node label="article"/>
<node label="bachelorThesis"/>
<node label="masterThesis"/>
</isComposedBy>
</node>
The problem is when I start a new submission. I can select a type from
the vocabulary, but it gets inserted with '::' between the root label
and the children one. For example, if I select "article", it's inserted
as "info:eu-repo/semantics/::article" instead of
"info:eu-repo/semantics/article".
If I'm not wrong, from looking at controlledvocabulary.xsd, it forces
you to define the keywords in a tree with at least a root node and
various children nodes. Why does it have to be always organised in a tree?
Also, I've not found any way of avoiding the '::' separator o changing
it without modifying the source code. Why is this separator always used?
Wouldn't it be better to specify it in the vocabulary XML? Is there any
way of avoiding it?
Have anyone defined a vocabulary following the DRIVER guidelines or
solved a similar problem?
I'm trying this with DSpace 1.5.2.
Thanks,
Àlex
[1] http://www.surffoundation.nl/wiki/display/DRIVERguidelines/Type
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech