mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-23 18:03:11 +00:00
[DS-602] Remove the unnecessary sword-client prefix from the properties in sword-client.cfg.
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@6649 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -56,7 +56,7 @@ public class ServiceDocumentHelper {
|
|||||||
|
|
||||||
public static String[] getCommonFileTypes(ServiceDocument serviceDoc, String location)
|
public static String[] getCommonFileTypes(ServiceDocument serviceDoc, String location)
|
||||||
{
|
{
|
||||||
String FTsString = ConfigurationManager.getProperty("sword-client", "sword-client.file-types");
|
String FTsString = ConfigurationManager.getProperty("sword-client", "file-types");
|
||||||
String[] clientFTsArray = FTsString.split(",");
|
String[] clientFTsArray = FTsString.split(",");
|
||||||
List<String> clientFTs = Arrays.asList(clientFTsArray);
|
List<String> clientFTs = Arrays.asList(clientFTsArray);
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ public class ServiceDocumentHelper {
|
|||||||
|
|
||||||
public static String[] getCommonPackageFormats(ServiceDocument serviceDoc, String location)
|
public static String[] getCommonPackageFormats(ServiceDocument serviceDoc, String location)
|
||||||
{
|
{
|
||||||
String PFsString = ConfigurationManager.getProperty("sword-client", "sword-client.package-formats");
|
String PFsString = ConfigurationManager.getProperty("sword-client", "package-formats");
|
||||||
String[] clientPFsArray = PFsString.split(",");
|
String[] clientPFsArray = PFsString.split(",");
|
||||||
List<String> clientPFs = Arrays.asList(clientPFsArray);
|
List<String> clientPFs = Arrays.asList(clientPFsArray);
|
||||||
|
|
||||||
|
@@ -95,7 +95,7 @@ public class SelectTargetTransformer extends AbstractDSpaceTransformer
|
|||||||
List targetDetails = main.addList("target_details",List.TYPE_FORM);
|
List targetDetails = main.addList("target_details",List.TYPE_FORM);
|
||||||
|
|
||||||
Select source = targetDetails.addItem().addSelect("url");
|
Select source = targetDetails.addItem().addSelect("url");
|
||||||
String targetsString = ConfigurationManager.getProperty("sword-client", "sword-client.targets");
|
String targetsString = ConfigurationManager.getProperty("sword-client", "targets");
|
||||||
String[] targets = targetsString.split(",");
|
String[] targets = targetsString.split(",");
|
||||||
for (String target : targets)
|
for (String target : targets)
|
||||||
{
|
{
|
||||||
|
@@ -1,15 +1,15 @@
|
|||||||
# List of remote Sword servers. Used to build the drop-down list of selectable Sword targets.
|
# List of remote Sword servers. Used to build the drop-down list of selectable Sword targets.
|
||||||
sword-client.targets = http://localhost:8080/sword/servicedocument, \
|
targets = http://localhost:8080/sword/servicedocument, \
|
||||||
http://client.swordapp.org/client/servicedocument, \
|
http://client.swordapp.org/client/servicedocument, \
|
||||||
http://dspace.swordapp.org/sword/servicedocument, \
|
http://dspace.swordapp.org/sword/servicedocument, \
|
||||||
http://sword.eprints.org/sword-app/servicedocument, \
|
http://sword.eprints.org/sword-app/servicedocument, \
|
||||||
http://sword.intralibrary.com/IntraLibrary-Deposit/service, \
|
http://sword.intralibrary.com/IntraLibrary-Deposit/service, \
|
||||||
http://fedora.swordapp.org/sword-fedora/servicedocument
|
http://fedora.swordapp.org/sword-fedora/servicedocument
|
||||||
|
|
||||||
# List of file types from which the user can select. If a type is not supported by the remote server
|
# List of file types from which the user can select. If a type is not supported by the remote server
|
||||||
# it will not appear in the drop-down list.
|
# it will not appear in the drop-down list.
|
||||||
sword-client.file-types = application/zip
|
file-types = application/zip
|
||||||
|
|
||||||
# List of package formats from which the user can select. If a format is not supported by the remote server
|
# List of package formats from which the user can select. If a format is not supported by the remote server
|
||||||
# it will not appear in the drop-down list.
|
# it will not appear in the drop-down list.
|
||||||
sword-client.package-formats = http://purl.org/net/sword-types/METSDSpaceSIP
|
package-formats = http://purl.org/net/sword-types/METSDSpaceSIP
|
Reference in New Issue
Block a user