I can provide some details on the xmlui implementation.
The class serving the JSON input is
org.dspace.app.xmlui.cocoon.JSONControlledVocabularyReader. [1] (That is
configured in the main webapp's sitemap: [2])
This calls org.dspace.vocabulary.ControlledVocabulary for a JAVA
represention of the XML contents and then transforms it into JSON.
The popup in the UI is the work of javascript: vocabulary-support.js [3]
Finally, the 'a[href^="vocabulary:"]' that are used to trigger the
javascript are added to the page by the DescribeStep transformer. [4]
[1]
https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/java/org/dspace/app/xmlui/cocoon/JSONControlledVocabularyReader.java
[2]
https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/sitemap.xmap#L440
[3]
https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/static/js/vocabulary-support.js
[4]
https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/submission/submit/DescribeStep.java#L1159
Hopefully this will set you on the right track.
Antoine
Philippe Blouin schreef op 30/09/14 16:20:
Thanks Antoine,
The current structure does not support our "complex" thesaurus with
its multiple associations. Thus the need to reinvent the wheel.
Our popup will have a search box with multiple links.
So my question is more of the "where in the code" type. What is the
most simple way to plug that in the middle of the XML/Java process?
Just a "you could look into xyz.java" would be a great help.
Thanks
Philippe
On 09/30/2014 10:01 AM, Antoine Snyers wrote:
Hi Philippe Blouin
Here is documentation on the controlled vocabularies in the
submission. [1]
If the xml thesaurus can be converted to the taxonomies format,
then all you need to do is described under the " Configuring
Controlled Vocabularies" subtitle.
Depending on the size of your thesaurus, the submission page could
take some time to load.
This should only be the case the first time after the server has been
started though.
[1]
https://wiki.duraspace.org/display/DSDOC3x/Submission+User+Interface#SubmissionUserInterface-ConfiguringControlledVocabularies
Antoine
Philippe Blouin schreef op 29/09/14 22:55:
Hi!
I got a request to plug a Thesaurus in the keyword mechanism of the
submission process for XMLUI.
Last year I did some custom work to bind dspace-xmlui with our app,
but that was pretty basic.
My question: where (in the code) would you suggest me to "hook" my
code? Since the process is all "meta" through an xml, I'm really
lost as to how to add a button in the middle of it.
Requirement: add button beside keyword edit box to pop up a dialog,
*much like the subject categories*, but with a xml thesaurus
powering the UI instead.
I'm all for simple & dirty at this point, btw. If this has
community value, I can make it cute.
Thanks,
Philippe
------------------------------------------------------------------------------
Slashdot TV. Videos for Nerds. Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel
--
Philippe Blouin,
Responsable du développement informatique
Tél. : (888) 604-2627
philippe.blo...@inlibro.com <mailto:philippe.blo...@inlibro.com>
inLibro | pour esprit libre | www.inLibro.com <http://www.inLibro.com>
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel