Add names of lecturers to detail page for courses
This commit is contained in:
@@ -40,4 +40,13 @@ class TissCrawler
|
||||
$host
|
||||
end
|
||||
|
||||
def self.get_oid_name(item)
|
||||
api = '/api/person/v22/oid/'
|
||||
url = $host + api + item
|
||||
puts(url)
|
||||
|
||||
response = HTTParty.get(url)
|
||||
response.parsed_response['first_name'] + ' ' + response.parsed_response['last_name']
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user