{"id":21496494,"url":"https://github.com/mlibrary/traject_umich_format","last_synced_at":"2026-01-03T21:45:28.825Z","repository":{"id":11118494,"uuid":"13476997","full_name":"mlibrary/traject_umich_format","owner":"mlibrary","description":"Extract format/type information from MARC records, as used at the University of Michigan's University Library","archived":false,"fork":false,"pushed_at":"2022-05-24T14:10:37.000Z","size":1817,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-01T19:02:33.904Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"mIRC Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlibrary.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-10T16:43:29.000Z","updated_at":"2022-05-24T14:10:41.000Z","dependencies_parsed_at":"2022-09-10T16:42:01.142Z","dependency_job_id":null,"html_url":"https://github.com/mlibrary/traject_umich_format","commit_stats":null,"previous_names":["billdueber/traject_umich_format"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Ftraject_umich_format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Ftraject_umich_format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Ftraject_umich_format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlibrary%2Ftraject_umich_format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlibrary","download_url":"https://codeload.github.com/mlibrary/traject_umich_format/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244031154,"owners_count":20386534,"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-23T16:16:42.977Z","updated_at":"2026-01-03T21:45:28.783Z","avatar_url":"https://github.com/mlibrary.png","language":"mIRC Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# traject_umich_format\n* [Homepage](https://github.com/billdueber/traject_umich_format#readme)\n* [Issues](https://github.com/billdueber/traject_umich_format/issues)\n* [Documentation](http://rubydoc.info/gems/traject_umich_format/frames)\n* [Email](mailto:bill at dueber.com)\n\n\nOpnionated macros to provide bibliographic format/types based on information in the\nMARC bibliographic record, in the manner of the University of Michigan\nUniversity Library.\n\nWe at UMich use ths to populate facets in our discovery layer.\n\n\n*Note* This code is designed to be used with the [traject](http://github.com/jrochkind/traject)\nindexing system, and relies on it to run.\n\n\n## Description\n\nLooks at the values in a MARC record to determine a format and set of types for the object represented by the record.\n\n### Bib Formats\n\nEach record is assigned exactly one format. Raw, untranslated codes are provided in brackets.\n\n* Book [BK]\n* Data File [CF]\n* Visual Material [VM]\n* Music [MU]\n* Map [MP]\n* Serial [SE]\n* Mixed Materials [MX]\n* No match [XX]\n\n### Bib Types\n\nAdditionally, each record may have one or more of the following more specific types associated with it.\n\n* Archive [MV]\n* Audio  (music) [RM]\n* Audio  (spoken word) [RS]\n* Audio [RU]\n* Audio CD [RC]\n* Audio LP [RL]\n* Biography [BI]\n* CDROM [CR]\n* Conference [XC]\n* Dictionaries [DI]\n* Directories [DR]\n* Encyclopedias [EN]\n* Journal [AJ]\n* Manuscript [MW]\n* Maps-Atlas [MN]\n* Microform [WM]\n* Motion Picture [VL]\n* Music [MU]\n* Musical Score [MS]\n* Newspaper [AN]\n* Photographs \u0026 Pictorial Works [PP]\n* Serial [SX]\n* Software [CS]\n* Statistics [XS]\n* Unknown  [XX]\n* Video  (Blu-ray) [VB]\n* Video  (DVD) [VD]\n* Video  (VHS) [VH]\n* Video Games [VG]\n\n\n## A sample traject configuration file\n\n```ruby\nrequire 'traject'\nrequire 'traject/umich_format'\nextend Traject::UMichFormat::Macros\n\nto_field 'id', extract_marc('001', :first=\u003etrue)\nto_field 'bib_format', umich_format\nto_field 'bib_types', umich_types\nto_field 'bib_formats_and_types', umich_format_and_types\n\n```\n\n\n## Install\n\n    $ gem install traject_umich_format\n\n## Copyright\n\nCopyright (c) 2013 Bill Dueber\n\nSee [LICENSE.txt](LICENSE.txt) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlibrary%2Ftraject_umich_format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlibrary%2Ftraject_umich_format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlibrary%2Ftraject_umich_format/lists"}