diff --git a/dspace/docs/configure.html b/dspace/docs/configure.html index 19fe02a813..1e871bfc0b 100644 --- a/dspace/docs/configure.html +++ b/dspace/docs/configure.html @@ -1236,7 +1236,13 @@ The following vocabularies are currently available by default:
Thus, if possible, it is recommeded you limit your changes to the 'layout' JSPs and the stylesheet.
-The JSPs are stored in [dspace-source]/jsp
. Place your edited version of a JSP in the [dspace-source]/modules/dspace-jspui/src/main/webapp/
directory (this is the replacement for the pre-1.5 /jsp/local
directory), with the same path as the original. If they exist, these will be used in preference to the distributed versions in [dspace-source]/jsp
. For example:
The JSPs are available in one of two places: +
[dspace-source]/dspace-jspui/dspace-jspui-webapp/src/main/webapp/
- Only exists if you downloaded the full Source Release of DSpace[dspace-source]/dspace/target/dspace-[version].dir/webapps/dspace-jspui-webapp/
- The location where they are copied after first building DSpace.If you wish to modify a particular JSP, place your edited version in the [dspace-source]/dspace/modules/dspace-jspui/src/main/webapp/
directory (this is the replacement for the pre-1.5 /jsp/local
directory), with the same path as the original. If they exist, these will be used in preference to the default JSPs. For example:
[dspace-source]/jsp/community-list.jsp |
+ [jsp.dir]/community-list.jsp |
- [dspace-source]/modules/dspace-jspui/src/main/webapp/community-list.jsp |
+ [dspace-source]/dspace/modules/dspace-jspui/src/main/webapp/community-list.jsp |
[dspace-source]/jsp/mydspace/main.jsp |
+ [jsp.dir]/mydspace/main.jsp |
- [dspace-source]/modules/dspace-jspui/src/main/webapp/mydspace/main.jsp |
+ [dspace-source]/dspace/modules/dspace-jspui/src/main/webapp/mydspace/main.jsp |
Heavy use is made of a style sheet, in [dspace-source]/jsp/styles.css.jsp
. If you make edits, call the local version [dspace-source]/modules/dspace-jspui/src/main/webapp/styles.css.jsp
, and it will be used automatically in preference to the default, as described above.
Heavy use is made of a style sheet, styles.css.jsp
. If you make edits, copy the local version to [dspace-source]/dspace/modules/dspace-jspui/src/main/webapp/styles.css.jsp
, and it will be used automatically in preference to the default, as described above.
Fonts and colors can be easily changed using the stylesheet. The stylesheet is a JSP so that the user's browser version can be detected and the stylesheet tweaked accordingly.
-The 'layout' of each page, that is, the top and bottom banners and the navigation bar, are determined by the JSPs [dspace-source]/jsp/layout/header-*.jsp
and [dspace-source]/jsp/layout/footer-*.jsp
. You can provide modified versions of these (in [dspace-source]/jsp/local/layout
, or define more styles and apply them to pages by using the "style" attribute of the dspace:layout
tag.
The 'layout' of each page, that is, the top and bottom banners and the navigation bar, are determined by the JSPs /layout/header-*.jsp
and /layout/footer-*.jsp
. You can provide modified versions of these (in [dspace-source]/dspace/modules/dspace-jspui/src/main/webapp/layout
), or define more styles and apply them to pages by using the "style" attribute of the dspace:layout
tag.
After you've customized your JSPs, you must rebuild the DSpace Web application. If you haven't already built and installed it, follow the install directions. Otherwise, follow the steps below:
Rebuild the DSpace installation package by running the following command from your [dspace-source]
directory:
Rebuild the DSpace installation package by running the following command from your [dspace-source]/dspace/
directory:
mvn package
Re-install the DSpace WAR(s) to [dspace]/webapps
by running the following command from your [dspace-source]/target/dspace-[version].dir
directory:
Re-install the DSpace WAR(s) to [dspace]/webapps
by running the following command from your [dspace-source]/dspace/target/dspace-[version].dir
directory:
ant -Dconfig=[dspace]/config/dspace.cfg updatediff --git a/dspace/docs/directories.html b/dspace/docs/directories.html index e6b1d29240..e742c0f512 100644 --- a/dspace/docs/directories.html +++ b/dspace/docs/directories.html @@ -30,64 +30,69 @@
[dspace-source]
build.xml
- The Build file for Ant -- used to preform a fresh_install, upgrade, or deploy new changes.CHANGES
- Detailed list of code changes between versions.KNOWN_BUGS
- Known bugs in the current version.LICENSE
- DSpace source code license.README
- Obligatory basic information file.bin/
- Some shell and Perl scripts for running DSpace command-line tasks.config/
- Configuration files:
- controlled-vocabularies/
- Fixed, limited vocabularies used in metadata entrycrosswalks/
- Metadata crosswalks - property files or XSL stylesheetsdspace.cfg
- The Main DSpace configuration file (You will need to edit this).dc2mods.cfg
- Mappings from Dublin Core metadata to MODS for the METS export.default.license
- The default license that users must grant when submitting items.dstat.cfg
, dstat.map
- Configuration for statistical reports.input-forms.xml
- Submission UI metadata field configuration.news-side.html
- Text of the front-page news in the sidebar, only used in JSPUI.news-top.html
- Text of the front-page news in the top box, only used in teh JSPUI.emails/
- Text and layout templates for emails sent out by the system.language-packs/
- Contains "dictionary files" -- Java properties files that contain user interface text in different languagesregistries/
- Initial contents of the bitstream format registry and Dublin Core element/qualifier registry. These are only used on initial system setup, after which they are maintained in the database.templates/
- Configuration files for libraries and external applications (e.g. Apache, Tomcat) are kept and edited here. They can refer to properties in the main DSpace configuration - have a look at a couple. When they're updated, a command line tool fills out these files with appropriate values from dspace.cfg, and copies them to their appropriate location (hence "templates".)docs/
- DSpace system documentation. The technical documentation for functionality, installation, configuration, etc.etc/
- Miscelleanous configuration need to install DSpace that isn't really to do with system configuration - e.g. the PostgreSQL database schema, and a couple of configuration files that are used during the build process but not by the live system. Also contains the deployment descriptors (web.xml
files) for the Web UI and OAI-PMH support .war
files.
- oracle/
- Versions of the database schema and updater SQL scripts for Oracle.modules/
- The Web UI modules "overlay" directory. DSpace uses Maven to automatically look here for any customizations you wish to make to DSpace Web interfaces.
- dspace-jspui
- Contains all customizations for the JSP User Interface.
- src/main/resources/
- The overlay for JSPUI Resources. This is the location to place any custom Messages.properties files.src/main/webapp/
- The overlay for JSPUI Web Application. This is the location to place any custom JSPs to be used by DSpace.dspace-lni
- Contains all customizations for the Lightweight Network Interface.dspace-oai
- Contains all customizations for the OAI-PMH Interface.dspace-xmlui
- Contains all customizations for the XML User Interface (aka Manakin).
- src/main/webapp/
- The overlay for XMLUI Web Application. This is the location to place custom Themes or Configurations.
- i18n/
- The location to place a custom version of the XMLUI's messages.xmlthemes/
- The location to place custom Themes for the XMLUIsrc/
- Maven configurations for DSpace System. This directory contains the Maven and Ant build files for DSpace.target/
- (Only exists after building DSpace) This is the location Maven uses to build your DSpace installation package.
- dspace-[version].dir
- The location of the DSpace Installation Package (which can then be installed by running ant update
)dspace/
- Directory which contains all build and configuration information for DSpace
+
+ build.xml
- The Build file for Ant -- used to preform a fresh_install, upgrade, or deploy new changes.CHANGES
- Detailed list of code changes between versions.KNOWN_BUGS
- Known bugs in the current version.LICENSE
- DSpace source code license.README
- Obligatory basic information file.bin/
- Some shell and Perl scripts for running DSpace command-line tasks.config/
- Configuration files:
+ controlled-vocabularies/
- Fixed, limited vocabularies used in metadata entrycrosswalks/
- Metadata crosswalks - property files or XSL stylesheetsdspace.cfg
- The Main DSpace configuration file (You will need to edit this).dc2mods.cfg
- Mappings from Dublin Core metadata to MODS for the METS export.default.license
- The default license that users must grant when submitting items.dstat.cfg
, dstat.map
- Configuration for statistical reports.input-forms.xml
- Submission UI metadata field configuration.news-side.html
- Text of the front-page news in the sidebar, only used in JSPUI.news-top.html
- Text of the front-page news in the top box, only used in teh JSPUI.emails/
- Text and layout templates for emails sent out by the system.language-packs/
- Contains "dictionary files" -- Java properties files that contain user interface text in different languagesregistries/
- Initial contents of the bitstream format registry and Dublin Core element/qualifier registry. These are only used on initial system setup, after which they are maintained in the database.templates/
- Configuration files for libraries and external applications (e.g. Apache, Tomcat) are kept and edited here. They can refer to properties in the main DSpace configuration - have a look at a couple. When they're updated, a command line tool fills out these files with appropriate values from dspace.cfg, and copies them to their appropriate location (hence "templates".)docs/
- DSpace system documentation. The technical documentation for functionality, installation, configuration, etc.etc/
- Miscelleanous configuration need to install DSpace that isn't really to do with system configuration - e.g. the PostgreSQL database schema, and a couple of configuration files that are used during the build process but not by the live system. Also contains the deployment descriptors (web.xml
files) for the Web UI and OAI-PMH support .war
files.
+ oracle/
- Versions of the database schema and updater SQL scripts for Oracle.modules/
- The Web UI modules "overlay" directory. DSpace uses Maven to automatically look here for any customizations you wish to make to DSpace Web interfaces.
+ dspace-jspui
- Contains all customizations for the JSP User Interface.
+ src/main/resources/
- The overlay for JSPUI Resources. This is the location to place any custom Messages.properties files.src/main/webapp/
- The overlay for JSPUI Web Application. This is the location to place any custom JSPs to be used by DSpace.dspace-lni
- Contains all customizations for the Lightweight Network Interface.dspace-oai
- Contains all customizations for the OAI-PMH Interface.dspace-xmlui
- Contains all customizations for the XML User Interface (aka Manakin).
+ src/main/webapp/
- The overlay for XMLUI Web Application. This is the location to place custom Themes or Configurations.
+ i18n/
- The location to place a custom version of the XMLUI's messages.xmlthemes/
- The location to place custom Themes for the XMLUIsrc/
- Maven configurations for DSpace System. This directory contains the Maven and Ant build files for DSpace.target/
- (Only exists after building DSpace) This is the location Maven uses to build your DSpace installation package.
+ dspace-[version].dir
- The location of the DSpace Installation Package (which can then be installed by running ant update
)useradd -m dspace
Download the latest DSpace source code and unpack it - into a temporary location. It is not necessary to keep this directory around after you install DSpace.
+Download the latest DSpace release and unpack it.
+ Although there are two available releases (dspace-1.x.tar.gz
and dspace-1.x-src.tar.gz
),
+ you only need to choose one. If you want a copy of all underlying Java source code, you should download
+ the dspace-1.x-src.tar.gz
release.
+
gunzip -c dspace-1.x.tar.gz | tar -xf -
For ease of reference, we will refer to the location of this unzipped version
- of the DSpace installation package as [dspace-source] in the
+ of the DSpace release as
[dspace-source] in the
remainder of these instructions.
Copy the PostgreSQL JDBC driver (.jar
file) into
-[dspace-source]/lib
. If you compiled PostgreSQL yourself, it'll be in postgresql-7.x.x/src/interfaces/jdbc/jars/postgresql.jar
. Alternatively you can download it directly from the PostgreSQL JDBC site. Make sure you get the recommended driver for the version of PostgreSQL you're running.
[dspace-source]/dspace/lib
. If you compiled PostgreSQL yourself, it'll be in postgresql-7.x.x/src/interfaces/jdbc/jars/postgresql.jar
. Alternatively you can download it directly from the PostgreSQL JDBC site. Make sure you get the recommended driver for the version of PostgreSQL you're running.Create a dspace
database, owned by the dspace
PostgreSQL user:
Oracle:
Copy the Oracle JDBC driver into [dspace-source]/lib
.
Copy the Oracle JDBC driver into [dspace-source]/dspace/lib
.
Create a database for DSpace. Make sure that the character set is one of the Unicode character sets. DSpace uses UTF-8 natively, and it is suggested that the Oracle database use the same character set. Create a user account for DSpace (e.g. dspace
,) and ensure that it has permissions to add and remove tables in the database.
Edit the config/dspace.cfg file in your source directory for the following settings:
+Edit the [dspace-source]/dspace/config/dspace.cfg
database settings:
db.name = oracle db.url = jdbc.oracle.thin:@//host:port/dspace db.driver = oracle.jdbc.OracleDriver
Go to [dspace-source]/etc/oracle
and copy the contents to their parent directory, overwriting the versions in the parent:
+
Go to [dspace-source]/dspace/etc/oracle
and copy the contents to their parent directory, overwriting the versions in the parent:
-
cd [dspace-source]/etc/oracle +cd [dspace-source]/dspace/etc/oracle cp * ..You now have Oracle-specific
.sql
files in youretc
directory, and your dspace.cfg is modified to point to your Oracle database.
Edit [dspace-source]/config/dspace.cfg
, in particular you'll need to set these properties:
+
Edit [dspace-source]/dspace/config/dspace.cfg
, in particular you'll need to set these properties:
dspace.dir
-- must be set to the [dspace]
(installation) directory.
@@ -298,8 +301,8 @@ chown dspace [dspace]
As the dspace
UNIX user, generate the DSpace installation package in the [dspace-source]/target/dspace-[version].dir/
directory:
cd [dspace-source] +As the
+dspace
UNIX user, generate the DSpace installation package in the[dspace-source]/dspace/target/dspace-[version].dir/
directory:cd [dspace-source]/dspace/ mvn packageNote: without any extra arguments, the DSpace installation package is initialized for PostgreSQL. If you want to use Oracle instead, @@ -310,7 +313,7 @@ mvn package
As the dspace
UNIX user, initialize the DSpace database and install DSpace to [dspace]
:
cd [dspace-source]/target/dspace-[version].dir/ +cd [dspace-source]/dspace/target/dspace-[version].dir/ ant fresh_installNote: to see a complete list of build targets, run
@@ -378,36 +381,36 @@ cp -r [dspace]/webapps/dspace-oai [tomcat]/webapps
useradd -m dspace
Create the parent directory for the DSpace modules to reside (i.e. [dspace-parent]
). As root (or a user with appropriate permissions), run:
Create the source directory for the DSpace modules to reside (i.e. [dspace-source]
). As root (or a user with appropriate permissions), run:
mkdir [dspace-parent] -chown dspace [dspace-parent]+
mkdir [dspace-source] +chown dspace [dspace-source]
(Assuming the dspace
UNIX username.)
Checkout the DSpace Source code from SourceForge SVN into [dspace-parent]
. For example:
Checkout the DSpace Source code from SourceForge SVN into [dspace-source]
. For example:
svn co https://dspace.svn.sourceforge.net/svnroot/dspace/tags/dspace-1_5 [dspace-parent]+
svn co https://dspace.svn.sourceforge.net/svnroot/dspace/tags/dspace-1_5 [dspace-source]
If you wish, you can choose to only checkout the source code for the specific DSpace "modules"
which you want to install. However, you must always checkout the 'dspace'
module, as
it is the module which builds DSpace. For example, if you only want to install the XML-UI and the OAI-PMH interface
you can perform the following checkouts:
svn co https://dspace.svn.sourceforge.net/svnroot/dspace/tags/dspace-1_5/dspace [dspace-parent] -svn co https://dspace.svn.sourceforge.net/svnroot/dspace/tags/dspace-1_5/dspace-xmlui [dspace-parent] -svn co https://dspace.svn.sourceforge.net/svnroot/dspace/tags/dspace-1_5/dspace-oai [dspace-parent] +svn co https://dspace.svn.sourceforge.net/svnroot/dspace/tags/dspace-1_5/dspace [dspace-source] +svn co https://dspace.svn.sourceforge.net/svnroot/dspace/tags/dspace-1_5/dspace-xmlui [dspace-source] +svn co https://dspace.svn.sourceforge.net/svnroot/dspace/tags/dspace-1_5/dspace-oai [dspace-source]In order, you are checking out the
-'dspace'
module (builds DSpace),'dspace-xmlui'
module (provides XML-UI), and'dspace-oai'
module (provides OAI-PMH).In the end, you should have a folder structure similar to the following in
[dspace-parent]
: +In the end, you should have a folder structure similar to the following in
[dspace-source]
:
[dspace-parent]
+ [dspace-source]
dspace/
- DSpace 'build' and configuration module (this is what is normally referred to as [dspace-source]
)dspace/
- DSpace 'build' and configuration moduledspace-api/
- DSpace Java API moduledspace-jspui/
- DSpace JSP-UI moduledspace-oai/
- DSpace OAI-PMH interface moduleBuild your custom DSpace installation package (from within the 'dspace'
module)
cd [dspace-parent]/dspace/ -mvn package- -
Note: without any extra arguments, DSpace is built for PostgreSQL. If you want to use Oracle instead, - you should build DSpace as follows:
- -mvn -Ddb.name=oracle package-
Building DSpace may take awhile. But, once it is complete, you should have your
- custom DSpace installation package ready in your
- [dspace-parent]/dspace/target/dspace-[version].dir/
directory.
Note: Although we won't go into this in detail, you can also create your own
- completely custom Maven-based modules in your [dspace-parent]
directory.
+
Note: Although we won't go into this in detail, you can also create your own
+ completely custom Maven-based modules in your [dspace-source]
directory.
To build your custom modules into DSpace, you would need to modify the 'dspace'
module's pom.xml
(Project Object Model) to look for those custom modules, and
then re-build your DSpace installation package. Look
at the Maven Documentation or
DSpace Wiki for more hints and tricks.
Once your DSpace installation package has been built, you can follow the steps in the
- Quick Installation Method above to finish installing and configure DSpace.
- Just remember that you can skip downloading the DSpace Source Code from
- SourceForge. In addition, remember that your [dspace-parent]/dspace
module is
- the same as what is referred to as [dspace-source]
Once you've downloaded the appropriate DSpace modules into [dspace-source]
, you can follow the steps in the
+ Quick Installation Method above to finish installing and configuring DSpace.
+ Just remember that you can skip downloading the Latest DSpace Release from
+ SourceForge, as you've already downloaded it via Maven.
A Handle server runs as a separate process that receives TCP requests from other Handle servers, and issues resolution requests to a global server or servers if a Handle entered locally does not correspond to some local content. The Handle protocol is based on TCP, so it will need to be installed on a server that can broadcast and receive TCP on port 2641.
The Handle server code is included with the DSpace code in
-[dspace-source]/lib/handle.jar
. Note: The latest version of the handle.jar
file is not included in the release due to licensing conditions changing between the provided version and later versions. It is recommended you read the new license conditions and decide whether you wish to update your installation's handle.jar
. If you decide to update, you should replace the existing handle.jar
in [dspace-source]/lib with the new version and rebuild your war files.
[dspace]/lib/handle.jar
. Note: The latest version of the handle.jar
file is not included in the release due to licensing conditions changing between the provided version and later versions. It is recommended you read the new license conditions and decide whether you wish to update your installation's handle.jar
. If you decide to update, you should replace the existing handle.jar
in [dspace]/lib with the new version and rebuild your war files.
A script exists to create a simple Handle configuration - simply run [dspace]/bin/make-handle-config
after you've set the appropriate parameters in dspace.cfg
. You can also create a Handle configuration directly by following the installation instructions on handle.net, but with these changes:
Download the DSpace source from SourceForge and untar it (WinZip will do this)
Copy the PostgreSQL JDBC driver across to the DSpace source tree. The drivers will be in C:\Program Files\PostgreSQL\8.x\jdbc\
. The postgresql-8.x-yyy.jdbc2.jar
is the jar file you need. Copy it to [dspace-source]/lib
.
Copy the PostgreSQL JDBC driver across to the DSpace source tree. The drivers will be in C:\Program Files\PostgreSQL\8.x\jdbc\
. The postgresql-8.x-yyy.jdbc2.jar
is the jar file you need. Copy it to [dspace]/lib
.
Ensure the PostgreSQL service is running, and then run pgAdmin III (Start -> PostgreSQL 8.0 -> pgAdmin III). Connect to the local database as the postgres user and:
dspace
with the password dspace
dspace
owned by the user dspace
, with UTF-8 encoding
Update paths in [dspace-source]\config\dspace.cfg
. Note: Use forward slashes / for path separators, though you can still use drive letters, e.g.:
+
Update paths in [dspace-source]\dspace\config\dspace.cfg
. Note: Use forward slashes / for path separators, though you can still use drive letters, e.g.:
dspace.dir = C:/DSpace
Make sure you change all of the parameters with file paths to suit, specifically:
@@ -830,7 +818,20 @@ $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keysize 1024 \
Run:
ant fresh_install
Create an administrator account, e.g. assuming C:\dspace
is where your DSpace installation is:
C:\dspace\bin\dsrun org.dspace.administer.CreateAdministrator
and enter the required information
Copy the .war
Web application files from [dspace-source]\build
to Tomcat's webapps dir, which should be somewhere like C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps
Copy the Web application directories from [dspace]\webapps\
to Tomcat's webapps dir, which should be somewhere like C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps
Alternatively, Tell your Tomcat installation where to find your DSpace web application(s).
+ As an example, in the <Host>
section of your [tomcat]/conf/server.xml
you could add lines similar to the following
+ (but replace [dspace]
with your installation location):
<!-- DEFINE A CONTEXT PATH FOR DSpace JSP User Interface --> +<Context path="/dspace-jspui" docBase="[dspace]\webapps\dspace-jspui" debug="0" reloadable="true" cachingAllowed="false" allowLinking="true"/> + +<!-- DEFINE A CONTEXT PATH FOR DSpace OAI User Interface --> +<Context path="/dspace-oai" docBase="[dspace]\webapps\dspace-oai" debug="0" reloadable="true" cachingAllowed="false" allowLinking="true"/>+
Start the Tomcat service
Browse http://localhost:8080/dspace
. You should see the DSpace home page
All calls to the Database Manager
require a DSpace Context
object. Example use of the database manager API is given in the org.dspace.storage.rdbms
package Javadoc.
The database schema used by DSpace (for PostgreSQL) is stored in [dspace-source]/etc/database_schema.sql
in the source distribution. It is stored in the form of SQL that can be fed straight into the DBMS to construct the database. The schema SQL file also directly creates two e-person groups in the database that are required for the system to function properly.
The database schema used by DSpace (for PostgreSQL) is stored in [dspace-source]/dspace/etc/database_schema.sql
in the source distribution. It is stored in the form of SQL that can be fed straight into the DBMS to construct the database. The schema SQL file also directly creates two e-person groups in the database that are required for the system to function properly.
Also in [dspace-source]/etc
are various SQL files called database_schema_1x_1y
. These contain the necessary SQL commands to update a live DSpace database from version 1.x
to 1.y
. Note that this might not be the only part of an upgrade process: see Updating a DSpace Installation for details.
Also in [dspace-source]/dspace/etc
are various SQL files called database_schema_1x_1y
. These contain the necessary SQL commands to update a live DSpace database from version 1.x
to 1.y
. Note that this might not be the only part of an upgrade process: see Updating a DSpace Installation for details.
The DSpace database code uses an SQL function getnextid
to assign primary keys to newly created rows. This SQL function must be safe to use if several JVMs are accessing the database at once; for example, the Web UI might be creating new rows in the database at the same time as the batch item importer. The PostgreSQL-specific implementation of the method uses SEQUENCES
for each table in order to create new IDs. If an alternative database backend were to be used, the implementation of getnextid
could be updated to operate with that specific DBMS.
The etc
directory in the source distribution contains two further SQL files. clean-database.sql
contains the SQL necessary to completely clean out the database, so use with caution! The Ant target clean_database
can be used to execute this. update-sequences.sql
contains SQL to reset the primary key generation sequences to appropriate values. You'd need to do this if, for example, you're restoring a backup database dump which creates rows with specific primary keys already defined. In such a case, the sequences would allocate primary keys that were already used.
Versions of the *.sql*
files for Oracle are stored in [dspace-source]/etc/oracle
. These need to be copied over their PostgreSQL counterparts in [dspace-source]/etc
prior to installation.
Versions of the *.sql*
files for Oracle are stored in [dspace-source]/dspace/etc/oracle
. These need to be copied over their PostgreSQL counterparts in [dspace-source]/dspace/etc
prior to installation.
After restoring a backup, you will need to reset the primary key generation sequences so that they do not produce already-used primary keys. Do this by executing the SQL in [dspace-source]/etc/update-sequences.sql
, for example with:
After restoring a backup, you will need to reset the primary key generation sequences so that they do not produce already-used primary keys. Do this by executing the SQL in [dspace-source]/dspace/etc/update-sequences.sql
, for example with:
-psql -U dspace -f [dspace-source]/etc/update-sequences.sql +psql -U dspace -f [dspace-source]/dspace/etc/update-sequences.sql
The [dspace]/config/item-submission.xml
contains the submission configurations for both the DSpace JSP user interface (JSP-UI) or the DSpace XML user interface
- (XML-UI or Manakin). This configuration file contains detailed documentation within the file itself,
+
The [dspace]/config/item-submission.xml
contains the submission configurations for both the DSpace JSP user interface (JSPUI) or the DSpace XML user interface
+ (XMLUI or Manakin). This configuration file contains detailed documentation within the file itself,
which should help you better understand how to best utilize it.
The same <step> definition is used by both the DSpace JSP user interface (JSP-UI) an the DSpace XML user interface - (XML-UI or Manakin). Therefore, you will notice each <step> definition contains information +
The same <step> definition is used by both the DSpace JSP user interface (JSPUI) an the DSpace XML user interface + (XMLUI or Manakin). Therefore, you will notice each <step> definition contains information specific to each of these two interfaces.
The structure of the <step> Definition is as follows: @@ -180,13 +180,13 @@
heading
Messages.properties
for JSP-UI or messages.xml
for XML-UI) which corresponds to
+ Messages.properties
for JSPUI or messages.xml
for XMLUI) which corresponds to
the text that should be displayed in the submission Progress Bar for this step.
This partial I18N key is prefixed within either the Messages.properties or messages.xml file, depending on the interface you are using.
Therefore, to find the actual key, you will need to search for the partial key with the following prefix:
xmlui.Submission.
(e.g. "xmlui.Submission.submit.progressbar.describe" for 'Describe' step)jsp.
(e.g. "jsp.submit.progressbar.describe" for 'Describe' step)xmlui.Submission.
(e.g. "xmlui.Submission.submit.progressbar.describe" for 'Describe' step)jsp.
(e.g. "jsp.submit.progressbar.describe" for 'Describe' step)processing-class
(Required)org.dspace.submit.AbstractProcessingStep
` class
(or alternatively, extend one of the pre-existing step processing classes in
org.dspace.submit.step.*
)jspui-binding
org.dspace.app.webui.submit.JSPStep
` class.
- This property need not be defined if you are using the XML-UI interface, or for steps which
+ JSPUI "binding" class must extend the abstract `org.dspace.app.webui.submit.JSPStep
` class.
+ This property need not be defined if you are using the XMLUI interface, or for steps which
only perform automated processing, i.e. non-interactive steps.
xmlui-binding
org.dspace.app.xmlui.submission.AbstractSubmissionStep
` class.
- This property need not be defined if you are using the JSP-UI interface, or for steps which
+ XMLUI "binding" class must extend the abstract `org.dspace.app.xmlui.submission.AbstractSubmissionStep
` class.
+ This property need not be defined if you are using the JSPUI interface, or for steps which
only perform automated processing, i.e. non-interactive steps.
The Upload step in the DSpace submission process has two configuration options
which can be set with your [dspace]/config/dspace.cfg
configuration file. They are as follows:
upload.max
- The maximum size of a file (in bytes) that can be uploaded from the JSP-UI (not applicable for the XML-UI). It defaults to 536870912 bytes (512MB). You may set this to -1 to disable any file size limitation.
+ upload.max
- The maximum size of a file (in bytes) that can be uploaded from the JSPUI (not applicable for the XMLUI). It defaults to 536870912 bytes (512MB). You may set this to -1 to disable any file size limitation.
webui.submit.upload.required
- Whether or not all users are required to upload a file when they submit an item to DSpace. It defaults to 'true'. When set to 'false' users will see an option to skip the upload step when they submit a new item.org.dspace.submit.AbstractProcessingStep
class and
implement all methods defined by that abstract class.
org.dspace.app.webui.submit.JSPStep
+ org.dspace.app.webui.submit.JSPStep
and implement all methods defined there. It's recommended to use one
of the classes in org.dspace.app.webui.submit.step.*
as a reference.review-[step].jsp
) in the
- [dspace-source]/jsp/submit
directory.review-[step].jsp
) in the JSP
+ submit/
directory.
item-submission.xml
configuration file.
heading
to
- the [dspace-source]/config/language-packs/Messages.properties
(for JSP UI) or
- [manakin-source]/config/i18n/messages.xml
(for Manakin XML UI) properties files.heading
. See the sections on Configuring Multilingual Support for JSPUI or Configuring Multilingual Support for XMLUI for more details.<step>
definitions
within the item-submission.xml
, see the section above
on Defining Steps (<step>
) within the item-submission.xml
.
diff --git a/dspace/docs/update.html b/dspace/docs/update.html
index 106827efb1..4991826b8f 100644
--- a/dspace/docs/update.html
+++ b/dspace/docs/update.html
@@ -41,10 +41,10 @@
The build process has radically changed for DSpace 1.5. With this new release the build system has moved to a maven-based system enabling the various projects (JSPUI, XMLUI, OAI, and Core API) into separate projects. See the Installation section for more information on building DSpace using the new maven-based build system. Run the following commands to compile DSpace.
- cd [dspace-source]; + cd [dspace-source]/dspace/; mvn package-
You will find the result in [dspace-source]/target/dspace-1.5-build.dir/
; inside this directory is the compiled binary distribution of DSpace.
You will find the result in [dspace-source]/dspace/target/dspace-1.5-build.dir/
; inside this directory is the compiled binary distribution of DSpace.
xmlui.xconf
Manakin configuration
The new Manakin user interface available with DSpace 1.5 requires an extra configuration file that you will need to manually copy over to your configuration directory.
-cp [dspace-source]/config/xmlui.xconf [dspace]/config/xmlui.xconf +cp [dspace-source]/dspace/config/xmlui.xconf [dspace]/config/xmlui.xconf
The database schema needs updating. SQL files contain the relevant updates are provided, note if you have made any local customizations to the database schema you should consult these updates and make sure they will work for you.
psql -U [dspace-user] -f [dspace-source]/etc/database_schema_14-15.sql [database-name]
psql -U [dspace-user] -f [dspace-source]/dspace/etc/database_schema_14-15.sql [database-name]
[dspace-source]/etc/oracle/database_schema_142-15.sql
contains the
+
[dspace-source]/dspace/etc/oracle/database_schema_142-15.sql
contains the
commands necessary to upgrade your database schema on oracle.
If you have made any local customizations to your DSpace installation they will need to be migrated over to the new DSpace. Commonly these modifications are made to "JSP" pages located inside the [dspace 1.4.2]/jsp/local
directory. These should be moved
-[dspace-source]/modules/dspace-jspui/src/main/webapp/
in the new build structure. See Customizing the JSP Pages for more information.
+[dspace-source]/dspace/modules/dspace-jspui/src/main/webapp/
in the new build structure. See Customizing the JSP Pages for more information.
Update the DSpace installed directory with new code and libraries. Inside the [dspace-source]/target/dspace-1.5-build.dir/
directory run:
Update the DSpace installed directory with new code and libraries. Inside the [dspace-source]/dspace/target/dspace-1.5-build.dir/
directory run:
-cd [dspace-source]/target/dspace-1.5-build.dir/; +cd [dspace-source]/dspace/target/dspace-1.5-build.dir/; ant -Dconfig=[dspace]/config/dspace.cfg update