{"id":18517742,"url":"https://github.com/projectblacklight/blacklight-marc","last_synced_at":"2025-08-20T01:31:23.317Z","repository":{"id":655566,"uuid":"12875094","full_name":"projectblacklight/blacklight-marc","owner":"projectblacklight","description":"MARC enhancements for Blacklight","archived":false,"fork":false,"pushed_at":"2024-03-20T13:30:22.000Z","size":3464,"stargazers_count":19,"open_issues_count":19,"forks_count":25,"subscribers_count":21,"default_branch":"main","last_synced_at":"2024-03-25T22:23:44.425Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-09-16T18:30:29.000Z","updated_at":"2024-06-19T11:14:50.878Z","dependencies_parsed_at":"2024-03-08T16:24:50.389Z","dependency_job_id":"d2ddf796-33bd-4b7d-b6a8-f47fe549bac6","html_url":"https://github.com/projectblacklight/blacklight-marc","commit_stats":{"total_commits":161,"total_committers":22,"mean_commits":7.318181818181818,"dds":0.6832298136645962,"last_synced_commit":"a463221702e103193016f596edfba5b57b27a867"},"previous_names":["projectblacklight/blacklight_marc"],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectblacklight%2Fblacklight-marc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectblacklight%2Fblacklight-marc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectblacklight%2Fblacklight-marc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectblacklight%2Fblacklight-marc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/projectblacklight","download_url":"https://codeload.github.com/projectblacklight/blacklight-marc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230382858,"owners_count":18216854,"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":[],"created_at":"2024-11-06T17:08:21.020Z","updated_at":"2024-12-19T05:07:24.864Z","avatar_url":"https://github.com/projectblacklight.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Build Status](https://github.com/projectblacklight/blacklight-marc/actions/workflows/ruby.yml/badge.svg?branch=main)\n\n# Blacklight::Marc\n\nMARC-specific enhancements for [Blacklight](https://github.com/projectblacklight/blacklight)\n\n## Features\n* Rake task `solr:marc:index` to import .mrc files using Traject and app/models/marc_indexer\n* \"Librarian View\" at `catalog/:id/librarian_view`\n* Export records to refworks and endnote\n* Blacklight::Solr::Document mixins for exporting and transforming MARC data from a stored Solr field\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'blacklight-marc'\n\nAnd then execute:\n\n    $ bundle\n\nAfter running the blacklight generator, run the blacklight_marc generator:\n\n    $ rails generate blacklight:marc:install\n\n\n## How does it work?\nThis generator injects an include into CatalogController (parent class of BookmarksController):\n\n```ruby\ninclude Blacklight::Marc::Catalog\n```\n\nand the following code is generated into SolrDocument:\n\n```ruby\nuse_extension( Blacklight::Marc::DocumentExtension) do |document|\n  document.key?( :marc_display  )\nend\n```\n\nThis means, the extension will be applied on the instance if the backing hash\nhas a field called `marc_display`.\n\n\n## Indexing\nThe generator will create a model called MarcIndexer. This model can be customized by modifying\nthe field configurations in its initializer as a Traject 2 indexer; new indexing behaviors can\nbe added to it via mixins or inline methods. Two example mixins are provided:\n```ruby\nMarcIndexer\n  # you would add one or both of the mixins below\n  include Blacklight::Marc::Indexer::Formats\n  include Blacklight::Marc::Indexer::Dewey\n  def initialize\n    # and define fields as normal with the mixed-in methods\n    to_field 'format', get_format\n    to_field 'dewey100', dewey_facets(base: :hundreds)\n    to_field 'dewey010', dewey_facets(base: :tens)\n    to_field 'dewey_text', dewey_text\n  end\nend\n```\n\n## Documentation, Information and Support\n\n* [Project Homepage](http://projectblacklight.org)\n* [Developer Documentation](https://github.com/projectblacklight/blacklight/wiki)\n* [Quickstart Guide](https://github.com/projectblacklight/blacklight/wiki/Quickstart)\n\n## Contributing\n\n1. Fork it\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-marc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojectblacklight%2Fblacklight-marc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectblacklight%2Fblacklight-marc/lists"}