(Jump to other KnowledgeBases)
DSpace Resources
DSpace Website
DSpace Documentation
DSpace Wiki
DSpace Demo Site
Contribute to KnowledgBase
This is a litle manual to setup and enable JQuery javascript libraries against default scriptaculous ones.
DSpace JSPUI interface bundles scriptaculous javascript libraries in every page head section. We can check that looking at source code of DSpace home page, we'll see this few lines:
<script type="text/javascript" src="/jspui/static/js/scriptaculous/prototype.js"> </script> <script type="text/javascript" src="/jspui/static/js/scriptaculous/effects.js"> </script> <script type="text/javascript" src="/jspui/static/js/scriptaculous/builder.js"> </script> <script type="text/javascript" src="/jspui/static/js/scriptaculous/controls.js"> </script>
Doing a litle browsing we can check that this libraries (prototype) are used in a library function:
[dspace-source]/dspace-jspui/dspace-jspui-webapp/src/main/webapp/static/js/choice-support.js
This function is called on the following java server pages:
[dspace-source]/dspace-jspui/dspace-jspui-webapp/src/main/webapp/submit/edit-metadata.jsp
[dspace-source]/dspace-jspui/dspace-jspui-webapp/src/main/webapp//tools/edit-item-form.jsp
2. [dspace-source]/dspace-jspui/dspace-jspui-webapp/src/main/webapp/static/js/choice-support.js
DSpace already bundles a copy of jquery, in the following directory:
dspace-jspui-webapp/src/main/webapp/tools/edit-item-form.jsp