Class: Ieee

Inherits:
RelevantSite show all
Defined in:
app/models/ieee.rb

Instance Method Summary (collapse)

Methods inherited from RelevantSite

is_relevant?

Instance Method Details

- (Object) get_services(link, request)



3
4
5
6
7
8
9
10
11
12
13
# File 'app/models/ieee.rb', line 3

def get_services(link, request)
  link_title = link[:title]
  link_title.gsub!(/\<\/?b\>/,'')    

  unless request.referent.["atitle"] and link[:title].downcase.strip == request.referent.["atitle"].downcase
    return
  end
  services = {}
  services[:fulltext] = {:source=>'IEEE', :source_id=>CGI.parse(URI.parse(link[:url]).query)["arnumber"][0], :display_text =>"IEEE Xplore"}                 
  return services
end