{"id":23473091,"url":"https://github.com/caltechlibrary/refoliate","last_synced_at":"2025-07-13T12:03:15.485Z","repository":{"id":41356282,"uuid":"509236678","full_name":"caltechlibrary/refoliate","owner":"caltechlibrary","description":"REstore FOLIo sAved insTancEs","archived":false,"fork":false,"pushed_at":"2022-07-08T01:22:02.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-13T05:50:04.986Z","etag":null,"topics":["folio","library-automation","library-management"],"latest_commit_sha":null,"homepage":"","language":"Python","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/caltechlibrary.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":"codemeta.json","zenodo":null}},"created_at":"2022-06-30T21:21:16.000Z","updated_at":"2022-07-07T23:35:56.000Z","dependencies_parsed_at":"2022-07-13T00:31:12.863Z","dependency_job_id":null,"html_url":"https://github.com/caltechlibrary/refoliate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"caltechlibrary/py-cli-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caltechlibrary%2Frefoliate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caltechlibrary%2Frefoliate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caltechlibrary%2Frefoliate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caltechlibrary%2Frefoliate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caltechlibrary","download_url":"https://codeload.github.com/caltechlibrary/refoliate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670501,"owners_count":21142901,"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":["folio","library-automation","library-management"],"created_at":"2024-12-24T17:15:11.026Z","updated_at":"2025-04-13T05:50:09.322Z","avatar_url":"https://github.com/caltechlibrary.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Refoliate\n\nREstore FOLIo sAved insTancEs.\n\n[![License](https://img.shields.io/badge/License-BSD--like-lightgrey.svg?style=flat-square)](https://github.com/caltechlibrary/refoliate/LICENSE)\n[![Latest release](https://img.shields.io/github/v/release/caltechlibrary/refoliate.svg?style=flat-square\u0026color=b44e88)](https://github.com/caltechlibrary/refoliate/releases)\n\n\n## Table of contents\n\n* [Introduction](#introduction)\n* [Installation](#installation)\n* [Usage](#usage)\n* [Known issues and limitations](#known-issues-and-limitations)\n* [Getting help](#getting-help)\n* [Contributing](#contributing)\n* [License](#license)\n* [Acknowledgments](#authors-and-acknowledgments)\n\n\n## Introduction\n\nThis is a command-line program that will take a folder of JSON files (assumed to be instance, holdings and item records previously downloaded from FOLIO) and (re)creates them in FOLIO via the API.\n\n\n## Usage\n\n```\nREstore FOLIo sAved insTancEs.\n\nThis program takes a directory of JSON files previously downloaded from FOLIO\nby a program such as Foliage.  The files are assumed to represent instance,\nholdings, and item records that have been deleted from FOLIO. This program\nproceeds to put the records back into FOLIO as-is, using the same UUID's\nand all other fields.\n\nIf given the argument --continue, then errors involving the inability to\ncreate a record (e.g., due to the record already existing in FOLIO) will make\nthis program continue execution; otherwise, by default, this program will\nstop at the first error.\n\nIf given the -@ argument (/@ on Windows), this program will output a detailed\ntrace of what it is doing.  The debug trace will be sent to the given\ndestination, which can be '-' to indicate console output, or a file path to\nsend the output to a file.\n\nIf given the -V option (/V on Windows), this program will print the version\nand other information, and exit without doing anything else.\n\nCommand-line arguments summary\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\npositional arguments:\n  source_dir           directory containing JSON files\n\noptions:\n  -h, --help           show this help message and exit\n  -c, --continue       continue, don't stop, if an error occurs\n  -V, --version        print version info and exit\n  -@ OUT, --debug OUT  log debug output to \"OUT\" (\"-\" is console)\n```\n\n\n## Known issues and limitations\n\n... Forthcoming ...\n\n\n## Getting help\n\n... Forthcoming ...\n\n\n## Contributing\n\n... Forthcoming ...\n\n\n## License\n\nSoftware produced by the Caltech Library is Copyright © 2022 California Institute of Technology.  This software is freely distributed under a BSD-style license.  Please see the [LICENSE](LICENSE) file for more information.\n\n\n## Acknowledgments\n\nThis work was funded by the California Institute of Technology Library.\n\n\u003cdiv align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://www.caltech.edu\"\u003e\n    \u003cimg width=\"100\" height=\"100\" src=\"https://raw.githubusercontent.com/caltechlibrary/refoliate/main/.graphics/caltech-round.png\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaltechlibrary%2Frefoliate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaltechlibrary%2Frefoliate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaltechlibrary%2Frefoliate/lists"}