blob: 6c1f58001af5730aa189093970399e3b845d3cd1 (
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
42
43
|
from typing import List, Any
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,
]
|