-
Notifications
You must be signed in to change notification settings - Fork 493
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 2960-download-manager-help-msg
- Loading branch information
Showing
48 changed files
with
143 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,7 +169,9 @@ After the script has finished, you should be able to log into Dataverse with the | |
Configure Your Development Environment for Publishing | ||
----------------------------------------------------- | ||
|
||
In order to publish datasets, you must configure Dataverse with a username and password for a persistent ID provider. The installer configures your development environment to use DOIs (rather than Handles) for persistent IDs with DataCite's test server at https://mds.test.datacite.org as the provider. In order to publish datasets with this provider, you must email [email protected] and ask for a test account. Once you have your DataCite username and password, you must add them as JVM options (``doi.username`` and ``doi.password``) as described under "Persistent Identifiers and Publishing Datasets" in the :doc:`/installation/config` section of the Installation Guide. | ||
Run the following command: | ||
|
||
``curl http://localhost:8080/api/admin/settings/:DoiProvider -X PUT -d FAKE`` | ||
|
||
Next Steps | ||
---------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
src/main/java/edu/harvard/iq/dataverse/pidproviders/FakePidProviderServiceBean.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
package edu.harvard.iq.dataverse.pidproviders; | ||
|
||
import edu.harvard.iq.dataverse.AbstractGlobalIdServiceBean; | ||
import edu.harvard.iq.dataverse.DvObject; | ||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
import javax.ejb.Stateless; | ||
|
||
@Stateless | ||
public class FakePidProviderServiceBean extends AbstractGlobalIdServiceBean { | ||
|
||
@Override | ||
public boolean alreadyExists(DvObject dvo) throws Exception { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean registerWhenPublished() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public List<String> getProviderInformation() { | ||
ArrayList<String> providerInfo = new ArrayList<>(); | ||
String providerName = "FAKE"; | ||
String providerLink = "http://dataverse.org"; | ||
providerInfo.add(providerName); | ||
providerInfo.add(providerLink); | ||
return providerInfo; | ||
} | ||
|
||
@Override | ||
public String createIdentifier(DvObject dvo) throws Throwable { | ||
return "fakeIdentifier"; | ||
} | ||
|
||
@Override | ||
public Map<String, String> getIdentifierMetadata(DvObject dvo) { | ||
Map<String, String> map = new HashMap<>(); | ||
return map; | ||
} | ||
|
||
@Override | ||
public String modifyIdentifierTargetURL(DvObject dvo) throws Exception { | ||
return "fakeModifyIdentifierTargetURL"; | ||
} | ||
|
||
@Override | ||
public void deleteIdentifier(DvObject dvo) throws Exception { | ||
// no-op | ||
} | ||
|
||
@Override | ||
public Map<String, String> lookupMetadataFromIdentifier(String protocol, String authority, String identifier) { | ||
Map<String, String> map = new HashMap<>(); | ||
return map; | ||
} | ||
|
||
@Override | ||
public boolean publicizeIdentifier(DvObject studyIn) { | ||
return true; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.