Skip to content

Commit fff760d

Browse files
laurenbarkerchrisseto
authored andcommitted
[SHARE-488][Feature] Add SSOAR harvester (#566)
* Add SSOAR harvester * Add type map for SSOAR * Update to store favicon in database
1 parent b51283b commit fff760d

7 files changed

Lines changed: 78 additions & 0 deletions

File tree

project/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@
192192
'providers.gov.scitech',
193193
'providers.gov.usgs',
194194
'providers.info.spdataverse',
195+
'providers.info.ssoar',
195196
'providers.io.osf',
196197
'providers.io.osf.preprints',
197198
'providers.io.osf.registrations',

providers/info/ssoar/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
default_app_config = 'providers.info.ssoar.apps.AppConfig'

providers/info/ssoar/apps.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
from share.provider import OAIProviderAppConfig
2+
3+
4+
class AppConfig(OAIProviderAppConfig):
5+
name = 'providers.info.ssoar'
6+
version = '0.0.1'
7+
title = 'ssoar'
8+
long_title = 'Social Science Open Access Repository'
9+
home_page = 'http://www.ssoar.info/en/home.html'
10+
url = 'http://www.ssoar.info/OAIHandler/request'
11+
# http://www.ssoar.info/ssoar/search-filter?field=documentType
12+
type_map = {
13+
'journal article': 'article',
14+
'festschrift': 'publication',
15+
'final report': 'report',
16+
'company report': 'report',
17+
'research report': 'report',
18+
'expert report': 'report',
19+
'abridged report': 'report',
20+
'literature report': 'report',
21+
'annual report': 'report',
22+
'interim report': 'report',
23+
'report from institution/organization': 'report',
24+
'm.a. thesis': 'thesis',
25+
'master thesis': 'thesis',
26+
'phd thesis': 'thesis',
27+
'conference paper': 'conferencepaper',
28+
'working paper': 'workingpaper',
29+
'other': 'creativework'
30+
}

providers/info/ssoar/favicon.ico

534 Bytes
Binary file not shown.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.9.7 on 2017-01-18 19:29
3+
from __future__ import unicode_literals
4+
5+
from django.db import migrations
6+
import share.robot
7+
8+
9+
class Migration(migrations.Migration):
10+
11+
dependencies = [
12+
('share', '0001_initial'),
13+
('djcelery', '0001_initial'),
14+
]
15+
16+
operations = [
17+
migrations.RunPython(
18+
code=share.robot.RobotUserMigration('info.ssoar'),
19+
),
20+
migrations.RunPython(
21+
code=share.robot.RobotOauthTokenMigration('info.ssoar'),
22+
),
23+
migrations.RunPython(
24+
code=share.robot.RobotScheduleMigration('info.ssoar'),
25+
),
26+
]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.9.7 on 2017-02-09 16:47
3+
from __future__ import unicode_literals
4+
5+
from django.db import migrations
6+
import share.robot
7+
8+
9+
class Migration(migrations.Migration):
10+
11+
dependencies = [
12+
('info.ssoar', '0001_initial'),
13+
('share', '0018_store_favicons'),
14+
]
15+
16+
operations = [
17+
migrations.RunPython(
18+
code=share.robot.RobotFaviconMigration('info.ssoar'),
19+
),
20+
]

providers/info/ssoar/migrations/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)