Changeset 5488
- Timestamp:
- 07/28/14 07:51:52 (10 years ago)
- Location:
- VirtualCollectionRegistry/trunk/VirtualCollectionRegistry
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/README.txt
r5459 r5488 1 1 CLARIN Virtual Collection Registry 2 2 ---------------------------------- 3 4 * DATABASE CONNECTION * 3 5 4 6 The connection to the database is configured using JNDI using the … … 24 26 Customize $dbuser, $dbpass and $dbname to match your local settings. 25 27 NOTE: currently only MySQL is supported. 28 29 * PID PROVIDER * 26 30 27 31 You need to choose, which persistent identifier provider you want to use. … … 55 59 override="false"/> 56 60 61 * AUTHENTICATION * 62 63 The application has two alternative authentication configuration represented by two 64 versions of the web.xml file. The default web.xml assumes Tomcat UserDatabaseRealm, 65 which is useful for testing purposes. 66 57 67 To shibbolize this application, the following steps are required: 58 68 … … 80 90 block is required to make the virtual collection form submit service work 81 91 with POSTs (current versions of SHHAA do not support this). 92 93 * OAI PROVIDER * 94 95 Collection display name: 96 97 Add the following to the Tomcat context.xml file to set a custom collection display name 98 (MdCollectionDisplayName header element) for the CMDI representations provided by the 99 built-in OAI provider: 100 101 <Parameter name="eu.clarin.cmdi.virtualcollectionregistry.collectiondisplayname 102 value="CLARIN Virtual Collection Registry" /> 103 104 Change the value of the 'value' attribute if desired. If this parameter is not set, 105 the default value "CLARIN Virtual Collection Registry" will be used as a collection name. -
VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/service/impl/VirtualCollectionCMDICreatorImpl.java
r5463 r5488 32 32 import org.slf4j.Logger; 33 33 import org.slf4j.LoggerFactory; 34 import org.springframework.beans.factory.annotation.Value; 34 35 import org.springframework.stereotype.Service; 35 36 … … 47 48 private final static Logger logger = LoggerFactory.getLogger(VirtualCollectionCMDICreatorImpl.class); 48 49 private final DatatypeFactory dataTypeFactory; 50 51 // Collection display name value read from context.xml with a fallback value inserted by Spring 52 @Value("${eu.clarin.cmdi.virtualcollectionregistry.collectiondisplayname:CLARIN Virtual Collection Registry}") 53 private String collectionDisplayName; 49 54 50 55 public VirtualCollectionCMDICreatorImpl() throws DatatypeConfigurationException { … … 93 98 header.getMdCreator().add(vc.getOwner().getName()); 94 99 header.setMdSelfLink(vc.getPersistentIdentifier().getURI()); 100 if (collectionDisplayName != null) { 101 header.setMdCollectionDisplayName(collectionDisplayName); 102 } 95 103 return header; 96 104 }
Note: See TracChangeset
for help on using the changeset viewer.