Versions Compared

Key

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

...

Now that every script file and script file caller is located we'll start to code.

First steps

In this examples we'll overwrite existing source code files, if you fell comfortable working with JSPUI overlays can translate this modifications to "dspace/modules/jspui" folder.

Copying jQuery files to JSPUI webapp folder

...

Modifying dspace-tags.tld and LayoutTag.java

 Now we We must define inside dspace tag library descriptor a pair of variables that will be passed to used in LayoutTag class file: scriptaculous and jquery.

No Format

 [dspace-source]/dspace-jspui/dspace-jspui-webapp/src/main/webapp/WEB-INF/dspace-tags.tld
Code Block
languagehtml/xml
titledspace-tags.tld
collapsetrue
<tag>
    <name>layout</name>
    <tagclass>org.dspace.app.webui.jsptag.LayoutTag</tagclass>
    <info>Lays out an HTML page</info>
...
    <attribute>
      <name>scriptaculous</name>
      <required>false</required>
      <rtexprvalue>true</rtexprvalue>
    </attribute>
     <attribute>
      <name>jquery</name>
      <required>false</required>
      <rtexprvalue>true</rtexprvalue>
    </attribute>
...
  </tag>
No Format

[dspace-source]/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/LayoutTag.java