forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from mlibrary/issue-working20
so that ACM wont get doi when depositing with swordv2
- Loading branch information
Showing
2 changed files
with
32 additions
and
2 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 |
---|---|---|
|
@@ -172,9 +172,31 @@ public WorkspaceItem create(Context context, Collection collection, UUID uuid, b | |
|
||
itemService.update(context, item); | ||
|
||
boolean noDoi = context.getNoDoiStatus(); | ||
|
||
EPerson ep = item.getSubmitter(); | ||
|
||
String email = ep.getEmail(); | ||
|
||
log.info("DOI: the submitter email ==> " + email); | ||
|
||
//String nodoi_email = config.getProperty("nodoi.acmemail"); | ||
|
||
String nodoi_email = DSpaceServicesFactory.getInstance().getConfigurationService().getProperty("nodoi.email"); | ||
|
||
//String nodoi_email = "[email protected]"; | ||
|
||
|
||
log.info("DOI: acm email = " + nodoi_email); | ||
|
||
if ( email.equals(nodoi_email) ) | ||
{ | ||
log.info("DOI: no doi creation, this is a special case for ACM"); | ||
|
||
context.setNoDoiStatus (true); | ||
noDoi= true; | ||
} | ||
|
||
boolean noDoi = context.getNoDoiStatus(); | ||
// Put this here just for safety, but don't think it affects anything from my testing (UM Change) | ||
log.info("DOI: trying to create a DOI for the initial page"); | ||
if ( !noDoi ) { | ||
|
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