[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:
Robin Taylor
2011-09-07 13:48:09 +00:00
parent 076dfd04ad
commit 221552b64a
3 changed files with 11 additions and 11 deletions

View File

@@ -56,7 +56,7 @@ public class ServiceDocumentHelper {
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(",");
List<String> clientFTs = Arrays.asList(clientFTsArray);
@@ -77,7 +77,7 @@ public class ServiceDocumentHelper {
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(",");
List<String> clientPFs = Arrays.asList(clientPFsArray);

View File

@@ -95,7 +95,7 @@ public class SelectTargetTransformer extends AbstractDSpaceTransformer
List targetDetails = main.addList("target_details",List.TYPE_FORM);
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(",");
for (String target : targets)
{

View File

@@ -1,5 +1,5 @@
# 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://dspace.swordapp.org/sword/servicedocument, \
http://sword.eprints.org/sword-app/servicedocument, \
@@ -8,8 +8,8 @@ sword-client.targets = http://localhost:8080/sword/servicedocument, \
# 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.
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
# 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