Commit cb89c19926c9539bcf9fea781d646d476d8051f3

Authored by Fernando Ribeiro
1 parent 1fedeeeedc
Exists in DSpace52++

Removed xmlui entries

Showing 929 changed files with 0 additions and 159711 deletions   Show diff stats

Too many changes.

To preserve performance only 100 of 929 files displayed.

.travis.yml
... ... @@ -1,46 +0,0 @@
1   -language: java
2   -sudo: false
3   -
4   -env:
5   - # Give Maven 1GB of memory to work with
6   - - MAVEN_OPTS=-Xmx1024M
7   -
8   -# Install prerequisites for building Mirage2 more rapidly
9   -before_install:
10   - # Install latest Node.js 0.10.x & print version info
11   - - nvm install 0.10
12   - - node --version
13   - # Install Bower
14   - - npm install -g bower
15   - # Install Grunt & print version info
16   - - npm install -g grunt && npm install -g grunt-cli
17   - - grunt --version
18   - # Print ruby version info (should be installed)
19   - - ruby -v
20   - # Install Sass & print version info
21   - - gem install sass
22   - - sass -v
23   - # Install Compass & print version info
24   - - gem install compass
25   - - compass version
26   -
27   -# Skip install stage, as we'll do it below
28   -install: "echo 'Skipping install stage, dependencies will be downloaded during build and test stages.'"
29   -
30   -# Two stage Build and Test
31   -# 1. Install & Unit Test APIs
32   -# 2. Assemble DSpace
33   -script:
34   - # 1. [Install & Unit Test] Check source code licenses and run source code Unit Tests
35   - # (This explicitly skips building the 'dspace' assembly module, since we only want to do that ONCE.)
36   - # license:check => Validate all source code license headers
37   - # -Dmaven.test.skip=false => Enable DSpace Unit Tests
38   - # -P !dspace => SKIP full DSpace assembly (will do below)
39   - # -B => Maven batch/non-interactive mode (recommended for CI)
40   - # -V => Display Maven version info before build
41   - - "mvn clean install license:check -Dmaven.test.skip=false -P !dspace -B -V"
42   - # 2. [Assemble DSpace] Ensure assembly process works (from [src]/dspace/), including Mirage 2
43   - # -Dmirage2.on=true => Build Mirage2
44   - # -Dmirage2.deps.included=false => Don't include Mirage2 build dependencies (We installed them in before_install)
45   - # -P !assembly => SKIP the actual building of [src]/dspace/dspace-installer (as it can be memory intensive)
46   - - "cd dspace && mvn package -Dmirage2.on=true -Dmirage2.deps.included=false -P !assembly -B -V"
dspace-xmlui-mirage2/documentation/sysvars1.png

22 KB

dspace-xmlui-mirage2/documentation/sysvars2.png

48.9 KB

dspace-xmlui-mirage2/pom.xml
... ... @@ -1,71 +0,0 @@
1   -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2   - <modelVersion>4.0.0</modelVersion>
3   - <groupId>org.dspace</groupId>
4   - <artifactId>dspace-xmlui-mirage2</artifactId>
5   - <packaging>war</packaging>
6   - <name>DSpace XML-UI Mirage2 Theme</name>
7   - <description>
8   - DSpace Mirage2 Theme for the XMLUI (Cocoon based interface).
9   - </description>
10   -
11   - <parent>
12   - <groupId>org.dspace</groupId>
13   - <artifactId>dspace-parent</artifactId>
14   - <version>5.4</version>
15   - <relativePath>..</relativePath>
16   - </parent>
17   -
18   - <properties>
19   - <!-- This is the path to the root [dspace-src] directory. -->
20   - <root.basedir>${basedir}/..</root.basedir>
21   - </properties>
22   -
23   - <build>
24   - <filters>
25   - <!-- Filter using the properties file defined by dspace-parent POM -->
26   - <filter>${filters.file}</filter>
27   - </filters>
28   - <plugins>
29   - <plugin>
30   - <groupId>org.apache.maven.plugins</groupId>
31   - <artifactId>maven-war-plugin</artifactId>
32   - <configuration>
33   - <archiveClasses>false</archiveClasses>
34   - <warSourceExcludes>themes/**</warSourceExcludes>
35   - <webResources>
36   - <resource>
37   - <filtering>false</filtering>
38   - <directory>${basedir}/src/main/webapp</directory>
39   - </resource>
40   - </webResources>
41   - </configuration>
42   - <executions>
43   - <execution>
44   - <phase>prepare-package</phase>
45   - </execution>
46   - </executions>
47   - </plugin>
48   - <plugin>
49   - <groupId>com.mycila</groupId>
50   - <artifactId>license-maven-plugin</artifactId>
51   - <configuration>
52   - <!-- Exclude license check for essential config files, these files cannot have a license comment or Mirage 2 will not compile -->
53   - <excludes>
54   - <exclude>**/*.json</exclude>
55   - <exclude>**/*.LICENSE</exclude>
56   - <exclude>**/*.svg</exclude>
57   - <exclude>**/readme.txt</exclude>
58   - <exclude>**/.bowerrc</exclude>
59   - <exclude>**/dataTables.jqueryui.js</exclude>
60   - </excludes>
61   - <mapping>
62   - <!-- File extensions which are not recognized by license-maven-plugin:
63   - *.hbs, *.scss -->
64   - <hbs>XML_STYLE</hbs>
65   - <scss>JAVADOC_STYLE</scss>
66   - </mapping>
67   - </configuration>
68   - </plugin>
69   - </plugins>
70   - </build>
71   -</project>
dspace-xmlui-mirage2/readme.md
... ... @@ -1,279 +0,0 @@
1   -# Introduction #
2   -
3   -Mirage 2 is a responsive XMLUI theme for DSpace 4. It is based on the responsive theme for the [Open Knowledge Repository](https://openknowledge.worldbank.org/) by The World Bank.
4   -
5   -Like the original Mirage theme, we started from [HTML5 boilerplate](http://h5bp.com) for the basic structure of each page and best practices with regards to cross browser compatibility, accessibility and performance.
6   -
7   -We used [Bootstrap 3](http://getbootstrap.com/) to have a sturdy responsive grid to base everything on. We chose the SASS version ([bootstrap-sass](https://github.com/twbs/bootstrap-sass)) because that allows us to use it in conjunction with the [Compass](http://compass-style.org/) framework, which provides a great library of SASS classes and mixins. Compass also comes with a custom version of the [SASS preprocessor](http://sass-lang.com/) we can use to concatenate and minify all stylesheets. We also included the [Handlebars](http://handlebarsjs.com/) templating framework to create more robust Javascript views.
8   -
9   -All these extra dependencies made us reconsider the way front-end dependencies were managed in Mirage 2. A common problem with themes based on the first Mirage was that its dependencies (jQuery, Modernizr, …) were outdated. The versions that came with the theme kept on being used because no-one remembered to update them when creating a new Mirage based theme. So we decided to no longer include 3rd party dependencies with the theme and instead go for a combination of [Bower](http://bower.io/) and [Grunt](http://gruntjs.com/) to fetch and combine dependencies at build time.
10   -
11   -These new technologies are put in place to make it easier for the theme developer to produce great themes, but they come with a few new dependencies: node js and ruby. In order to make it easier to get started customizing Mirage2 we added a way to install them automatically durng a maven build.
12   -
13   -# Installation #
14   -
15   -Mirage 2 has been integrated into the standard maven build as an optional feature. It has to be explicitly enabled by setting the `mirage2.on` to `true`.
16   -
17   -```bash
18   - mvn package -Dmirage2.on=true
19   -```
20   -
21   -All extra tools in the Mirage 2 build process run on either Node.js or Ruby, so you'll need both to be able to build the theme. By default, the maven build will assume you don't have either installed and install them in a temporary sandbox every time you build the project. That's convenient, but also quite a bit slower than installing them natively. So we recommend you only use that feature to try out the theme. Afterwards, install the prerequisites and build DSpace with the `mirage2.deps.included` property set to `false`:
22   -
23   -```bash
24   - mvn package -Dmirage2.on=true -Dmirage2.deps.included=false
25   -```
26   -
27   -## Prerequisites for OSX / Linux ##
28   -
29   -### Node ###
30   -
31   -We recommend using [nvm](https://github.com/creationix/nvm) (Node Version Manager) to install [Node.js](http://nodejs.org/), because it makes it easy to install, use and upgrade node without super user rights.
32   -
33   -First download and install nvm:
34   -
35   -```bash
36   - curl https://raw.githubusercontent.com/creationix/nvm/v0.5.1/install.sh | sh
37   -```
38   -
39   -Then, close and reopen your terminal, and install a node version. We’ve been using v0.10.31 during the development of the theme, but it may very well work on other versions
40   -
41   -```bash
42   - nvm install 0.10.31
43   -```
44   -
45   -Set the node version you installed as the default version.
46   -
47   -```bash
48   - nvm alias default 0.10.31
49   -```
50   -
51   -
52   -### Bower ###
53   -
54   -You can install [Bower](http://bower.io/) using the node package manager. The `-g` means install it globally, not as part of a specific project.
55   -
56   -```bash
57   - npm install -g bower
58   -```
59   -Afterwards the command `bower` should show a help message.
60   -
61   -### Grunt ###
62   -
63   -[Grunt](http://gruntjs.com/) should also be installed globally using the node package manager:
64   -
65   -```bash
66   - npm install -g grunt && npm install -g grunt-cli
67   -```
68   -
69   -Afterwards the command `grunt --version` should show the grunt-cli version number
70   -
71   -### Ruby ###
72   -
73   -For the same reasons as with Node, we’d advise using ruby via [RVM](http://rvm.io/) (Ruby Version Manager). Even on OSX, which comes with a version of ruby preinstalled, you can save yourself a lot of hassle by using RVM instead. (In most cases there is no need to uninstall the system ruby first). Note that **you need sudo rights to perform the RVM installation**. You won't need sudo again to use RVM, ruby or gem later on
74   -
75   -
76   -#### OSX Ruby Note ####
77   -On OSX, you need to have the XCode command line tools installed. To test if they're installed try to type `make` in your terminal, if it says "command not found" follow [these instructions](http://www.computersnyou.com/2025/2013/06/install-command-line-tools-in-osx-10-9-mavericks-how-to/) to install them
78   -(If this should fail, then you can find and download the Xcode command line tools directly from [Apple Developer site](https://developer.apple.com/downloads/index.action) - You will need an Apple id for this)
79   -
80   -Install RVM and ruby:
81   -
82   -```bash
83   - curl -sSL https://get.rvm.io | bash -s stable --ruby
84   -```
85   -
86   -### Compass ###
87   -
88   -> *WARNING:* **Make sure you are using compatible versions of SASS and Compass.** For example, [Compass v0.12.0 was incompatible with SASS v3.3](https://github.com/Compass/compass/issues/1544). But, Compass v1.0.0 is compatible with SASS v3.3
89   -
90   -> *WARNING:* At this time, we do NOT recommend using SASS v3.4.x. The Mirage2 theme is based on [bootstrap-sass](https://github.com/twbs/bootstrap-sass), which currently has a [minor Internet Explorer breadcrumb display bug when using SASS v3.4](https://github.com/twbs/bootstrap-sass/issues/803)
91   -
92   -[Compass](http://compass-style.org/) is built on the [SASS CSS preprocessor](http://sass-lang.com/). At the time of writing, we recommend using SASS v3.3.14 with Compass v1.0.1 (see warnings above):
93   -
94   -```bash
95   - gem install sass -v 3.3.14
96   -```
97   -
98   -Then you can install compass:
99   -
100   -```bash
101   - gem install compass -v 1.0.1
102   -```
103   -
104   -Afterwards the command `compass` should show a help message.
105   -
106   -## Prerequisites for Windows ##
107   -
108   -### Node on Windows ###
109   -
110   -Download and install [Node.js](http://nodejs.org/) using the Windows installer version.
111   -
112   -### Bower on Windows ###
113   -
114   -You can install [Bower](http://bower.io/) using the node package manager. The `-g` means install it globally, not as part of a specific project.
115   -
116   -Execute following command in Windows command prompt:
117   -(Open a Windows command prompt by pressing cmd-R, then type 'cmd' and enter.)
118   -
119   -```bash
120   - npm install -g bower
121   -```
122   -Afterwards the command `bower` should show a help message.
123   -
124   -### Grunt on Windows ###
125   -
126   -[Grunt](http://gruntjs.com/) should also be installed globally using the node package manager:
127   -
128   -Perform the following in a Windows command prompt:
129   -
130   -```bash
131   - npm install -g grunt && npm install -g grunt-cli
132   -```
133   -
134   -Afterwards the command `grunt --version` should show the grunt-cli version number
135   -
136   -### Ruby on Windows ###
137   -
138   -Download and install: [Ruby Installer](http://rubyinstaller.org/)
139   -
140   -Make sure its environment variables are set in system variables
141   -
142   -Open computer properties:
143   -
144   -![Step 1](documentation/sysvars1.png)
145   -
146   -Open "advanced sytem settings". Open "Advanced" tab, and click "environment variables":
147   -
148   -![Step 2](documentation/sysvars2.png)
149   -
150   -Add new variables `GEM_HOME` and `GEM_PATH` pointing to your Ruby gems directory.
151   -
152   -### Compass on Windows ###
153   -
154   -> *WARNING:* **Make sure you are using compatible versions of SASS and Compass.** For example, [Compass v0.12.0 was incompatible with SASS v3.3](https://github.com/Compass/compass/issues/1544). But, Compass v1.0.0 is compatible with SASS v3.3
155   -
156   -> *WARNING:* At this time, we do NOT recommend using SASS v3.4.x. The Mirage2 theme is based on [bootstrap-sass](https://github.com/twbs/bootstrap-sass), which currently has a [minor Internet Explorer breadcrumb display bug when using SASS v3.4](https://github.com/twbs/bootstrap-sass/issues/803)
157   -
158   -[Compass](http://compass-style.org/) is built on the [SASS CSS preprocessor](http://sass-lang.com/). At the time of writing, we recommend using SASS v3.3.14 with Compass v1.0.1 (see warnings above):
159   -
160   -Perform the following in a Windows command prompt:
161   -
162   -```bash
163   - gem install sass -v 3.3.14
164   -```
165   -
166   -Then you can install compass:
167   -
168   -```bash
169   - gem install compass -v 1.0.1
170   -```
171   -
172   -Afterwards the command `compass` should show a help message.
173   -
174   -# Enabling the theme #
175   -
176   -Add the following to the `<themes>` section of `src/dspace/config/xmlui.xconf`, replacing the currently active theme.
177   -
178   -```xml
179   - <theme name="Mirage 2" regex=".*" path="Mirage2/" />
180   -```
181   -
182   -Now, if you run `mvn package -Dmirage2.on=true` in the dspace project root, bower will download all Mirage 2 dependencies, and Grunt will trigger a number of plugins to preprocess, concatenate and minify all the theme's resources.
183   -
184   -
185   -# Customizing the theme #
186   -
187   -To create your own, customized version of Mirage 2, you can't do so in `src/dspace/modules/xmlui/src/main/webapp/themes`. Because of its build process, Mirage 2 works a little different. There is a separate module called `xmlui-mirage2` in `src/dspace/modules/`. Any theme you put in that module will be considered a Mirage 2 based theme, and its theme folder only needs to contain the files that differ from the vanilla Mirage 2.
188   -
189   -To get you started the module already contains a Mirage 2 folder containing nothing but the `_styles.scss` file. You can copy other files you want to modify to that folder as you go.
190   -
191   -# Production and development builds #
192   -
193   -You can use Maven profiles to have Grunt build the theme in production or development mode.
194   -
195   -In production mode, Grunt will concatenate and minify all javascript files referenced in the `Mirage2/scripts.xml` file (for more details see the javascript section of this document) in to a single `theme.js` file, to improve the performance of the theme. In development mode all javascript files will be separate and untouched, to make debugging easier.
196   -
197   -Similarly for CSS, Compass will compile the CSS either using `Mirage2/config-dev.rb` or `Mirage2/config-prod.rb`. Both will yield a single css file: `main.css`, but the dev version won't be minified and will contain the scss file name and line number as a comment above each CSS rule.
198   -
199   -By default, Grunt will build the javascript and CSS in production mode. Use the `mirage2_dev` maven profile, or run Grunt with the `dev` task to build the theme in development mode.
200   -
201   -### Note: ###
202   -
203   -The dspace.cfg property `xmlui.minifiedjs` used in the alpha version of the theme to switch between development and production modes has been deprecated. Because we've moved the javascript declarations to a separate file: `scripts.xml` we no longer need to know which mode you're using in the theme XSLs at runtime but instead can let Grunt handle it at build time.
204   -
205   -# DRI Pre-Processing #
206   -
207   -One of the goals for this theme was that changes outside the theme’s directory should be kept to an absolute minimum, so other themes won’t be affected by changes made for Mirage 2. But to make a responsive theme we needed to do some major restructuring of DSpace’s UI elements. The traditional way of doing so in XMLUI is adding slightly tweaked copies of default templates to the theme XSL.
208   -
209   -For example, if you want to add an extra class to div, you’d copy the default div template, change the copy's matcher to match the div you want to target, and then add your class to that template. That adds about 10 lines of XSL, only to add a simple CSS class. It makes the theme XSL files much harder to read and to modify; because if you wanted to change the default div template afterwards, you'd also have to change every template that overrides it.
210   -
211   -So we added an additional XSL transformation step in the theme’s sitemap: `preprocess.xsl`. This transformation is added right after the DRI generator, and it transforms DRI to DRI. By default it will simply copy the input to the output, and if you want to do something that is perfectly possible in DRI, like adding an extra CSS class to a div, you can now add your exception to the preprocess XSL, and simply let the default div template of the theme XSL render it afterwards.
212   -
213   -### Tip: ###
214   -
215   -When working with a DRI that has been changed by the preprocess XSLs, it is often useful to see the differences between the original DRI and the version after preprocessing. To see the original DRI you can add `DRI/` after the contextpath in a page’s URL, to see the preprocessed DRI add `?XML` after the page’s URL
216   -
217   -# Style #
218   -
219   -Mirage 2 contains two color schemes to choose from. The classic Mirage color scheme or the standard Bootstrap color scheme. By default, Grunt will build CSS to get the classic Mirage color scheme. However, by activating the `mirage2_bootstrap_color_scheme` maven profile, this can be changed to get the standard Bootstrap color scheme.
220   -
221   -The stylesheets are written in [SASS](http://sass-lang.com/). You can find them in the folder `Mirage2/styles`. Each color scheme has its own subfolder, and a `_main.scss` file that imports all others. These files will import the Compass library first. Next, all Bootstrap scss files and finally the DSpace specific files. Both color schemes also import the file `_style.scss`. It contains some example SCSS by default, and is meant to add your own style. Note that CSS is also valid SCSS, so if you don't want to learn SASS, just add plain old CSS to that file and it will work just fine.
222   -
223   -The goal of the standard Bootstrap color scheme was to add as little extra style on top of Bootstrap as possible and instead force ourselves to solve most issues in XSL; by creating the right HTML structure and adding the right bootstrap CSS classes. But try as we might, a few additional style rules were still needed. Those can be found in `shared/_dspace-bootstrap-tweaks.scss`, most of it is limited to styles to improve the sidebar behavior on mobile devices.
224   -
225   -The classic Mirage color scheme contains more modifications and also overwrites a few bootstrap variables, in the file `classic_mirage_color_scheme/_bootstrap_variables.scss`. Variables are important because they allow you to change the look of the theme dramatically, simply by changing a few color codes or the font-family. Try to change the value of `$brand-primary` to see what we mean.
226   -
227   -Take a look at [bootstrap's own variables file](https://github.com/twbs/bootstrap-sass/blob/master/assets/stylesheets/bootstrap/_variables.scss) to see which others you can overwrite.
228   -
229   -If you want to base your theme on an existing Bootstrap theme (like the ones at [bootswatch.com](http://bootswatch.com)) you can do so by using the standard Bootstrap color scheme and replacing the import of Bootstrap in `bootstrap_color_scheme/_main.scss`:
230   -
231   -```less
232   - @import "../vendor/bootstrap-sass-official/vendor/assets/stylesheets/bootstrap";
233   -```
234   -
235   -with an import of just its `_variables.sccs` file (those variables need to be defined, because they are used in `_dspace-bootstrap-tweaks.scss`):
236   -
237   -```less
238   - @import "../vendor/bootstrap-sass-official/vendor/assets/stylesheets/bootstrap/_variables";
239   -```
240   -
241   -Then import the the css file(s) of your Bootstrap theme of choice below it. Depending on the theme you may also need to update the `twbs-font-path` function right above that import statement.
242   -
243   -### Tip: ###
244   -During development it is a hassle to always have to run `mvn package` to re-compile the style and see the result of a CSS change. Luckily Compass comes with a `watch` feature that automatically recompiles when the scss files change. If your editor can update the running webapp when you save an scss file, and you run `compass watch` in that webapp's `xmlui/themes/Mirage2` folder, changes to the style will show up nearly instantaneous.
245   -
246   -
247   -# Scripts #
248   -
249   -Any javascript file that you reference in the file `Mirage2/scripts.xml` will be included in the production `theme.js` file and will be loaded separately and unmodified in development mode.
250   -
251   -The advantage of having all the site’s javascript in a minified single file is that users will only have to make a single request to get all the scripts, so subsequent pages on your repository will load faster. The tradeoff is that all scripts are loaded on every page. That means you’ll have to be extra careful that any script you write only targets the DOM elements you intend to target, and nothing else (meaning, target DOM elements using their IDs and/or very specific class names).
252   -
253   -To keep global javascript variables to a minimum, we’ve created a namespace object called `DSpace` to contain all other global variables. For example `DSpace.context_path` and `DSpace.theme_path` contain the context and theme paths, `DSpace.templates` contains compiled handlebars templates, and `DSpace.i18n` contains i18n strings used by those templates (take a look at the object in your browser’s dev-tools on a discovery page to see that in action). We advise you to put your own global javascript objects in the `DSpace` namespace as well.
254   -
255   -If you create your own handlebars templates, put them in `Mirage2/templates`. They will be precompiled and added to `theme.js` by Grunt. To access a template in your javascript code, use the function `DSpace.getTemplate(file-name)` (where `file-name` is the name of your handlebars file, without the extension). That function will return a precompiled version of the template if it exists, and download and compile it if it doesn't. That ensures your templates work both when you’re in development mode or using the production `theme.js` file.
256   -
257   -The theme also comes with built in support for [CoffeeScript](http://coffeescript.org/). If you put `.coffee` files in the `Mirage2/scripts` folder, they will be converted to javascript. Make sure to add the correct reference to `Mirage2/scripts.xml` i.e. with an `.js` extension instead of `.coffee`.
258   -
259   -# Managing dependencies #
260   -
261   -Mirage 2's dependencies are specified in the file `Mirage2/bower.json`. Dependencies in this file should be specified according to the rules in the [Bower documentation](http://bower.io/|). Note that Bower only downloads the dependencies, nothing more. So if you add other dependencies, you'll still have to reference them. That means if it’s a CSS file, import it in `Mirage2/styles/_style.scss`, if it's a javascript file, add it to `Mirage2/scripts.xml`.
262   -
263   -We've used the the `latest` keyword to specify dependency versions in `bower.json` wherever possible because that ensures you're starting with up to date versions when creating a new theme. However once your theme is going in to production, we strongly recommend replacing `latest` with the actual version numbers being used at that moment. That way your production build won't break when a version of a dependency is released that isn't backwards compatible.
264   -
265   -# Multiple themes #
266   -
267   -Any folder you create in `src/dspace/modules/xmlui-mirage2/src/main/webapp/themes` will be interpreted as a Mirage2 based theme. This means that if I create two folders called 'Red' and 'Green' in that directory, and create the file `styles/_style.scss` in both folders with the contents
268   -```css
269   -body {
270   - background-color: red;
271   -}
272   -```
273   -and
274   -```css
275   -body {
276   - background-color: green;
277   -}
278   -```
279   -respectively and run `mvn package -Dmirage2.on=true`, two themes will be created called 'Red' and 'Green', with the only difference being the background color of `<body>`
dspace-xmlui-mirage2/src/main/webapp/.bowerrc
... ... @@ -1,3 +0,0 @@
1   -{
2   - "directory": "vendor"
3   -}
dspace-xmlui-mirage2/src/main/webapp/.gitignore
... ... @@ -1,4 +0,0 @@
1   -*.css
2   -#*.js
3   -.sass-cache/
4   -/vendor
dspace-xmlui-mirage2/src/main/webapp/Gruntfile.js
... ... @@ -1,121 +0,0 @@
1   -/*
2   - * The contents of this file are subject to the license and copyright
3   - * detailed in the LICENSE and NOTICE files at the root of the source
4   - * tree and available online at
5   - *
6   - * http://www.dspace.org/license/
7   - */
8   -// Generated on 2013-11-09 using generator-webapp 0.4.3
9   -'use strict';
10   -
11   -module.exports = function (grunt) {
12   - // show elapsed time at the end
13   - require('time-grunt')(grunt);
14   - // load all grunt tasks
15   - require('load-grunt-tasks')(grunt);
16   -
17   - grunt.initConfig({
18   - copy: {
19   - classic_mirage_color_scheme: {
20   - files: [
21   - {
22   - src: ['styles/classic_mirage_color_scheme/_main.scss'],
23   - dest: 'styles/main.scss'
24   - }
25   - ]
26   - },
27   - bootstrap_color_scheme: {
28   - files: [
29   - {
30   - src: ['styles/bootstrap_color_scheme/_main.scss'],
31   - dest: 'styles/main.scss'
32   - }
33   - ]
34   - },
35   - scriptsxml: {
36   - files: [
37   - {
38   - src: ['scripts.xml'],
39   - dest: 'scripts-dist.xml'
40   - }
41   - ]
42   - }
43   - },
44   - compass: {
45   - prod: {
46   - options: {
47   - config: 'config-prod.rb'
48   - }
49   -
50   - },
51   - dev: {
52   - options: {
53   - config: 'config-dev.rb'
54   - }
55   -
56   - }
57   - },
58   - coffee: {
59   - glob_to_multiple: {
60   - expand: true,
61   - flatten: true,
62   - cwd: 'scripts',
63   - src: ['*.coffee'],
64   - dest: 'scripts',
65   - ext: '.js'
66   - }
67   - },
68   - handlebars: {
69   - compile: {
70   - options: {
71   - namespace: "DSpace.templates",
72   - processName: function(filePath) {
73   - return filePath.replace(/^templates\//, '').replace(/\.handlebars$/, '').replace(/\.hbs$/, '');
74   - }
75   - },
76   - files: {
77   - "scripts/templates.js": ["templates/*.handlebars", "templates/*.hbs"]
78   - }
79   - }
80   - },
81   - useminPrepare:{
82   - src: ['scripts-dist.xml'],
83   - options: {
84   - // fool usemin in to putting theme.js straight into the scripts
85   - // folder, and not in a separate dist folder. And no, you can't
86   - // just use an empty string, I tried ;)
87   - dest: 'dist/../'
88   - }
89   - } ,
90   - usemin: {
91   - html:'scripts-dist.xml'
92   - }
93   - });
94   -
95   -
96   - grunt.registerTask('classic_mirage_color_scheme', [
97   - 'copy:classic_mirage_color_scheme'
98   - ]);
99   - grunt.registerTask('bootstrap_color_scheme', [
100   - 'copy:bootstrap_color_scheme'
101   - ]);
102   - grunt.registerTask('shared-steps', [
103   - 'copy:scriptsxml', 'coffee', 'handlebars', 'useminPrepare','concat'
104   - ]);
105   - grunt.registerTask('no-compass-prod', [
106   - 'shared-steps','uglify','usemin'
107   - ]);
108   - grunt.registerTask('no-compass-dev', [
109   - 'shared-steps','uglify:generated'
110   - ]);
111   - grunt.registerTask('prod', [
112   - 'compass:prod', 'no-compass-prod'
113   - ]);
114   - grunt.registerTask('dev', [
115   - 'compass:dev', 'no-compass-dev'
116   - ]);
117   - grunt.registerTask('default', [
118   - 'classic_mirage_color_scheme',
119   - 'prod'
120   - ]);
121   -};
dspace-xmlui-mirage2/src/main/webapp/bower.json
... ... @@ -1,17 +0,0 @@
1   -{
2   - "name": "Mirage2",
3   - "version": "0.1.1",
4   - "dependencies": {
5   - "bootstrap-sass-official": "3.3.0",
6   - "modernizr": "2.8.3",
7   - "jquery": "~1.10.2",
8   - "jquery-ui": "1.10.3",
9   - "jqueryuibootstrap": "4f3772cd37b898f456c0126c4b44178ce8d4aad7",
10   - "handlebars": "2.0.0",
11   - "respond": "1.4.2",
12   - "html5shiv": "3.7.2",
13   - "holderjs": "2.4.1",
14   - "datatables": "1.10.3"
15   - },
16   - "devDependencies": {}
17   -}
dspace-xmlui-mirage2/src/main/webapp/config-dev.rb
... ... @@ -1,24 +0,0 @@
1   -#
2   -# The contents of this file are subject to the license and copyright
3   -# detailed in the LICENSE and NOTICE files at the root of the source
4   -# tree and available online at
5   -#
6   -# http://www.dspace.org/license/
7   -#
8   -
9   -encoding = "UTF-8"
10   -http_path = "/themes/bootstrap/"
11   -css_path = "styles"
12   -sass_path = "styles"
13   -images_dir = "images"
14   -generated_images_dir = "dist/images/generated"
15   -javascripts_dir = "scripts"
16   -fonts_dir = "styles/fonts"
17   -http_images_path = "/images"
18   -http_generated_images_path = "/images/generated"
19   -http_fonts_path = "/styles/fonts"
20   -relative_assets = false
21   -asset_cache_buster = :none
22   -output_style = :expanded
23   -line_comments = true
24   -Sass::Script::Number.precision = [10, ::Sass::Script::Number.precision].max
25 0 \ No newline at end of file
dspace-xmlui-mirage2/src/main/webapp/config-prod.rb
... ... @@ -1,24 +0,0 @@
1   -#
2   -# The contents of this file are subject to the license and copyright
3   -# detailed in the LICENSE and NOTICE files at the root of the source
4   -# tree and available online at
5   -#
6   -# http://www.dspace.org/license/
7   -#
8   -
9   -encoding = "UTF-8"
10   -http_path = "/themes/bootstrap/"
11   -css_path = "styles"
12   -sass_path = "styles"
13   -images_dir = "images"
14   -generated_images_dir = "dist/images/generated"
15   -javascripts_dir = "scripts"
16   -fonts_dir = "styles/fonts"
17   -http_images_path = "/images"
18   -http_generated_images_path = "/images/generated"
19   -http_fonts_path = "/styles/fonts"
20   -relative_assets = false
21   -asset_cache_buster = :none
22   -output_style = :compressed
23   -line_comments = false
24   -Sass::Script::Number.precision = [10, ::Sass::Script::Number.precision].max
25 0 \ No newline at end of file
dspace-xmlui-mirage2/src/main/webapp/config.rb
... ... @@ -1,36 +0,0 @@
1   -#
2   -# The contents of this file are subject to the license and copyright
3   -# detailed in the LICENSE and NOTICE files at the root of the source
4   -# tree and available online at
5   -#
6   -# http://www.dspace.org/license/
7   -#
8   -
9   -# Require any additional compass plugins here.
10   -
11   -encoding = "UTF-8"
12   -# Set this to the root of your project when deployed:
13   -http_path = "/themes/bootstrap/"
14   -css_dir = "styles"
15   -sass_dir = "styles"
16   -images_dir = "images"
17   -javascripts_dir = "scripts"
18   -
19   -# You can select your preferred output style here (can be overridden via the command line):
20   -# output_style = :expanded or :nested or :compact or :compressed
21   -output_style = :expanded
22   -
23   -# To enable relative paths to assets via compass helper functions. Uncomment:
24   -# relative_assets = true
25   -
26   -# To disable debugging comments that display the original location of your selectors. Uncomment:
27   -line_comments = true
28   -
29   -
30   -# If you prefer the indented syntax, you might want to regenerate this
31   -# project again passing --syntax sass, or you can uncomment this:
32   -# preferred_syntax = :sass
33   -# and then run:
34   -# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
35   -
36   -Sass::Script::Number.precision = [10, ::Sass::Script::Number.precision].max
37 0 \ No newline at end of file
dspace-xmlui-mirage2/src/main/webapp/images/@mirelogo-small.png

5.09 KB

dspace-xmlui-mirage2/src/main/webapp/images/DSpace-logo-line.svg
... ... @@ -1,47 +0,0 @@
1   -<?xml version="1.0" encoding="utf-8"?>
2   -<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3   -<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4   -<svg version="1.1"
5   - id="svg3053" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" sodipodi:docname="DSpace-logo-line.svg" inkscape:version="0.48.2 r9819"
6   - xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="102px" height="23px"
7   - viewBox="69.35 14.7 102 23" enable-background="new 69.35 14.7 102 23" xml:space="preserve">
8   -<sodipodi:namedview inkscape:cy="31.629348" inkscape:cx="101.91044" inkscape:zoom="6.2769679" showgrid="false" guidetolerance="10" gridtolerance="10" objecttolerance="10" bordercolor="#666666" pagecolor="#ffffff" borderopacity="1" id="namedview3077" inkscape:current-layer="svg3053" inkscape:window-maximized="0" inkscape:window-y="295" inkscape:window-x="2128" inkscape:window-height="1049" inkscape:window-width="2348" inkscape:pageshadow="2" inkscape:pageopacity="0">
9   - </sodipodi:namedview>
10   -<g id="g3057">
11   - <title id="title3059">Layer 1</title>
12   - <g id="svg_1">
13   - <rect id="svg_2" x="77.583" y="22.613" fill="#C0D028" width="6.245" height="6.245"/>
14   - <g id="svg_3">
15   - <rect id="svg_4" x="86.656" y="24.09" fill="#FFFFFF" stroke="#808285" stroke-width="0.4225" width="3.502" height="3.502"/>
16   - <rect id="svg_5" x="78.469" y="15.355" fill="#FFFFFF" stroke="#808285" stroke-width="0.6761" width="4.515" height="4.515"/>
17   - <rect id="svg_6" x="69.777" y="22.95" fill="#FFFFFF" stroke="#808285" stroke-width="1.0563" width="5.569" height="5.571"/>
18   - <rect id="svg_7" x="70.832" y="30.842" fill="#FFFFFF" stroke="#808285" stroke-width="0.4225" width="3.46" height="3.46"/>
19   - <rect id="svg_8" x="77.878" y="31.39" fill="#FFFFFF" stroke="#808285" stroke-width="0.8451" width="5.654" height="5.654"/>
20   - <rect id="svg_9" x="86.022" y="30.546" fill="#FFFFFF" stroke="#808285" stroke-width="0.6338" width="4.768" height="4.769"/>
21   - </g>
22   - <g id="svg_10">
23   - <path id="svg_11" inkscape:connector-curvature="0" fill="#808285" d="M100.773,19.521h3.095c3.254,0,5.873,2.937,5.873,6.588
24   - c0,3.651-2.619,6.588-5.873,6.588c-0.318,0-3.095,0-3.095,0V19.521L100.773,19.521z M102.916,30.474h0.873
25   - c1.905,0,3.492-1.984,3.492-4.365c0-2.381-1.587-4.365-3.492-4.365c-0.317,0-0.873,0-0.873,0V30.474z"/>
26   - <path id="svg_12" inkscape:connector-curvature="0" fill="#C0D028" d="M116.885,32.855c-1.428,0-2.46-0.477-3.73-1.429
27   - l0.238-1.984c1.349,0.715,2.381,1.191,3.492,1.191c0.953,0,2.223-0.556,2.223-1.588c0-2.46-6.19-1.509-6.19-5.953
28   - c0-2.301,1.984-3.889,4.365-3.889c1.508,0,2.46,0.476,3.809,1.588l-0.714,1.746c-0.953-0.635-2.063-1.111-3.095-1.111
29   - c-1.35,0-2.143,0.714-2.143,1.508c0,2.381,6.19,1.747,6.19,5.794C121.489,31.507,119.267,32.855,116.885,32.855L116.885,32.855z"
30   - />
31   - <path id="svg_13" inkscape:connector-curvature="0" fill="#C0D028" d="M134.029,23.966c0,2.382-1.983,4.366-4.365,4.366
32   - c-0.159,0-2.619,0-2.619,0v4.365h-2.223V19.521h4.842C132.045,19.521,134.029,21.506,134.029,23.966L134.029,23.966z
33   - M131.806,23.966c0-1.19-0.951-2.222-2.222-2.222c-0.238,0-2.619,0-2.619,0v4.365h2.619
34   - C130.855,26.109,131.806,25.157,131.806,23.966z"/>
35   - <path id="svg_14" inkscape:connector-curvature="0" fill="#C0D028" d="M140.14,32.697h-2.223v-8.334c0-3.254,1.984-5,4.365-5
36   - c2.461,0,4.365,1.826,4.365,5v8.334h-2.222v-4.365h-4.365v4.365H140.14L140.14,32.697z M144.506,24.363
37   - c0-1.905-0.953-2.857-2.224-2.857c-1.189,0-2.222,0.953-2.222,2.857v1.746h4.365v-1.746H144.506L144.506,24.363z"/>
38   - <path id="svg_15" inkscape:connector-curvature="0" fill="#C0D028" d="M156.411,19.363c1.588,0,3.334,1.032,4.207,2.54
39   - l-1.35,1.19c-0.873-1.111-1.746-1.587-2.777-1.587c-1.746,0-3.254,1.746-3.254,4.604c0,2.856,1.508,4.604,3.254,4.604
40   - c0.952,0,1.904-0.477,2.777-1.588l1.35,1.191c-0.952,1.508-2.619,2.539-4.207,2.539c-3.333,0-5.555-3.016-5.555-6.746
41   - S153.078,19.363,156.411,19.363L156.411,19.363L156.411,19.363z"/>
42   - <path id="svg_16" inkscape:connector-curvature="0" fill="#C0D028" d="M164.189,19.521h6.588v2.223h-4.365v2.619h4.365v2.222
43   - h-4.365v3.968h4.365v2.223h-6.588V19.521L164.189,19.521z"/>
44   - </g>
45   - </g>
46   -</g>
47   -</svg>
dspace-xmlui-mirage2/src/main/webapp/images/DSpace-logo-only.svg
... ... @@ -1,44 +0,0 @@
1   -<?xml version="1.0" encoding="utf-8"?>
2   -<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3   -<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4   -<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="50px"
5   - height="49.8px" viewBox="0 0 50 49.8" style="enable-background:new 0 0 50 49.8;" xml:space="preserve">
6   -<style type="text/css">
7   -<![CDATA[
8   - .st0{fill:#FFFFFF;stroke:#808285;stroke-width:1.0563;}
9   - .st1{fill:#C0D028;}
10   - .st2{fill:url(#SVGID_1_);}
11   - .st3{fill:#FFFFFF;stroke:#808285;stroke-width:0.4225;}
12   - .st4{fill:#FFFFFF;stroke:#808285;stroke-width:0.6338;}
13   - .st5{fill:#FFFFFF;stroke:#808285;stroke-width:0.6761;}
14   - .st6{fill:#FFFFFF;stroke:#808285;stroke-width:0.8451;}
15   - .st7{display:none;}
16   -]]>
17   -</style>
18   -<g id="Layer_2">
19   - <g id="NPfmWn.tif" class="st7">
20   -
21   - <image style="display:inline;overflow:visible;" width="1030" height="1021" id="Layer_0_1_" xlink:href="BD73B7B71A09C4DB.png" transform="matrix(9.420461e-02 0 0 9.420461e-02 -23.5151 -23.4106)">
22   - </image>
23   - </g>
24   - <linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="0" y1="24.8892" x2="49.9995" y2="24.8892">
25   - <stop offset="0" style="stop-color:#FFFFFF"/>
26   - <stop offset="1" style="stop-color:#FFFFFF"/>
27   - </linearGradient>
28   - <path class="st2" d="M50,37.9c0,6.5-5.3,11.9-11.9,11.9H11.9C5.3,49.8,0,44.5,0,37.9V11.9C0,5.3,5.3,0,11.9,0h26.3
29   - C44.7,0,50,5.3,50,11.9V37.9z"/>
30   -</g>
31   -<g id="Layer_1">
32   - <g>
33   - <rect x="21.2" y="20.5" class="st1" width="7.6" height="7.6"/>
34   - <g>
35   - <rect x="32.3" y="22.3" class="st3" width="4.3" height="4.3"/>
36   - <rect x="22.2" y="11.7" class="st5" width="5.5" height="5.5"/>
37   - <rect x="11.6" y="20.9" class="st0" width="6.8" height="6.8"/>
38   - <rect x="12.9" y="30.5" class="st3" width="4.2" height="4.2"/>
39   - <rect x="21.6" y="31.2" class="st6" width="6.9" height="6.9"/>
40   - <rect x="31.5" y="30.2" class="st4" width="5.8" height="5.8"/>
41   - </g>
42   - </g>
43   -</g>
44   -</svg>
dspace-xmlui-mirage2/src/main/webapp/images/DSpace-logo.svg
... ... @@ -1,43 +0,0 @@
1   -<?xml version="1.0" encoding="utf-8"?>
2   -<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3   -<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4   -<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5   - width="158.7px" height="52.4px" viewBox="0 0 158.7 52.4" style="enable-background:new 0 0 158.7 52.4;" xml:space="preserve">
6   -<style type="text/css">
7   -<![CDATA[
8   - .st0{fill:#FFFFFF;stroke:#808285;stroke-width:1.0563;}
9   - .st1{fill:#808285;}
10   - .st2{fill:#C0D028;}
11