app/models/tramea.rb
# NOTE: To render a license logo, you'll need to use the url, but I think
# that's fine.
To render a license logo, you'll need to use the url, but I think
that's fine.
To render a license logo you ' ll need to use the url but I think that ' s fine .
def license_from_data_object(data)
      {
        "license" => data.license.source_url,
        "rights" => data.rights_statement_for_display,
        "rights_holder" => data.rights_holder_for_display,
        "ratings" => data.rating_summary.
          merge("weighted_average" => data.average_rating),
        "credits" => [
          {
            "name" => "BioImages - the Virtual Fieldguide (UK)",
            "role" => "Supplier",
            "url" => "http://eol.org/content_partners/246"
          },
          {"name" => "Ian Smith", "role" => "Compiler"}
        ]
      }
    end
def license_from_data_object ( data ) { "license" => data . license . source_url , "rights" => data . rights_statement_for_display , "rights_holder" => data . rights_holder_for_display , "ratings" => data . rating_summary . merge ( "weighted_average" => data . average_rating ) , "credits" => [ { "name" => "BioImages - the Virtual Fieldguide (UK)" , "role" => "Supplier" , "url" => "http://eol.org/content_partners/246" } , { "name" => "Ian Smith" , "role" => "Compiler" } ] } end
NOTE: To render a license logo, you'll need to use the url, but I think
that's fine.
NOTE : To render a license logo you ' ll need to use the url but I think that ' s fine .
data
<not_specific>