Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you want to try it, implement it!

800px-SelectEPerson1.png

Image Removed800px-SelectEPerson2.png

How it works

Via Javascript event handlers are attached to all input fields of the form. When something is changed in such an input field a AJAX http request is sent asynchronously to dspace. The EPersonListServlet handles this request and sends results back using JSON. Via javascript these results are displayed in HTML.

...

Step 1: Replace SelectEPersonTag.java

  • Download the file SelectEPersonTag.java|^SelectEPersonTag.java\
  • The file SelectEPersonTag.java in src/org/dspace/app/webui/jsptag must be replaced (make a backup copy!)
  • edit jsp/WEB-INF/dspace-tags.tld and add the following to the selecteperson tag:

...

Step 2: Edit EPersonListServlet.java

Merge EPersonListServlet.java|^EPersonListServlet.java\ with the current version of the file (make a backup copy!):

...

Step 3: Add eperson-list-json.jsp

Step 4: Add select_eperson.js and ajax.js

Step 5: Edit EPerson.java

  • download EPerson.java|^EPerson.java\
  • merge this with the current version of the file (make a backup copy!). The following function was added:

...

Step 7: edit jsp/tools/eperson-list.jsp

...