blob: e74e19f4f67b679c1ed801499d3c39e2935316c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
from chocula.common import KbartLoader
class ClockssKbartLoader(KbartLoader):
source_slug = "clockss"
def file_path(self) -> str:
return self.config.clockss.filepath
class LockssKbartLoader(KbartLoader):
source_slug = "lockss"
def file_path(self) -> str:
return self.config.lockss.filepath
class PorticoKbartLoader(KbartLoader):
source_slug = "portico"
def file_path(self) -> str:
return self.config.portico.filepath
class JstorKbartLoader(KbartLoader):
source_slug = "jstor"
def file_path(self) -> str:
return self.config.jstor.filepath
ALL_CHOCULA_KBART_CLASSES = [
ClockssKbartLoader,
LockssKbartLoader,
PorticoKbartLoader,
JstorKbartLoader,
]
|