{"id":21620871,"url":"https://github.com/miku/marc21","last_synced_at":"2026-03-11T04:32:20.896Z","repository":{"id":18618320,"uuid":"21823950","full_name":"miku/marc21","owner":"miku","description":"A MARC21 library for Go.","archived":false,"fork":false,"pushed_at":"2019-08-18T11:15:36.000Z","size":642,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T10:17:15.910Z","etag":null,"topics":["code4lib","marc"],"latest_commit_sha":null,"homepage":"","language":"Go","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/miku.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-14T15:05:32.000Z","updated_at":"2024-05-08T02:26:32.000Z","dependencies_parsed_at":"2022-09-25T01:12:39.668Z","dependency_job_id":null,"html_url":"https://github.com/miku/marc21","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/miku/marc21","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miku%2Fmarc21","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miku%2Fmarc21/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miku%2Fmarc21/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miku%2Fmarc21/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miku","download_url":"https://codeload.github.com/miku/marc21/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miku%2Fmarc21/sbom","scorecard":{"id":646833,"data":{"date":"2025-08-11","repo":{"name":"github.com/miku/marc21","commit":"607b683c0f81f049ac68c1f8712b1d9fa4cea7c0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.0.1-e3881fde7 not signed: https://api.github.com/repos/miku/marc21/releases/18886890","Warn: release artifact v0.0.1-e3881fde7 does not have provenance: https://api.github.com/repos/miku/marc21/releases/18886890"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T12:21:41.191Z","repository_id":18618320,"created_at":"2025-08-21T12:21:41.191Z","updated_at":"2025-08-21T12:21:41.191Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30370798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["code4lib","marc"],"created_at":"2024-11-24T23:13:08.289Z","updated_at":"2026-03-11T04:32:20.868Z","avatar_url":"https://github.com/miku.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"marc21\n======\n\nA Go [MARC21](https://www.loc.gov/marc/bibliographic/) implementation.\n\nThis repository started as a fork of\n[gitorious.org/marc21-go/marc21](https://gitorious.org/marc21-go/marc21), but\nis - as of June 2017 - the new home of the MARC21 Go library.\n\nAs of August 2019, we are working on a revised implementation, as there are some edge cases the current implementation cannot handle.\n\nUsage\n-----\n\n```go\nfile, _ := os.Open(\"somedata.mrc\")\nrecord, _ := marc21.ReadRecord(file)\n_ = record.WriteTo(os.Stdout)\n```\n\nMore examples\n-------------\n\nA [simple example](https://github.com/miku/marc21/blob/master/examples/simple.go).\n\n```go\npackage main\n\nimport (\n\t\"io\"\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/miku/marc21\"\n)\n\nfunc main() {\n\tfor {\n\t\tr, err := marc21.ReadRecord(os.Stdin)\n\t\tif err == io.EOF {\n\t\t\tbreak\n\t\t}\n\t\tif err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t\tif _, err := r.WriteTo(os.Stdout); err != nil {\n\t\t\tlog.Fatal(err)\n\t\t}\n\t}\n}\n```\n\n```xml\n$ cat fixtures/sandburg.mrc | go run examples/simple.go | xmllint --format -\n\u003c?xml version=\"1.0\"?\u003e\n\u003ccollection\u003e\n  \u003crecord\u003e\n    \u003cleader\u003e01142cam  2200301 a 4500\u003c/leader\u003e\n    \u003ccontrolfield tag=\"001\"\u003e   92005291 \u003c/controlfield\u003e\n    \u003ccontrolfield tag=\"003\"\u003eDLC\u003c/controlfield\u003e\n    \u003ccontrolfield tag=\"005\"\u003e19930521155141.9\u003c/controlfield\u003e\n    \u003ccontrolfield tag=\"008\"\u003e920219s1993    caua   j      000 0 eng  \u003c/controlfield\u003e\n    \u003cdatafield tag=\"010\" ind1=\" \" ind2=\" \"\u003e\n      \u003csubfield code=\"a\"\u003e   92005291 \u003c/subfield\u003e\n    \u003c/datafield\u003e\n    \u003cdatafield tag=\"020\" ind1=\" \" ind2=\" \"\u003e\n      \u003csubfield code=\"a\"\u003e0152038655 :\u003c/subfield\u003e\n      \u003csubfield code=\"c\"\u003e$15.95\u003c/subfield\u003e\n    \u003c/datafield\u003e\n    \u003cdatafield tag=\"040\" ind1=\" \" ind2=\" \"\u003e\n      \u003csubfield code=\"a\"\u003eDLC\u003c/subfield\u003e\n      \u003csubfield code=\"c\"\u003eDLC\u003c/subfield\u003e\n      \u003csubfield code=\"d\"\u003eDLC\u003c/subfield\u003e\n    \u003c/datafield\u003e\n    \u003cdatafield tag=\"042\" ind1=\" \" ind2=\" \"\u003e\n      \u003csubfield code=\"a\"\u003elcac\u003c/subfield\u003e\n    \u003c/datafield\u003e\n    \u003cdatafield tag=\"050\" ind1=\"0\" ind2=\"0\"\u003e\n      \u003csubfield code=\"a\"\u003ePS3537.A618\u003c/subfield\u003e\n      \u003csubfield code=\"b\"\u003eA88 1993\u003c/subfield\u003e\n    \u003c/datafield\u003e\n    \u003cdatafield tag=\"082\" ind1=\"0\" ind2=\"0\"\u003e\n      \u003csubfield code=\"a\"\u003e811/.52\u003c/subfield\u003e\n      \u003csubfield code=\"2\"\u003e20\u003c/subfield\u003e\n    \u003c/datafield\u003e\n    \u003cdatafield tag=\"100\" ind1=\"1\" ind2=\" \"\u003e\n      \u003csubfield code=\"a\"\u003eSandburg, Carl,\u003c/subfield\u003e\n      \u003csubfield code=\"d\"\u003e1878-1967.\u003c/subfield\u003e\n    \u003c/datafield\u003e\n    \u003cdatafield tag=\"245\" ind1=\"1\" ind2=\"0\"\u003e\n      \u003csubfield code=\"a\"\u003eArithmetic /\u003c/subfield\u003e\n      \u003csubfield code=\"c\"\u003eCarl Sandburg ; illustrated as an anamorphic adventure by Ted Rand.\u003c/subfield\u003e\n    \u003c/datafield\u003e\n    \u003cdatafield tag=\"250\" ind1=\" \" ind2=\" \"\u003e\n      \u003csubfield code=\"a\"\u003e1st ed.\u003c/subfield\u003e\n    \u003c/datafield\u003e\n    \u003cdatafield tag=\"260\" ind1=\" \" ind2=\" \"\u003e\n      \u003csubfield code=\"a\"\u003eSan Diego :\u003c/subfield\u003e\n      \u003csubfield code=\"b\"\u003eHarcourt Brace Jovanovich,\u003c/subfield\u003e\n      \u003csubfield code=\"c\"\u003ec1993.\u003c/subfield\u003e\n    \u003c/datafield\u003e\n    \u003cdatafield tag=\"300\" ind1=\" \" ind2=\" \"\u003e\n      \u003csubfield code=\"a\"\u003e1 v. (unpaged) :\u003c/subfield\u003e\n      \u003csubfield code=\"b\"\u003eill. (some col.) ;\u003c/subfield\u003e\n      \u003csubfield code=\"c\"\u003e26 cm.\u003c/subfield\u003e\n    \u003c/datafield\u003e\n    \u003cdatafield tag=\"500\" ind1=\" \" ind2=\" \"\u003e\n      \u003csubfield code=\"a\"\u003eOne Mylar sheet included in pocket.\u003c/subfield\u003e\n    \u003c/datafield\u003e\n    \u003cdatafield tag=\"520\" ind1=\" \" ind2=\" \"\u003e\n      \u003csubfield code=\"a\"\u003eA poem about numbers and their characteristics ... \u003c/subfield\u003e\n    \u003c/datafield\u003e\n    \u003cdatafield tag=\"650\" ind1=\" \" ind2=\"0\"\u003e\n      \u003csubfield code=\"a\"\u003eArithmetic\u003c/subfield\u003e\n      \u003csubfield code=\"x\"\u003eJuvenile poetry.\u003c/subfield\u003e\n    \u003c/datafield\u003e\n    \u003cdatafield tag=\"650\" ind1=\" \" ind2=\"0\"\u003e\n      \u003csubfield code=\"a\"\u003eChildren's poetry, American.\u003c/subfield\u003e\n    \u003c/datafield\u003e\n    \u003cdatafield tag=\"650\" ind1=\" \" ind2=\"1\"\u003e\n      \u003csubfield code=\"a\"\u003eArithmetic\u003c/subfield\u003e\n      \u003csubfield code=\"x\"\u003ePoetry.\u003c/subfield\u003e\n    \u003c/datafield\u003e\n    \u003cdatafield tag=\"650\" ind1=\" \" ind2=\"1\"\u003e\n      \u003csubfield code=\"a\"\u003eAmerican poetry.\u003c/subfield\u003e\n    \u003c/datafield\u003e\n    \u003cdatafield tag=\"650\" ind1=\" \" ind2=\"1\"\u003e\n      \u003csubfield code=\"a\"\u003eVisual perception.\u003c/subfield\u003e\n    \u003c/datafield\u003e\n    \u003cdatafield tag=\"700\" ind1=\"1\" ind2=\" \"\u003e\n      \u003csubfield code=\"a\"\u003eRand, Ted,\u003c/subfield\u003e\n      \u003csubfield code=\"e\"\u003eill.\u003c/subfield\u003e\n    \u003c/datafield\u003e\n  \u003c/record\u003e\n\u003c/collection\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiku%2Fmarc21","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiku%2Fmarc21","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiku%2Fmarc21/lists"}