From 928933f76f01780a322ae3409b86bc4a2c5bfabc Mon Sep 17 00:00:00 2001 From: "Mark H. Wood" Date: Thu, 29 Mar 2012 16:46:39 -0400 Subject: [PATCH] re-apply changes from modified SVN checkout --- dspace-api/pom.xml | 83 + dspace-api/src/test/data/dspace.cfg.more | 8 + .../java/org/dspace/AbstractUnitTest.java | 140 +- .../storage/rdbms/MockDatabaseManager.java | 8 +- dspace-api/src/test/resources/dspace-test.cfg | 1789 -------- .../config/controlled-vocabularies/LICENCES | 14 - .../config/controlled-vocabularies/nsi.xml | 563 --- .../config/controlled-vocabularies/srsc.xml | 2251 ---------- .../config/crosswalks/QDC.properties | 80 - .../config/crosswalks/mods-submission.xsl | 375 -- .../config/crosswalks/mods.properties | 73 - .../config/crosswalks/oaidc.properties | 27 - .../crosswalks/sample-crosswalk-DIM2DC.xsl | 56 - .../config/crosswalks/sword-swap-ingest.xsl | 151 - .../crosswalks/xhtml-head-item.properties | 77 - .../resources/dspaceFolder/config/dc2mods.cfg | 71 - .../dspaceFolder/config/default.context.xml | 10 - .../dspaceFolder/config/default.license | 37 - .../resources/dspaceFolder/config/dspace.cfg | 1807 -------- .../resources/dspaceFolder/config/dstat.cfg | 78 - .../resources/dspaceFolder/config/dstat.map | 103 - .../config/emails/change_password | 16 - .../dspaceFolder/config/emails/export_error | 19 - .../dspaceFolder/config/emails/export_success | 18 - .../dspaceFolder/config/emails/feedback | 26 - .../config/emails/harvesting_error | 20 - .../dspaceFolder/config/emails/internal_error | 24 - .../dspaceFolder/config/emails/register | 16 - .../config/emails/registration_notify | 17 - .../dspaceFolder/config/emails/submit_archive | 21 - .../dspaceFolder/config/emails/submit_reject | 23 - .../dspaceFolder/config/emails/submit_task | 24 - .../dspaceFolder/config/emails/subscription | 12 - .../dspaceFolder/config/emails/suggest | 26 - .../dspaceFolder/config/input-forms.dtd | 51 - .../dspaceFolder/config/input-forms.xml | 402 -- .../dspaceFolder/config/item-submission.dtd | 35 - .../dspaceFolder/config/item-submission.xml | 234 - .../dspaceFolder/config/launcher.xml | 328 -- .../config/modules/authentication-ip.cfg | 14 - .../config/modules/authentication-ldap.cfg | 134 - .../modules/authentication-password.cfg | 14 - .../modules/authentication-shibboleth.cfg | 71 - .../config/modules/authentication-x509.cfg | 19 - .../config/modules/authentication.cfg | 10 - .../dspaceFolder/config/modules/bulkedit.cfg | 18 - .../dspaceFolder/config/modules/workflow.cfg | 3 - .../dspaceFolder/config/news-side.html | 3 - .../dspaceFolder/config/news-top.html | 3 - .../dspaceFolder/config/news-xmlui.xml | 15 - .../dspaceFolder/config/oaicat.properties | 46 - .../config/registries/bitstream-formats.xml | 737 --- .../config/registries/dublin-core-types.xml | 601 --- .../config/registries/sword-metadata.xml | 129 - .../config/spiders/iplists.com-altavista.txt | 141 - .../config/spiders/iplists.com-excite.txt | 21 - .../config/spiders/iplists.com-google.txt | 291 -- .../config/spiders/iplists.com-infoseek.txt | 88 - .../config/spiders/iplists.com-inktomi.txt | 749 ---- .../config/spiders/iplists.com-lycos.txt | 41 - .../config/spiders/iplists.com-misc.txt | 3962 ----------------- .../spiders/iplists.com-non_engines.txt | 295 -- .../resources/dspaceFolder/config/xmlui.dtd | 15 - .../resources/dspaceFolder/config/xmlui.xconf | 115 - .../test/resources/dspaceFolder/solr/solr.xml | 35 - .../solr/statistics/conf/admin-extra.html | 31 - .../solr/statistics/conf/elevate.xml | 36 - .../solr/statistics/conf/protwords.txt | 21 - .../solr/statistics/conf/schema.xml | 307 -- .../solr/statistics/conf/scripts.conf | 24 - .../solr/statistics/conf/solrconfig.xml | 695 --- .../solr/statistics/conf/spellings.txt | 2 - .../solr/statistics/conf/stopwords.txt | 57 - .../solr/statistics/conf/synonyms.txt | 31 - .../solr/statistics/conf/xslt/example.xsl | 132 - .../statistics/conf/xslt/example_atom.xsl | 67 - .../solr/statistics/conf/xslt/example_rss.xsl | 66 - .../solr/statistics/conf/xslt/luke.xsl | 337 -- .../testData/ConstitutionofIreland.pdf | Bin 238413 -> 0 bytes .../src/test/resources/test-config.properties | 10 +- dspace/etc/h2/NOTICE.txt | 3 + dspace/etc/h2/database_schema.sql | 789 ++++ 82 files changed, 937 insertions(+), 18354 deletions(-) create mode 100644 dspace-api/src/test/data/dspace.cfg.more delete mode 100644 dspace-api/src/test/resources/dspace-test.cfg delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/controlled-vocabularies/LICENCES delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/controlled-vocabularies/nsi.xml delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/controlled-vocabularies/srsc.xml delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/crosswalks/QDC.properties delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/crosswalks/mods-submission.xsl delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/crosswalks/mods.properties delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/crosswalks/oaidc.properties delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/crosswalks/sample-crosswalk-DIM2DC.xsl delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/crosswalks/sword-swap-ingest.xsl delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/crosswalks/xhtml-head-item.properties delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/dc2mods.cfg delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/default.context.xml delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/default.license delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/dspace.cfg delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/dstat.cfg delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/dstat.map delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/emails/change_password delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/emails/export_error delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/emails/export_success delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/emails/feedback delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/emails/harvesting_error delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/emails/internal_error delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/emails/register delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/emails/registration_notify delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/emails/submit_archive delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/emails/submit_reject delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/emails/submit_task delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/emails/subscription delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/emails/suggest delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/input-forms.dtd delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/input-forms.xml delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/item-submission.dtd delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/item-submission.xml delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/launcher.xml delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/modules/authentication-ip.cfg delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/modules/authentication-ldap.cfg delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/modules/authentication-password.cfg delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/modules/authentication-shibboleth.cfg delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/modules/authentication-x509.cfg delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/modules/authentication.cfg delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/modules/bulkedit.cfg delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/modules/workflow.cfg delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/news-side.html delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/news-top.html delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/news-xmlui.xml delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/oaicat.properties delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/registries/bitstream-formats.xml delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/registries/dublin-core-types.xml delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/registries/sword-metadata.xml delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/spiders/iplists.com-altavista.txt delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/spiders/iplists.com-excite.txt delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/spiders/iplists.com-google.txt delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/spiders/iplists.com-infoseek.txt delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/spiders/iplists.com-inktomi.txt delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/spiders/iplists.com-lycos.txt delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/spiders/iplists.com-misc.txt delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/spiders/iplists.com-non_engines.txt delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/xmlui.dtd delete mode 100644 dspace-api/src/test/resources/dspaceFolder/config/xmlui.xconf delete mode 100644 dspace-api/src/test/resources/dspaceFolder/solr/solr.xml delete mode 100644 dspace-api/src/test/resources/dspaceFolder/solr/statistics/conf/admin-extra.html delete mode 100644 dspace-api/src/test/resources/dspaceFolder/solr/statistics/conf/elevate.xml delete mode 100644 dspace-api/src/test/resources/dspaceFolder/solr/statistics/conf/protwords.txt delete mode 100644 dspace-api/src/test/resources/dspaceFolder/solr/statistics/conf/schema.xml delete mode 100644 dspace-api/src/test/resources/dspaceFolder/solr/statistics/conf/scripts.conf delete mode 100644 dspace-api/src/test/resources/dspaceFolder/solr/statistics/conf/solrconfig.xml delete mode 100644 dspace-api/src/test/resources/dspaceFolder/solr/statistics/conf/spellings.txt delete mode 100644 dspace-api/src/test/resources/dspaceFolder/solr/statistics/conf/stopwords.txt delete mode 100644 dspace-api/src/test/resources/dspaceFolder/solr/statistics/conf/synonyms.txt delete mode 100644 dspace-api/src/test/resources/dspaceFolder/solr/statistics/conf/xslt/example.xsl delete mode 100644 dspace-api/src/test/resources/dspaceFolder/solr/statistics/conf/xslt/example_atom.xsl delete mode 100644 dspace-api/src/test/resources/dspaceFolder/solr/statistics/conf/xslt/example_rss.xsl delete mode 100644 dspace-api/src/test/resources/dspaceFolder/solr/statistics/conf/xslt/luke.xsl delete mode 100644 dspace-api/src/test/resources/dspaceFolder/testData/ConstitutionofIreland.pdf create mode 100644 dspace/etc/h2/NOTICE.txt create mode 100644 dspace/etc/h2/database_schema.sql diff --git a/dspace-api/pom.xml b/dspace-api/pom.xml index ac3660b332..151f8f55a5 100644 --- a/dspace-api/pom.xml +++ b/dspace-api/pom.xml @@ -28,6 +28,20 @@ http://scm.dspace.org/svn/repo/dspace/trunk/dspace + + + sonatype-ossrh-snapshots + Sonatype OSSRH Snapshots + https://oss.sonatype.org/content/repositories/snapshots/ + + true + + + false + + + + @@ -61,6 +75,75 @@ + + maven-dependency-plugin + 2.3 + + + setupTestEnvironment + generate-test-resources + + unpack + + + ${project.build.directory}/testing + + + org.dspace + dspace-parent + ${project.version} + zip + testEnvironment + + + + + + + + edu.iu.ul.maven.plugins + fileweaver + 1.0-SNAPSHOT + + + + ${project.build.directory}/testing + dspace.cfg.woven + + + ${project.build.directory}/testing/dspace/config/dspace.cfg + + + ${project.build.directory}/testing/dspace.cfg.more + + + + ${project.build.directory}/testing/dspace + + + + + + + edit-dspace-cfg + process-test-resources + + weave + + + + + + maven-surefire-plugin + + + ${project.build.directory}/testing/dspace + ${project.build.directory}/testing/dspace.cfg.woven + ${project.build.directory}/testing/dspace/etc/h2/database_schema.sql + true + + + diff --git a/dspace-api/src/test/data/dspace.cfg.more b/dspace-api/src/test/data/dspace.cfg.more new file mode 100644 index 0000000000..40dfbaf988 --- /dev/null +++ b/dspace-api/src/test/data/dspace.cfg.more @@ -0,0 +1,8 @@ +#Configure authority control for testing + +plugin.selfnamed.org.dspace.content.authority.ChoiceAuthority = \ + org.dspace.content.authority.DCInputAuthority + +choices.plugin.dc.language.iso = common_iso_languages +choices.presentation.dc.language.iso = select +authority.controlled.dc.language.iso = true diff --git a/dspace-api/src/test/java/org/dspace/AbstractUnitTest.java b/dspace-api/src/test/java/org/dspace/AbstractUnitTest.java index 5c909e9472..caf32fdfb1 100644 --- a/dspace-api/src/test/java/org/dspace/AbstractUnitTest.java +++ b/dspace-api/src/test/java/org/dspace/AbstractUnitTest.java @@ -7,6 +7,8 @@ */ package org.dspace; +import static org.junit.Assert.fail; + import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; @@ -16,35 +18,38 @@ import java.nio.channels.FileChannel; import java.sql.SQLException; import java.util.Properties; import java.util.TimeZone; + import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.TransformerException; -import org.dspace.administer.RegistryImportException; -import org.dspace.authorize.AuthorizeException; -import org.dspace.browse.BrowseException; -import org.dspace.content.NonUniqueMetadataException; -import org.dspace.servicemanager.DSpaceKernelImpl; -import org.dspace.servicemanager.DSpaceKernelInit; -import org.junit.*; -import static org.junit.Assert.*; -import mockit.*; + +import mockit.UsingMocksAndStubs; + import org.apache.log4j.Logger; import org.dspace.administer.MetadataImporter; +import org.dspace.administer.RegistryImportException; import org.dspace.administer.RegistryLoader; +import org.dspace.authorize.AuthorizeException; +import org.dspace.browse.BrowseException; import org.dspace.browse.IndexBrowse; import org.dspace.browse.MockBrowseCreateDAOOracle; import org.dspace.content.MetadataField; +import org.dspace.content.NonUniqueMetadataException; import org.dspace.core.ConfigurationManager; import org.dspace.core.Context; import org.dspace.eperson.EPerson; import org.dspace.search.DSIndexer; import org.dspace.storage.rdbms.MockDatabaseManager; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Before; +import org.junit.BeforeClass; import org.xml.sax.SAXException; /** * This is the base class for Unit Tests. It contains some generic mocks and - * utilities that are needed by most of the unit tests developed for DSpace + * utilities that are needed by most of the unit tests developed for DSpace. * * @author pvillega */ @@ -57,19 +62,19 @@ public class AbstractUnitTest //Below there are static variables shared by all the instances of the class /** - * Test properties + * Test properties. */ protected static Properties testProps; //Below there are variables used in each test /** - * Context mock object to use in the tests + * Context mock object to use in the tests. */ protected Context context; /** - * EPerson mock object to use in the tests + * EPerson mock object to use in the tests. */ protected static EPerson eperson; @@ -81,12 +86,13 @@ public class AbstractUnitTest * Due to the way Maven works, unit tests can't be run from a POM package, * which forbids us to run the tests from the Assembly and Configuration * package. On the other hand we need a structure of folders to run the tests, - * like "solr", "report", etc. + * like "solr", "report", etc. This will be provided by a JAR assembly + * built out of files from various modules -- see the dspace-parent POM. * - * This method will create all the folders and files required for the tests - * in the test folder. To facilitate the work this will consist on a copy - * from a folder in the resources folder. The ConfigurationManager will be - * initialized to load the test "dspace.cfg" and then launch the unit tests. + * This method will load a few properties for derived test classes. + * + * The ConfigurationManager will be initialized to load the test + * "dspace.cfg". */ @BeforeClass public static void initOnce() @@ -98,71 +104,27 @@ public class AbstractUnitTest //load the properties of the tests testProps = new Properties(); - URL properties = AbstractUnitTest.class.getClassLoader().getResource("test-config.properties"); + URL properties = AbstractUnitTest.class.getClassLoader() + .getResource("test-config.properties"); testProps.load(properties.openStream()); - //prepare the Dspace files - URL origin = ClassLoader.getSystemResource("dspaceFolder"); - File source = new File(origin.getPath()); - File dspaceTmp = new File(testProps.getProperty("test.folder")); - if (!dspaceTmp.exists()) - { - dspaceTmp.mkdirs(); - } - copyDir(source, dspaceTmp); - - //copy a file into assetstore for "register" tests on Bundle, Bitstream - File tmpFile = new File(testProps.getProperty("test.bitstream")); - File destParent = new File(testProps.getProperty("test.folder.assetstore")); - destParent.mkdirs(); - File dest = new File(testProps.getProperty("test.assetstore.bitstream")); - if(!dest.exists()) - { - dest.createNewFile(); - } - copyFile(tmpFile, dest); - //load the test configuration file - URL configFile = AbstractUnitTest.class.getClassLoader().getResource(testProps.getProperty("test.config.file")); - ConfigurationManager.loadConfig(configFile.getPath()); + ConfigurationManager.loadConfig(null); -// // Initialise the service manager kernel - DSpaceKernelImpl kernelImpl = null; - try { - kernelImpl = DSpaceKernelInit.getKernel(null); - if (!kernelImpl.isRunning()) - { - kernelImpl.start(ConfigurationManager.getProperty("dspace.dir")); - } - } catch (Exception e) - { - // Failed to start so destroy it and log and throw an exception - try - { - if(kernelImpl != null){ - kernelImpl.destroy(); - } - } - catch (Exception e1) - { - // Nothing to do - } - String message = "Failure during filter init: " + e.getMessage(); - throw new IllegalStateException(message, e); - } - - - //load the default registries. This assumes the temporal filesystem is working - //and the in-memory DB in place + // Load the default registries. This assumes the temporary + // filesystem is working and the in-memory DB in place. Context ctx = new Context(); ctx.turnOffAuthorisationSystem(); - //we can't check via a boolean value (even static) as the class is destroyed by the - //JUnit classloader. We rely on a value that will always be in the database if it has - //been initialized to avoid doing the work twice + // We can't check via a boolean value (even static) as the class is + // destroyed by the JUnit classloader. We rely on a value that will + // always be in the database, if it has been initialized, to avoid + // doing the work twice. if(MetadataField.find(ctx, 1) == null) { - String base = testProps.getProperty("test.folder") + File.separator + "config"+ File.separator +"registries"+ File.separator; + String base = ConfigurationManager.getProperty("dspace.dir") + + File.separator + "config" + File.separator + + "registries" + File.separator; RegistryLoader.loadBitstreamFormats(ctx, base + "bitstream-formats.xml"); MetadataImporter.loadRegistry(base + "dublin-core-types.xml", true); @@ -252,6 +214,7 @@ public class AbstractUnitTest * @param to Destination * @throws IOException There is an error while copying the content */ + /* protected static void copyDir(File from, File to) throws IOException { if(!from.isDirectory() || !to.isDirectory()) @@ -276,6 +239,7 @@ public class AbstractUnitTest } } } + */ /** * Removes the copies of the origin files from the destination folder. Used @@ -285,6 +249,7 @@ public class AbstractUnitTest * @param to Destination from which to remove contents * @throws IOException There is an error while copying the content */ + /* protected static void deleteDir(File from, File to) throws IOException { if(!from.isDirectory() || !to.isDirectory()) @@ -315,6 +280,7 @@ public class AbstractUnitTest } } } + */ /** * Copies one file into another @@ -323,6 +289,7 @@ public class AbstractUnitTest * @param to Destination of copy * @throws IOException There is an error while copying the content */ + /* protected static void copyFile(File from, File to) throws IOException { if(!from.isFile() || !to.isFile()) @@ -336,6 +303,7 @@ public class AbstractUnitTest in.close(); out.close(); } + */ /** * This method will be run before every test as per @Before. It will @@ -385,27 +353,9 @@ public class AbstractUnitTest @AfterClass public static void destroyOnce() { - try - { - //the database will be cleaned automatically on shutdown (in-memory db) - - //we clear the copied resources - URL origin = ClassLoader.getSystemResource("dspaceFolder"); - File source = new File(origin.getPath()); - File dspaceTmp = new File(testProps.getProperty("test.folder")); - deleteDir(source, dspaceTmp); - - File destParent = new File(testProps.getProperty("test.folder.assetstore")); - deleteDir(destParent,destParent); - - //we clear the properties - testProps.clear(); - testProps = null; - } - catch (IOException ex) - { - log.error("Error cleaning the temporal files of testing", ex); - } + //we clear the properties + testProps.clear(); + testProps = null; } /** diff --git a/dspace-api/src/test/java/org/dspace/storage/rdbms/MockDatabaseManager.java b/dspace-api/src/test/java/org/dspace/storage/rdbms/MockDatabaseManager.java index a287fef2ac..d43016f652 100644 --- a/dspace-api/src/test/java/org/dspace/storage/rdbms/MockDatabaseManager.java +++ b/dspace-api/src/test/java/org/dspace/storage/rdbms/MockDatabaseManager.java @@ -1668,11 +1668,15 @@ public class MockDatabaseManager driver.registerPool(poolName, connectionPool); //preload the contents of the database - URL fileSchema = MockDatabaseManager.class.getClassLoader().getResource("database_schema.sql"); String s = new String(); StringBuilder sb = new StringBuilder(); - FileReader fr = new FileReader(new File(fileSchema.getPath())); + String schemaPath = System.getProperty("db.schema.path"); + if (null == schemaPath) + throw new IllegalArgumentException( + "System property db.schema.path must be defined"); + + FileReader fr = new FileReader(new File(schemaPath)); BufferedReader br = new BufferedReader(fr); while((s = br.readLine()) != null) diff --git a/dspace-api/src/test/resources/dspace-test.cfg b/dspace-api/src/test/resources/dspace-test.cfg deleted file mode 100644 index ae071dd996..0000000000 --- a/dspace-api/src/test/resources/dspace-test.cfg +++ /dev/null @@ -1,1789 +0,0 @@ -# -# DSpace Configuration -# -# NOTE: The DSpace Configuration File is separated into several sections: -# * General Configurations -# * JSPUI & XMLUI Configurations -# * JSPUI Specific Configurations -# * XMLUI Specific Configurations -# * OAI-PMH Specific Configurations -# * SWORD Specific Configurations -# * OAI Harvesting Configurations -# * SOLR Statistics Configurations -# -# Revision: $Revision: 4959 $ -# -# Date: $Date: 2010-05-15 06:22:06 +0100 (Sat, 15 May 2010) $ -# - - -#---------------------------------------------------------------# -#------------------GENERAL CONFIGURATIONS-----------------------# -#---------------------------------------------------------------# -# These configs are used by underlying DSpace API, and are # -# therefore applicable to all interfaces # -#---------------------------------------------------------------# -##### Basic information ###### - -# DSpace installation directory -dspace.dir = ./target/work - -# DSpace host name - should match base URL. Do not include port number -dspace.hostname = localhost - -# DSpace base host URL. Include port number etc. -dspace.baseUrl = http://localhost:8080 - -# DSpace base URL. Include port number etc., but NOT trailing slash -# Change to xmlui if you wish to use the xmlui as the default, or remove -# "/jspui" and set webapp of your choice as the "ROOT" webapp in -# the servlet engine. -dspace.url = ${dspace.baseUrl}/xmlui - - -# The base URL of the OAI webapp (do not include /request). -dspace.oai.url = ${dspace.baseUrl}/oai - -# Name of the site -dspace.name = DSpace at My University - -##### Database settings ##### - -# Database name ("oracle", or "postgres") -# We have to treat H2 as Oracle so the column names are converted to uppercase -db.name = oracle - -# URL for connecting to database -db.url = jdbc:h2:mem:test;MODE=Oracle - -# JDBC Driver -db.driver = org.h2.Driver - -# Database username and password -db.username = sa -db.password = sa - -# Schema name - if your database contains multiple schemas, you can avoid problems with -# retrieving the definitions of duplicate object names by specifying -# the schema name here that is used for DSpace by uncommenting the following entry -# db.schema = - -# Connection pool parameters - -# Maximum number of DB connections in pool -# from 30 to 30 -db.maxconnections = 30 - -# Maximum time to wait before giving up if all connections in pool are busy (milliseconds) -# from 5000 to 5000 -db.maxwait = 5000 - -# Maximum number of idle connections in pool (-1 = unlimited) -# from -1 to -1 -db.maxidle = -1 - -# Determine if prepared statement should be cached. (default is true) -db.statementpool = true - -# Specify a name for the connection pool (useful if you have multiple applications sharing Tomcat's dbcp) -# If not specified, defaults to 'dspacepool' -# db.poolname = dspacepool - -##### Email settings ###### - -# SMTP mail server -mail.server=localhost - -# SMTP mail server authentication username and password (if required) -# mail.server.username = myusername -# mail.server.password = mypassword - -# SMTP mail server alternate port (defaults to 25) -# mail.server.port = 25 - -# From address for mail -mail.from.address = dspace-noreply@myu.edu - -# Currently limited to one recipient! -feedback.recipient = dspace-help@myu.edu - -# General site administration (Webmaster) e-mail -mail.admin = dspace-help@myu.edu - -# Recipient for server errors and alerts -# alert.recipient = email-address-here - -# Recipient for new user registration emails -# registration.notify = email-address-here - -# Set the default mail character set. This may be over ridden by providing a line -# inside the email template "charset: ", otherwise this default is used. -#mail.charset = UTF8 - -# A comma separated list of hostnames that are allowed to refer browsers to email forms. -# Default behaviour is to accept referrals only from dspace.hostname -#mail.allowed.referrers = localhost - -# Pass extra settings to the Java mail library. Comma separated, equals sign between -# the key and the value. -#mail.extraproperties = mail.smtp.socketFactory.port=465, \ -# mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory, \ -# mail.smtp.socketFactory.fallback=false - -# An option is added to disable the mailserver. By default, this property is set to false -# By setting mail.server.disabled = true, DSpace will not send out emails. -# It will instead log the subject of the email which should have been sent -# This is especially useful for development and test environments where production data is used when testing functionality. -#mail.server.disabled = false - -# Default language for metadata values -default.language = en_US - - -##### File Storage ###### - -# Asset (bitstream) store number 0 (zero) -assetstore.dir = ${dspace.dir}/assetstore - -# Specify extra asset stores like this, counting from 1 upwards: -# assetstore.dir.1 = /second/assetstore -# assetstore.dir.2 = /third/assetstore - -# Specify the number of the store to use for new bitstreams with this property -# The default is 0 (zero) which corresponds to the 'assetstore.dir' above -# assetstore.incoming = 1 - - -##### SRB File Storage ##### - -# The same 'assetstore.incoming' property is used to support the use of SRB -# (Storage Resource Broker - see http://www.sdsc.edu/srb/) as an _optional_ -# replacement of or supplement to conventional file storage. DSpace will work -# with or without SRB and full backward compatibility is maintained. -# -# The 'assetstore.incoming' property is an integer that references where _new_ -# bitstreams will be stored. The default (say the starting reference) is zero. -# The value will be used to identify the storage where all new bitstreams will -# be stored until this number is changed. This number is stored in the -# Bitstream table (store_number column) in the DSpace database, so older -# bitstreams that may have been stored when 'asset.incoming' had a different -# value can be found. -# -# In the simple case in which DSpace uses local (or mounted) storage the -# number can refer to different directories (or partitions). This gives DSpace -# some level of scalability. The number links to another set of properties -# 'assetstore.dir', 'assetstore.dir.1' (remember zero is default), -# 'assetstore.dir.2', etc., where the values are directories. -# -# To support the use of SRB DSpace uses this same scheme but broadened to -# support: -# - using SRB instead of the local filesystem -# - using the local filesystem (native DSpace) -# - using a mix of SRB and local filesystem -# -# In this broadened use the 'asset.incoming' integer will refer one of the -# following storage locations -# - a local filesystem directory (native DSpace) -# - a set of SRB account parameters (host, port, zone, domain, username, -# password, home directory, and resource) -# -# Should the be any conflict, like '2' refering to a local directory and -# to a set of SRB parameters, the program will select the local directory. -# -# If SRB is chosen from the first install of DSpace, it is suggested that -# 'assetstore.dir' (no integer appended) be retained to reference a local -# directory (as above under File Storage) because build.xml uses this value -# to do a mkdir. In this case, 'assetstore.incoming' can be set to 1 (i.e. -# uncomment the line in File Storage above) and the 'assetstore.dir' will not -# be used. -# -# Here is an example set of SRB parameters: -# Assetstore 1 - SRB -#srb.host.1 = mysrbmcathost.myu.edu -#srb.port.1 = 5544 -#srb.mcatzone.1 = mysrbzone -#srb.mdasdomainname.1 = mysrbdomain -#srb.defaultstorageresource.1 = mydefaultsrbresource -#srb.username.1 = mysrbuser -#srb.password.1 = mysrbpassword -#srb.homedirectory.1 = /mysrbzone/home/mysrbuser.mysrbdomain -#srb.parentdir.1 = mysrbdspaceassetstore -# -# Assetstore n, n+1, ... -# Follow same pattern as for assetstores above (local or SRB) - - -##### Logging configuration ##### -# These settings are currently NOT used by the XMLUI. -# The XMLUI writes its logs to the '[dspace-xmlui]/WEB-INF/logs/' -# in the actual XMLUI web application. - -# Override default log4j configuration -# you may provide your own configuration here, existing -# alternatives are: -# log.init.config = ${dspace.dir}/config/log4j.xml -# log.init.config = ${dspace.dir}/config/log4j-console.properties -# log.init.config = ${dspace.dir}/config/log4j.properties - -# Where to put the logs (used in configuration only) -log.dir = ${dspace.dir}/log - - -##### Search settings ##### - -# Where to put search index files -search.dir = ${dspace.dir}/search - -# Higher values of search.max-clauses will enable prefix searches to work on -# large repositories -# search.max-clauses = 2048 - -# Which Lucene Analyzer implementation to use. If this is omitted or -# commented out, the standard DSpace analyzer (designed for English) -# is used by default. -# search.analyzer = org.dspace.search.DSAnalyzer - -# Chinese analyzer -# search.analyzer = org.apache.lucene.analysis.cn.ChineseAnalyzer - -# Boolean search operator to use, current supported values are OR and AND -# If this config item is missing or commented out, OR is used -# AND requires all search terms to be present -# OR requires one or more search terms to be present -search.operator = OR - - -##### Search indexing settings ##### - -# Maximum number of terms indexed for a single field in Lucene. -# Default is 10,000 words - often not enough for full-text indexing. -# If you change this, you'll need to re-index for the change -# to take effect on previously added items. -# -1 = unlimited (Integer.MAX_VALUE) -search.maxfieldlength = 10000 - - -##### Fields to Index for Search ##### - -# DC metadata elements.qualifiers to be indexed for search -# format: - search.index.[number] = [search field]:element.qualifier -# - * used as wildcard - -### changing these will change your search results, ### -### but will NOT automatically change your search displays ### - -search.index.1 = author:dc.contributor.* -search.index.2 = author:dc.creator.* -search.index.3 = title:dc.title.* -search.index.4 = keyword:dc.subject.* -search.index.5 = abstract:dc.description.abstract -search.index.6 = author:dc.description.statementofresponsibility -search.index.7 = series:dc.relation.ispartofseries -search.index.8 = abstract:dc.description.tableofcontents -search.index.9 = mime:dc.format.mimetype -search.index.10 = sponsor:dc.description.sponsorship -search.index.11 = identifier:dc.identifier.* -search.index.12 = language:dc.language.iso - - - -##### Handle settings ###### - -# Canonical Handle URL prefix -# -# By default, DSpace is configured to use http://hdl.handle.net/ -# as the canonical URL prefix when generating dc.identifier.uri -# during submission, and in the 'identifier' displayed in JSPUI -# item record pages. -# -# If you do not subscribe to CNRI's handle service, you can change this -# to match the persistent URL service you use, or you can force DSpace -# to use your site's URL, eg. -#handle.canonical.prefix = ${dspace.url}/handle/ -# -# Note that this will not alter dc.identifer.uri metadata for existing -# items (only for subsequent submissions), but it will alter the URL -# in JSPUI's 'identifier' message on item record pages for existing items. -# -# If omitted, the canonical URL prefix will be http://hdl.handle.net/ -handle.canonical.prefix = http://hdl.handle.net/ - -# CNRI Handle prefix -handle.prefix = 123456789 - -# Directory for installing Handle server files -handle.dir = ${dspace.dir}/handle-server - -##### Authorization system configuration - Delegate ADMIN ##### - -# COMMUNITY ADMIN configuration -# subcommunities and collections -#core.authorization.community-admin.create-subelement = true -#core.authorization.community-admin.delete-subelement = true -# his community -#core.authorization.community-admin.policies = true -#core.authorization.community-admin.admin-group = true -# collections in his community -#core.authorization.community-admin.collection.policies = true -#core.authorization.community-admin.collection.template-item = true -#core.authorization.community-admin.collection.submitters = true -#core.authorization.community-admin.collection.workflows = true -#core.authorization.community-admin.collection.admin-group = true -# item owned by collections in his community -#core.authorization.community-admin.item.delete = true -#core.authorization.community-admin.item.withdraw = true -#core.authorization.community-admin.item.reinstatiate = true -#core.authorization.community-admin.item.policies = true -# also bundle... -#core.authorization.community-admin.item.create-bitstream = true -#core.authorization.community-admin.item.delete-bitstream = true -#core.authorization.community-admin.item-admin.cc-license = true - -# COLLECTION ADMIN -#core.authorization.collection-admin.policies = true -#core.authorization.collection-admin.template-item = true -#core.authorization.collection-admin.submitters = true -#core.authorization.collection-admin.workflows = true -#core.authorization.collection-admin.admin-group = true -# item owned by his collection -#core.authorization.collection-admin.item.delete = true -#core.authorization.collection-admin.item.withdraw = true -#core.authorization.collection-admin.item.reinstatiate = true -#core.authorization.collection-admin.item.policies = true -# also bundle... -#core.authorization.collection-admin.item.create-bitstream = true -#core.authorization.collection-admin.item.delete-bitstream = true -#core.authorization.collection-admin.item-admin.cc-license = true - -# ITEM ADMIN -#core.authorization.item-admin.policies = true -# also bundle... -#core.authorization.item-admin.create-bitstream = true -#core.authorization.item-admin.delete-bitstream = true -#core.authorization.item-admin.cc-license = true - - -#### Restricted item visibilty settings ### -# By default RSS feeds, OAI-PMH and subscription emails will include ALL items -# regardless of permissions set on them. -# -# If you wish to only expose items through these channels where the ANONYMOUS -# user is granted READ permission, then set the following options to false -# -# Warning: In large repositories, setting harvest.includerestricted.oai to false may cause -# performance problems as all items will need to have their authorization permissions checked, -# but because DSpace has not implemented resumption tokens in ListIdentifiers, ALL items will -# need checking whenever a ListIdentifers request is made. -# -#harvest.includerestricted.rss = true -#harvest.includerestricted.oai = true -#harvest.includerestricted.subscription = true - - -#### Proxy Settings ###### -# uncomment and specify both properties if proxy server required -# proxy server for external http requests - use regular hostname without port number -#http.proxy.host = - -# port number of proxy server -#http.proxy.port = - - -#### Media Filter / Format Filter plugins (through PluginManager) #### -# Media/Format Filters help to full-text index content or -# perform automated format conversions - -#Names of the enabled MediaFilter or FormatFilter plugins -filter.plugins = PDF Text Extractor, HTML Text Extractor, \ - Word Text Extractor, JPEG Thumbnail -# [To enable Branded Preview]: remove last line above, and uncomment 2 lines below -# Word Text Extractor, JPEG Thumbnail, \ -# Branded Preview JPEG - -#Assign 'human-understandable' names to each filter -plugin.named.org.dspace.app.mediafilter.FormatFilter = \ - org.dspace.app.mediafilter.PDFFilter = PDF Text Extractor, \ - org.dspace.app.mediafilter.HTMLFilter = HTML Text Extractor, \ - org.dspace.app.mediafilter.WordFilter = Word Text Extractor, \ - org.dspace.app.mediafilter.JPEGFilter = JPEG Thumbnail, \ - org.dspace.app.mediafilter.BrandedPreviewJPEGFilter = Branded Preview JPEG - -#Configure each filter's input format(s) -filter.org.dspace.app.mediafilter.PDFFilter.inputFormats = Adobe PDF -filter.org.dspace.app.mediafilter.HTMLFilter.inputFormats = HTML, Text -filter.org.dspace.app.mediafilter.WordFilter.inputFormats = Microsoft Word -filter.org.dspace.app.mediafilter.JPEGFilter.inputFormats = BMP, GIF, JPEG, image/png -filter.org.dspace.app.mediafilter.BrandedPreviewJPEGFilter.inputFormats = BMP, GIF, JPEG, image/png - -#Custom settings for PDFFilter -# If true, all PDF extractions are written to temp files as they are indexed...this -# is slower, but helps ensure that PDFBox software DSpace uses doesn't eat up -# all your memory -#pdffilter.largepdfs = true -# If true, PDFs which still result in an Out of Memory error from PDFBox -# are skipped over...these problematic PDFs will never be indexed until -# memory usage can be decreased in the PDFBox software -#pdffilter.skiponmemoryexception = true - - -#### Crosswalk and Packager Plugin Settings #### - -# Configure table-driven MODS dissemination crosswalk -# (add lower-case name for OAI-PMH) -crosswalk.mods.properties.MODS = crosswalks/mods.properties -crosswalk.mods.properties.mods = crosswalks/mods.properties - -# Configure XSLT-driven submission crosswalk for MODS -crosswalk.submission.MODS.stylesheet= crosswalks/mods-submission.xsl - -# Configure the QDCCrosswalk dissemination plugin for Qualified DC -# (add lower-case name for OAI-PMH) -crosswalk.qdc.namespace.QDC.dc = http://purl.org/dc/elements/1.1/ -crosswalk.qdc.namespace.QDC.dcterms = http://purl.org/dc/terms/ -crosswalk.qdc.schemaLocation.QDC = \ - http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd \ - http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd -crosswalk.qdc.properties.QDC = crosswalks/QDC.properties - -crosswalk.qdc.namespace.qdc.dc = http://purl.org/dc/elements/1.1/ -crosswalk.qdc.namespace.qdc.dcterms = http://purl.org/dc/terms/ -crosswalk.qdc.schemaLocation.qdc = \ - http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd \ - http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd -crosswalk.qdc.properties.qdc = crosswalks/QDC.properties - -# METS ingester configuration: -# map of metadata type declared in mdWrap to a crosswalk plugin name: -mets.submission.crosswalk.DC = QDC - -# Option to save METS manifest in the item: (default is false) -mets.submission.preserveManifest = false - -# Option to make use of collection templates when using the METS ingester (default is false) -mets.submission.useCollectionTemplate = false - -# Crosswalk Plugins: -plugin.named.org.dspace.content.crosswalk.IngestionCrosswalk = \ - org.dspace.content.crosswalk.PREMISCrosswalk = PREMIS \ - org.dspace.content.crosswalk.OREIngestionCrosswalk = ore \ - org.dspace.content.crosswalk.NullIngestionCrosswalk = NIL \ - org.dspace.content.crosswalk.QDCCrosswalk = qdc \ - org.dspace.content.crosswalk.OAIDCIngestionCrosswalk = dc \ - org.dspace.content.crosswalk.DIMIngestionCrosswalk = dim - -plugin.selfnamed.org.dspace.content.crosswalk.IngestionCrosswalk = \ - org.dspace.content.crosswalk.XSLTIngestionCrosswalk - -plugin.named.org.dspace.content.crosswalk.DisseminationCrosswalk = \ - org.dspace.content.crosswalk.SimpleDCDisseminationCrosswalk = DC \ - org.dspace.content.crosswalk.SimpleDCDisseminationCrosswalk = dc \ - org.dspace.content.crosswalk.PREMISCrosswalk = PREMIS \ - org.dspace.content.crosswalk.METSDisseminationCrosswalk = METS \ - org.dspace.content.crosswalk.METSDisseminationCrosswalk = mets \ - org.dspace.content.crosswalk.OREDisseminationCrosswalk = ore \ - org.dspace.content.crosswalk.QDCCrosswalk = qdc \ - org.dspace.content.crosswalk.DIMDisseminationCrosswalk = dim - - -plugin.selfnamed.org.dspace.content.crosswalk.DisseminationCrosswalk = \ - org.dspace.content.crosswalk.MODSDisseminationCrosswalk , \ - org.dspace.content.crosswalk.XSLTDisseminationCrosswalk, \ - org.dspace.content.crosswalk.QDCCrosswalk, \ - org.dspace.content.crosswalk.XHTMLHeadDisseminationCrosswalk - -# Packager Plugins: - -plugin.named.org.dspace.content.packager.PackageDisseminator = \ - org.dspace.content.packager.DSpaceMETSDisseminator = METS - -plugin.named.org.dspace.content.packager.PackageIngester = \ - org.dspace.content.packager.PDFPackager = Adobe PDF, PDF, \ - org.dspace.content.packager.DSpaceMETSIngester = METS - -#### Event System Configuration #### - -# default synchronous dispatcher (same behavior as traditional DSpace) -event.dispatcher.default.class = org.dspace.event.BasicDispatcher -event.dispatcher.default.consumers = search, browse, eperson, harvester - -# The noindex dispatcher will not create search or browse indexs (usefull for batch item imports) -event.dispatcher.noindex.class = org.dspace.event.BasicDispatcher -event.dispatcher.noindex.consumers = eperson - -# consumer to maintain the search index -event.consumer.search.class = org.dspace.search.SearchConsumer -event.consumer.search.filters = Community|Collection|Item|Bundle+Add|Create|Modify|Modify_Metadata|Delete|Remove - -# consumer to maintain the browse index -event.consumer.browse.class = org.dspace.browse.BrowseConsumer -event.consumer.browse.filters = Community|Collection|Item|Bundle+Add|Create|Modify|Modify_Metadata|Delete|Remove - -# consumer related to EPerson changes -event.consumer.eperson.class = org.dspace.eperson.EPersonConsumer -event.consumer.eperson.filters = EPerson+Create - -# consumer to clean up harvesting data -event.consumer.harvester.class = org.dspace.harvest.HarvestConsumer -event.consumer.harvester.filters = Item+Delete - -# test consumer for debugging and monitoring -#event.consumer.test.class = org.dspace.event.TestConsumer -#event.consumer.test.filters = All+All - -# ...set to true to enable testConsumer messages to standard output -#testConsumer.verbose = true - -#### Embargo Settings #### -# DC metadata field to hold the user-supplied embargo terms -embargo.field.terms = SCHEMA.ELEMENT.QUALIFIER - -# DC metadata field to hold computed "lift date" of embargo -embargo.field.lift = SCHEMA.ELEMENT.QUALIFIER - -# string in terms field to indicate indefinite embargo -embargo.terms.open = forever - -# implementation of embargo setter plugin - replace with local implementation if applicable -plugin.single.org.dspace.embargo.EmbargoSetter = org.dspace.embargo.DefaultEmbargoSetter - -# implementation of embargo lifter plugin - - replace with local implementation if applicable -plugin.single.org.dspace.embargo.EmbargoLifter = org.dspace.embargo.DefaultEmbargoLifter - -#### Checksum Checker Settings #### -# Default dispatcher in case none specified -plugin.single.org.dspace.checker.BitstreamDispatcher=org.dspace.checker.SimpleDispatcher - -# check history retention -checker.retention.default=10y -checker.retention.CHECKSUM_MATCH=8w - - -### Item export and download settings ### -# The directory where the exports will be done and compressed -org.dspace.app.itemexport.work.dir = ${dspace.dir}/exports - -# The directory where the compressed files will reside and be read by the downloader -org.dspace.app.itemexport.download.dir = ${dspace.dir}/exports/download - -# The length of time in hours each archive should live for. When new archives are -# created this entry is used to delete old ones -org.dspace.app.itemexport.life.span.hours = 48 - -# The maximum size in Megabytes the export should be. This is enforced before the -# compression. Each bitstream's size in each item being exported is added up, if their -# cummulative sizes are more than this entry the export is not kicked off -org.dspace.app.itemexport.max.size = 200 - - -# For backwards compatability, the subscription emails by default include any modified items -# uncomment the following entry for only new items to be emailed -# eperson.subscription.onlynew = true - - -#---------------------------------------------------------------# -#--------------JSPUI & XMLUI CONFIGURATIONS---------------------# -#---------------------------------------------------------------# -# These configs are used by both JSP and XML User Interfaces, # -# except where explicitly stated otherwise. # -#---------------------------------------------------------------# - -##### Hide Item Metadata Fields ##### -# Fields named here are hidden in the following places UNLESS the -# logged-in user is an Administrator: -# 1. XMLUI metadata XML view, and Item splash pages (long and short views). -# 2. JSPUI Item splash pages -# 3. OAI-PMH server, "oai_dc" format. -# (NOTE: Other formats are _not_ affected.) -# To designate a field as hidden, add a property here in the form: -# metadata.hide.SCHEMA.ELEMENT.QUALIFIER = true -# -# This default configuration hides the dc.description.provenance field, -# since that usually contains email addresses which ought to be kept -# private and is mainly of interest to administrators: -metadata.hide.dc.description.provenance = true - -##### Settings for Submission Process ##### - -# Should the submit UI block submissions marked as theses? -webui.submit.blocktheses = false - -# Whether or not we REQUIRE that a file be uploaded -# during the 'Upload' step in the submission process -# Defaults to true; If set to 'false', submitter has option to skip upload -#webui.submit.upload.required = true - -#### Creative Commons settings ###### -# Are Creative Commons licenses used in submission? -webui.submit.enable-cc = false - -# Should a jurisdiction be used? If so, which one? -# See http://creativecommons.org/international/ for a list of possible codes -# (e.g. nz = New Zealand, uk = England and Wales, jp = Japan) -#webui.submit.cc-jurisdiction = nz - - -##### Settings for Thumbnail creation ##### - -# whether to display thumbnails on browse and search results pages (1.2+) -# If you have customised the Browse columnlist, then you must also -# include a 'thumbnail' column in your configuration (1.5+) -# (This configuration is not used by XMLUI. To show thumbnails in the -# XMLUI, you just need to create a theme which displays them) -webui.browse.thumbnail.show = false - -# max dimensions of the browse/search thumbs. Must be <= thumbnail.maxwidth -# and thumbnail.maxheight. Only need to be set if required to be smaller than -# dimension of thumbnails generated by mediafilter (1.2+) -#webui.browse.thumbnail.maxheight = 80 -#webui.browse.thumbnail.maxwidth = 80 - -# whether to display the thumb against each bitstream (1.2+) -# (This configuration is not used by XMLUI. To show thumbnails in the -# XMLUI, you just need to create a theme which displays them) -webui.item.thumbnail.show = true - -# where should clicking on a thumbnail from browse/search take the user -# Only values currently supported are "item" and "bitstream" -#webui.browse.thumbnail.linkbehaviour = item - -# maximum width and height of generated thumbnails -thumbnail.maxwidth 80 -thumbnail.maxheight 80 - - -#### Settings for Item Preview #### - -webui.preview.enabled = false -# max dimensions of the preview image -webui.preview.maxwidth = 600 -webui.preview.maxheight = 600 -# the brand text -webui.preview.brand = My Institution Name -# an abbreviated form of the above text, this will be used -# when the preview image cannot fit the normal text -webui.preview.brand.abbrev = MyOrg -# the height of the brand -webui.preview.brand.height = 20 -# font settings for the brand text -webui.preview.brand.font = SansSerif -webui.preview.brand.fontpoint = 12 -#webui.preview.dc = rights - - -##### Settings for content count/strength information #### - -# whether to display collection and community strengths -# (This configuration is not used by XMLUI. To show strengths in the -# XMLUI, you just need to create a theme which displays them) -webui.strengths.show = false - -# if showing the strengths, should they be counted in real time or -# fetched from cache? NOTE: To improve scaling/performance, -# the XMLUI only makes strengths available to themes if they are CACHED! -# -# Counts fetched in real time will perform an actual count of the -# database contents every time a page with this feature is requested, -# which will not scale. If the below setting is to use the cache, you -# must run the following command periodically to update the count: -# -# [dspace]/bin/itemcounter -# -# The default is to count in real time -# -webui.strengths.cache = false - - -###### Browse Configuration ###### -# -# Use this to configure the browse indices. Each entry will receive a link in the -# navigation. Each entry can be configured in one of two ways. The first is: -# -# webui.browse.index. = : metadata : \ -# .[.|.*] : \ -# (date | title | text) : (asc | desc) -# -# This form represent a unique index of metadata values from the item. -# -# (date | title | text | ) refers to the datatype of the field. -# date: the index type will be treated as a date object -# title: the index type will be treated like a title, which will include -# a link to the item page -# text: the index type will be treated as plain text. If single mode is -# specified then this will link to the full mode list -# : any other datatype will be treated the same as 'text', although -# it will apply any custom ordering normalisation configured below -# -# The final part of the configuration is optional, and specifies the default ordering -# for the index - whether it is ASCending (the default, and best for text indexes), or -# DESCending (useful for dates - ie. most recent submissions) -# -# NOTE: the text to render the index will use the parameter to select -# the message key from Messages.properties using a key of the form: -# -# browse.type.metadata. -# -# The other form is for indexes of the items themselves, ie. each entry will be displayed -# according to the configuration of by webui.itemlist.columns: -# -# webui.browse.index. = : item : : (asc | desc) -# -# sort option name: this is the sorting to be applied to the display. It must match the -# name given to one of the webui.itemlist.sort-option entries given below. -# -# The final part of the configuration is optional, and specifies the default ordering -# for the index - whether it is ASCending (the default, and best for text indexes), or -# DESCending (useful for dates - ie. most recent submissions) - -# NOTE: the text to render the index will use the parameter to select -# the message key from Messages.properties (for JSPUI) using a key of the form: -# -# browse.type.item. -# -# Note: the index numbers must start from 1 and increment continuously by 1 -# thereafter. Deviation from this will cause an error during install or -# configuration update -# -# For compatibility with previous versions: -# -webui.browse.index.1 = dateissued:item:dateissued -webui.browse.index.2 = author:metadata:dc.contributor.*,dc.creator:text -webui.browse.index.3 = title:item:title -webui.browse.index.4 = subject:metadata:dc.subject.*:text -#webui.browse.index.5 = dateaccessioned:item:dateaccessioned - -## example of authority-controlled browse category - see authority control config -#webui.browse.index.5 = lcAuthor:metadataAuthority:dc.contributor.author:authority - -# Set the options for what can be sorted by -# -# Sort options will be available when browsing a list of items (i.e. an 'item' browse, -# or search results). You can define an arbitrary number of fields -# to sort on, irrespective of which fields you display using webui.itemlist.columns -# -# the format is: -# -# webui.itemlist.sort-option. =