This repository has been archived by the owner on Nov 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
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 #17 from birkland/issue-16
Add Harvard policy
- Loading branch information
Showing
8 changed files
with
192 additions
and
19 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"$schema": "https://oa-pass.github.io/pass-policy-service/schemas/policy_config_1.0.json", | ||
"policy-rules": [ | ||
{ | ||
"description": "Must deposit to one of the repositories indicated by primary funder", | ||
"policy-id": "${submission.grants.primaryFunder.policy}", | ||
"type": "funder", | ||
"repositories": [ | ||
{ | ||
"repository-id": "${policy.repositories}" | ||
} | ||
] | ||
}, | ||
{ | ||
"description": "Must deposit to one of the repositories indicated by direct funder", | ||
"policy-id": "${submission.grants.directFunder.policy}", | ||
"type": "funder", | ||
"repositories": [ | ||
{ | ||
"repository-id": "${policy.repositories}" | ||
} | ||
] | ||
}, | ||
{ | ||
"description": "Faculty members must deposit into DASH", | ||
"policy-id": "/policies/f9/b6/01/25/f9b60125-662d-4e03-a7b0-eec0df2b50de", | ||
"type": "institution", | ||
"conditions": [ | ||
{ | ||
"endsWith": { | ||
"@harvard.edu": "${header.Ajp_eppn}" | ||
} | ||
}, | ||
{ | ||
"contains": { | ||
"FACULTY": "${header.Ajp_affiliation}" | ||
} | ||
} | ||
], | ||
"repositories": [ | ||
{ | ||
"repository-id": "/repositories/93/c5/ff/37/93c5ff37-ca2b-4652-a2af-3b6794ff8790" | ||
} | ||
] | ||
}, | ||
{ | ||
"description": "Non-faculty members may optionally deposit into DASH", | ||
"policy-id": "/policies/f9/b6/01/25/f9b60125-662d-4e03-a7b0-eec0df2b50de", | ||
"type": "institution", | ||
"conditions": [ | ||
{ | ||
"endsWith": { | ||
"@harvard.edu": "${header.Ajp_eppn}" | ||
} | ||
}, | ||
{ | ||
"noneOf": [ | ||
{ | ||
"contains": { | ||
"FACULTY": "${header.Ajp_Affiliation}" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"repositories": [ | ||
{ | ||
"repository-id": "/repositories/93/c5/ff/37/93c5ff37-ca2b-4652-a2af-3b6794ff8790", | ||
"selected": true | ||
}, | ||
{ | ||
"repository-id": "*" | ||
} | ||
] | ||
} | ||
] | ||
} |
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