{"id":18517733,"url":"https://github.com/projectblacklight/blacklight-oembed","last_synced_at":"2025-10-31T22:30:21.347Z","repository":{"id":23461443,"uuid":"26825512","full_name":"projectblacklight/blacklight-oembed","owner":"projectblacklight","description":"OEmbed media views for Blacklight ","archived":false,"fork":false,"pushed_at":"2022-12-17T00:29:49.000Z","size":95,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":18,"default_branch":"main","last_synced_at":"2024-03-25T22:23:44.427Z","etag":null,"topics":["access","gem"],"latest_commit_sha":null,"homepage":"","language":"XSLT","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/projectblacklight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-18T19:14:08.000Z","updated_at":"2024-03-25T22:23:44.428Z","dependencies_parsed_at":"2023-01-13T23:20:24.462Z","dependency_job_id":null,"html_url":"https://github.com/projectblacklight/blacklight-oembed","commit_stats":null,"previous_names":["sul-dlss/blacklight-oembed"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectblacklight%2Fblacklight-oembed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectblacklight%2Fblacklight-oembed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectblacklight%2Fblacklight-oembed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectblacklight%2Fblacklight-oembed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/projectblacklight","download_url":"https://codeload.github.com/projectblacklight/blacklight-oembed/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238772122,"owners_count":19527879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["access","gem"],"created_at":"2024-11-06T17:08:20.004Z","updated_at":"2025-10-31T22:30:21.251Z","avatar_url":"https://github.com/projectblacklight.png","language":"XSLT","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blacklight::Oembed\n[![Gem Version](https://badge.fury.io/rb/blacklight-oembed.svg)](http://badge.fury.io/rb/blacklight-oembed)\n\nblacklight-oembed adds [OEmbed](http://oembed.info) displays for Blacklight's search results views.\n\n## Installation\n\nAdd this line to your Blacklight application's Gemfile:\n\n    gem 'blacklight-oembed'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install blacklight-oembed\n\n## Usage\n\nRun the blacklight-oembed generator:\n\n    $ rails g blacklight_oembed:install\n\nThe generator will provide reasonable defaults and inject oembed configuration into your `CatalogController`.\n\nIn your solr index, you need a field containing the URL to an oembeddable object. `blacklight-oembed` will use that URL to render the oembed viewer on your `catalog#show` page. The name of the field can be configured in your Blacklight configuration:\n\n```\n# app/controllers/catalog_controller\nclass CatalogController\n...\n    configure_blacklight do |config|\n        # these are generated into your configuration by the install generator.\n        config.show.oembed_field = :oembed_url_ssm\n        config.show.partials.insert(1, :oembed)\n    end\n...\nend\n```\n\nIn an initializer, you may want to register additional oembed providers for the [`ruby-oembed`](https://github.com/judofyr/ruby-oembed), e.g.:\n\n```\n# config/initializers/oembed_providers\nrequire 'oembed'\n\nOEmbed::providers.register_all\n\npurl_provider = OEmbed::Provider.new(\"http://purl.stanford.edu/embed.{format}?\u0026hide_title=true\")\npurl_provider \u003c\u003c \"http://purl.stanford.edu/*\"\nOEmbed::Providers.register(purl_provider)\n```\n\n\nYou need a solr field containing a URL to an embeddable object.\n\n### Additional configurations\nBlacklight OEmbed allows for more configurations. In an initializer, you can add additional params that will be passed through to an OEmbed provider.\n\n```\n# config/initializers/blacklight_oembed.rb\nBlacklight::Oembed::Engine.config.additional_params = [:canvas_index]\n```\n\n## Contributing\n\n1. Fork it ( http://github.com/sul-dlss/blacklight-oembed/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectblacklight%2Fblacklight-oembed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojectblacklight%2Fblacklight-oembed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectblacklight%2Fblacklight-oembed/lists"}