-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webservices with dataverse #4282
Comments
I encouraged @thalia25 to create an issue in the form of a user story at http://irclog.iq.harvard.edu/dataverse/2017-11-14#i_60217 She could probably use some help formulating user stories since the concept is new to her. |
Hello, At the moment I have the list of values but what I need is how to add the list of values to the label: <p:selectManyCheckbox value="#{dsf.controlledVocabularyValues}" converter="controlledVocabularyValueConverter" layout="pageDirection"> How can I do that? |
Hi @thalia25, I spoke with @scolapasta about adding controlled vocabulary terms from a remote source to Dataverse metadata fields, specifically the subjects. When we chatted on IRC earlier this week, you wrote that your team didn’t want have to modify the database. But we think there are lots of good reasons to do this (needing to call the web service every time the page loads might cause performance and reliability issues), and modifying the database with updated terms can be done through Dataverse’s APIs, so we would like to urge you to consider this. Storing and updating copies of vocabulary terms is the approach we’re going to take for building more support for controlled vocabularies. |
Thanks! Pasting my reply from our IRC chat here: @pdurbin reminded us of an effort to improve Dataverse's documentation for changing metadata blocks (#3168). The doc needs some work and we haven't had time unfortunately. But here's the doc that tries to explain how the metadata block .tsv files work. |
@thalia25 it sounds like you'd like Author Affiliation to be a controlled vocabulary dropdown list like Identifier Scheme rather than a text box that the user types into. Because this is the citation metadata block, I'm hesitant to encourage you to customize how it works because it may make upgrading harder in the future. I don't know if we're planning any massive changes to the citation metadata block, but we have an assumption that installations of Dataverse leave it alone. All that said, you could probably look into how the Identifier Scheme field works to see how the GUI constructs a dropdown based on the field being a controlled vocabulary. |
@pdurbin If so, I want a drop-down list and also tried to interpret how it is programmed in XHTML and I see that they duplicate a code for all fields and does mention the values that correspond to it. |
For this what you'll want to do is change the the allows controlled vocabulary flag for that field (in datasetfieldtype) to true, then add the controlled vocabulary values to that table. |
The issue #4772 proposes a gerneralized solution to use external API sources in the metadata. |
#6030 created! |
Hello every all, Well, I am interesting about that by creating a dataset I can consult web services that give me back the data in json, they can be consulted by id but I would like some ideas of how I can do this, I have been told that I can do it with AJAX and JSON, but without modifying the Dataverse code that comes by default.
"As a user, I want to create a dataset and pick from a list of authors or language or type of publication, etc."
Thanks for your answer.
Regards
Thalia Ur Mtz
The text was updated successfully, but these errors were encountered: