Skip to content

Commit b168fbc

Browse files
committed
Fix: oai_base -> api_endpoint
1 parent de9bcde commit b168fbc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/epos/plugin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ def __init__(self, item_id, oai_base=None, lang="en", config=None, name="epos"):
139139
)
140140

141141
@staticmethod
142-
def get_ids(oai_base, pattern_to_query=""):
143-
url = oai_base + "/resources/search?facets=false&q=" + pattern_to_query
142+
def get_ids(api_endpoint, pattern_to_query=""):
143+
url = api_endpoint + "/resources/search?facets=false&q=" + pattern_to_query
144144
response_payload = ut.make_http_request(url=url)
145145
results = response_payload.get("results", [])
146146
return [
@@ -529,7 +529,7 @@ def rda_f4_01m(self):
529529
else:
530530
msg = (
531531
"Could not gather metadata from endpoint: %s. Metadata cannot be harvested and indexed."
532-
% self.oai_base
532+
% self.api_endpoint
533533
)
534534
points = 0
535535

@@ -847,7 +847,7 @@ def rda_a1_04m(self, return_protocol=False):
847847
"""
848848
points = 0
849849

850-
protocol = ut.get_protocol_scheme(self.oai_base)
850+
protocol = ut.get_protocol_scheme(self.api_endpoint)
851851
if protocol in self.terms_access_protocols:
852852
points = 100
853853
msg = "Found a standarised protocol to access the metadata record: " + str(

0 commit comments

Comments
 (0)