Versions Compared

Key

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

...

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

...

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>

 Now we must Then we must add the private variables and it's getter and setters:

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

 

Code Block
languagejava
collapsetrue
public class LayoutTag extends TagSupport
{
...
    /** scriptaculous flag */
    private String scriptaculous;

    /** jquery flag **/
    private String jquery;
...