Yonny Owour
Yonny Owour

Reputation: 23

How to retrieve metadata content of an item from another item input form in dspace 5 xmlui

I have two collections (meetings and decisions) that are related to one another. Decisions are based on meetings, I therefore would like to show this relationship in decisions metadata by having a link with the meeting title that links to meeting item. How would i go about implementing this on a custom input form e.g with dropdown or choice management that enables a submitter to simply select the meeting while imputing decision metadata.

Upvotes: 2

Views: 195

Answers (1)

Antoine Snyers
Antoine Snyers

Reputation: 694

That's not such an easy task. I'm sure there are many ways to do this but they involve a lot of custom code. Here is what I would do in xmlui.

  1. index the meeting metadata in discovery
  2. write a cocoon reader that queries discovery and returns json
  3. write javascript to call this endpoint and insert the options on the page

Each of these are worth their own share of stackoverflow questions though. But if you're up to it, here are classes and examples to get you started.

  1. SolrServiceIndexPlugin.java (implement & configure in spring)
  2. JSONControlledVocabularyReader.java (implement your own & configure in a sitemap.xmap)
  3. I couldn't really find an easy javascript example in the dspace submission... maybe person-lookup.js or vocabulary-support.js

Then again maybe there are more practical approaches.

Upvotes: 0

Related Questions