-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* new mapfile for sciencespo in dc * changed identifier, language and other stuff in fmi mapfile, adjusted eudatcore reader * changes for identifier
- Loading branch information
Showing
3 changed files
with
69 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from .base import Community | ||
from ..service_types import SchemaType, ServiceType | ||
|
||
|
||
class SciencesPoDublinCore(Community): | ||
NAME = 'sciencespodc' | ||
IDENTIFIER = NAME | ||
URL = 'https://data.sciencespo.fr/oai' | ||
SCHEMA = SchemaType.DublinCore | ||
SERVICE_TYPE = ServiceType.OAI | ||
OAI_METADATA_PREFIX = 'oai_dc' | ||
OAI_SET = None | ||
# PRODUCTIVE = True | ||
# DATE = '2021-10-20' | ||
|
||
def update(self, doc): | ||
doc.discipline = self.discipline(doc, 'Social Sciences') | ||
if not doc.publication_year: | ||
doc.publication_year = self.find('header.datestamp') |
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