External links
GBIFSite
dataclass
¶
Bases: Site
Site that provides links to species and occurrence pages associated with the given record.
Source code in ckanext/nhm/lib/external_links.py
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | |
Phenome10kSite
dataclass
¶
Bases: Site
Site which uses the GBIF API and Phenome10k API to find associated 3D data on Phenome10k.
Source code in ckanext/nhm/lib/external_links.py
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | |
RankedTemplateSite
dataclass
¶
Bases: Site
A site based on a templated URL filled in with the taxonomy ranks available in the record.
Source code in ckanext/nhm/lib/external_links.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
Site
dataclass
¶
Bases: ABC
An external site we can link to from a specimen record page.
Source code in ckanext/nhm/lib/external_links.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | |
get_links(record)
abstractmethod
¶
Returns a list of Links from the passed record.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
record
|
dict
|
the record dict |
required |
Source code in ckanext/nhm/lib/external_links.py
28 29 30 31 32 33 34 35 | |
get_sites(record)
¶
Given a record, returns a list of sites that may be able to provide relevant links.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
record
|
dict
|
a record dict |
required |
Source code in ckanext/nhm/lib/external_links.py
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 | |