Language setup for controlled vocabulary

175 views
Skip to first unread message

Kiszely András

unread,
Aug 7, 2018, 9:57:45 AM8/7/18
to DSpace Community
Hello, is possible the use of more language in controlled vocabulary or authority control?
If yes, can i use the "item language" metadata for set up (choose) of the vocabulary language, even in another submission step?

Regards
Andras

Kiszely András

unread,
Sep 13, 2018, 8:57:25 AM9/13/18
to DSpace Community
Up. Any idea?

Tim Donohue

unread,
Sep 13, 2018, 11:43:31 AM9/13/18
to Kiszely András, DSpace Community
Hello Andras,

I'm not sure if I understand your question completely.  But, you might want to take a look at the documentation for "input-forms.xml":


As noted in that documentation, you can create your own custom controlled vocabularies (in any language) and link those vocabularies into specific form fields (using a "<vocabulary>" tag).  If you don't require an entire controlled vocabulary, you can also just create a new, custom set of "<value-pairs>" (again in any language), to provide a custom dropdown for a given form field.  There are examples of each of these types of configuration in the default input-forms.xml: https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace/config/input-forms.xml 

If I misunderstood your question, let us know on this mailing list.  It's also possible that others here may have more ideas, if you restate or clarify what you are trying to configure.

Tim


--
All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/
---
You received this message because you are subscribed to the Google Groups "DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-communi...@googlegroups.com.
To post to this group, send email to dspace-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.
--
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org

Kiszely András

unread,
Sep 14, 2018, 7:14:30 AM9/14/18
to DSpace Community
Hello Tim!

Thanks for the reply, i found this documentation and the internationalization too.
I followed the instructions and the vocabulary setup is done in my system, but the vocabulary language change isn't...

Maybe its my fault...

My config:

       <field>
         <dc-schema>dc</dc-schema>
         <dc-element>vocabulary</dc-element>
         <dc-qualifier>test</dc-qualifier>
         <!-- An input-type of twobox MUST be marked as repeatable -->
         <repeatable>true</repeatable>
         <label>VocTest</label>
         <input-type>twobox</input-type>
         <hint>Enter appropriate subject keywords or phrases. </hint>
         <required>true</required>
         <vocabulary>voctest</vocabulary>
       </field>
The vocabularies:

English: voctest.xml
<?xml version="1.0" encoding="UTF-8"?>
<node id="ContVocTest" label="Controlled vocabulary testing">
<isComposedBy>
<node id="CVT001" label="First option">
<isComposedBy>
<node id="CVT0011" label="Hack the planet">
<isComposedBy>
<node id="CVT00111" label="Never give up!">
<hasNote>Bad joke</hasNote>
</node>
<node id="CTV00112" label="You have chance!">
<hasNote>No Note</hasNote>
</node>
</isComposedBy>
<hasNote>I believe you, Dspace!</hasNote>
</node>
</isComposedBy>
<hasNote>The data is my religion.</hasNote>
</node>
</isComposedBy>
</node>

Hungarian: voctest_hu.xml
<?xml version="1.0" encoding="UTF-8"?>
<node id="ContVocTest" label="Szabályozott értéklista teszt">
<isComposedBy>
<node id="CVT001" label="Első lehetőség">
<isComposedBy>
<node id="CVT0011" label="Zúzd le a bolygót">
<isComposedBy>
<node id="CVT00111" label="Soha ne add fel!">
<hasNote>Rossz vicc</hasNote>
</node>
<node id="CTV00112" label="Van esélyed!">
<hasNote>Semmi cicóóóó! :)</hasNote>
</node>
</isComposedBy>
<hasNote>Hiszek benned, Dspace! :D</hasNote>
</node>
</isComposedBy>
<hasNote>Az adat a vallásom.</hasNote>
</node>
</isComposedBy>
</node>

And my problem(s):
When i change the internationalization to hungarian even manually or by the default,  the list is still available only in english. Why?


Regards,
András
Reply all
Reply to author
Forward
0 new messages