Module: ODDB::View::Admin::PatentMethods

Included in:
PatentForm, PatentInnerComposite
Defined in:
src/view/admin/patent.rb

Instance Method Summary (collapse)

Instance Method Details



13
14
15
16
17
18
19
# File 'src/view/admin/patent.rb', line 13

def base_patent_link(model, session=@session)
  if(pn = model.base_patent)
    link = HtmlGrid::Link.new(:base_patent_detail, model, @session, self)
    link.href = @lookandfeel.lookup(:swissreg_patent_url, pn)
    link
  end
end


20
21
22
23
24
25
26
# File 'src/view/admin/patent.rb', line 20

def patent_link(model, session=@session)
  if(cn = model.certificate_number)
    link = HtmlGrid::Link.new(:patent_detail, model, @session, self)
    link.href = @lookandfeel.lookup(:swissreg_url, cn)
    link
  end
end