module Odlifier
Constants
- VERSION
Public Class Methods
content_licenses()
click to toggle source
List a load of content license IDs
# File lib/odlifier.rb, line 48 def self.content_licenses [ 'cc-by', 'cc-by-sa', 'cc-zero', 'cc-nc', 'fal', 'odc-pddl', 'odc-by', 'odc-odbl', 'other-pd', 'uk-ogl', ] end
translate(license_id, default = nil)
click to toggle source
Translate license IDs into English titles
# File lib/odlifier.rb, line 64 def self.translate(license_id, default = nil) { 'cc-by' => 'Creative Commons Attribution', 'cc-by-sa' => 'Creative Commons Attribution Share-Alike', 'cc-zero' => 'Creative Commons CCZero', 'cc-nc' => 'Creative Commons Non-Commercial', 'fal' => 'Free Art License', 'odc-pddl' => 'Open Data Commons Public Domain Dedication and Licence', 'odc-by' => 'Open Data Commons Attribution License', 'odc-odbl' => 'Open Data Commons Open Database License', 'other-pd' => 'Public domain', 'uk-ogl' => 'UK Open Government Licence', }[license_id] || default end