SUNScholar/XMLUI Theme/M2

From Libopedia
Jump to navigation Jump to search
Back to XMLUI Theme

Ubuntu Software

Open a new terminal and type:

  1. sudo apt-get install curl
  2. sudo apt-get install ruby-compass
  3. sudo apt-get install maven
  4. sudo apt-get install default-jre default-jdk

Node and Ruby Software

  1. Install "node.js" software: https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
  2. Install node version manager (nvm): https://github.com/creationix/nvm
  3. Install ruby version manager (rvm): http://rvm.io

Bootstrap Software

Open a new terminal and type:

  1. nvm install 0.10.17
  2. nvm alias default 0.10.17
  3. npm install -g bower
  4. npm install -g grunt
  5. npm install -g grunt-cli

Build Theme

Type the following:

cd /home/dspace/source
mvn package -Dmirage2.on=true
  • Add the following to the <themes> section of src/dspace/config/xmlui.xconf, replacing the currently active theme.
   <theme name="Mirage 2" regex=".*" path="Mirage2/" />
  • Restart the Tomcat server
sudo service tomcat6 restart

Custom Theme

  • Copy the source theme to the custom "modules" folder.
cp -R /home/dspace/source/dspace-xmlui-mirage2/src/main/webapp /home/dspace/source/dspace/modules/xmlui-mirage2/src/main/webapp

Bootstrap Framework

References