{"id":25368464,"url":"https://github.com/discoverygarden/book_batch_rename_script","last_synced_at":"2025-10-13T15:33:29.567Z","repository":{"id":7515794,"uuid":"8866243","full_name":"discoverygarden/book_batch_rename_script","owner":"discoverygarden","description":"Renames a folder full of TIFF/XML/MRC files and moves them into the correct folders to prepare for ingest using the Islandora Book Batch module","archived":false,"fork":false,"pushed_at":"2013-12-10T17:21:45.000Z","size":162,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":26,"default_branch":"7.x","last_synced_at":"2025-06-15T06:48:30.650Z","etag":null,"topics":["ingest","shell","tool"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/discoverygarden.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-18T23:04:27.000Z","updated_at":"2017-11-08T01:19:22.000Z","dependencies_parsed_at":"2022-09-23T22:22:36.988Z","dependency_job_id":null,"html_url":"https://github.com/discoverygarden/book_batch_rename_script","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/discoverygarden/book_batch_rename_script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/discoverygarden%2Fbook_batch_rename_script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/discoverygarden%2Fbook_batch_rename_script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/discoverygarden%2Fbook_batch_rename_script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/discoverygarden%2Fbook_batch_rename_script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/discoverygarden","download_url":"https://codeload.github.com/discoverygarden/book_batch_rename_script/tar.gz/refs/heads/7.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/discoverygarden%2Fbook_batch_rename_script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015930,"owners_count":26085777,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"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":["ingest","shell","tool"],"created_at":"2025-02-15T00:38:06.849Z","updated_at":"2025-10-13T15:33:29.542Z","avatar_url":"https://github.com/discoverygarden.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"CONTENTS OF THIS FILE\n---------------------\n\n * summary\n * requirements\n * installation\n * troubleshooting\n\nSUMMARY\n-------\n\nRenames a folder full of TIFF/XML/MRC files and moves them into the correct\nfolders to prepare for ingest using the Islandora Book Batch module\n\nThe batch renaming script needs the following setup to ensure it functions\ncorrectly:\n\n - A folder must be created containing all of the TIFF files for a single book.\n - Optionally, an XML or MRC metadata file containing MODS, DC or MARCXML\n   metadata may be placed in that same folder.\n - The TIFF files in the folder must be sequentially named, page to page, in\n   alphabetical order, not numerical order. This means, importantly, that the\n   files must be listed, for example, as 001.tif, 002.tif, ... 009.tif, 010.tif\n   and NOT as 1.tif, 2.tif, ... 9.tif, 10.tif. In the former case, pages would\n   be sorted correctly, whereas in the latter, pages would be sorted as 1, 10,\n   2, ... 9\n - A copy of rename_script.bat or rename_script.sh, depending on your operating\n   system (see requirements below), must be pasted into the folder and then run\n\nThe script will ask for the name of the book. This will become the folder name\nthat all the pages will be placed in\n\nAfter the batch script creates the folder, the folder itself will need to be\nmoved to a .zip file. Each subsequent book created with the batch renaming\nscript may be placed in the same .zip file.\n\nREQUIREMENTS\n------------\nrename_script.bat runs in Windows, and will work without any configuration on\nWindows NT or higher.\n\nrename_script.sh runs in Mac OS X and Linux; you will need to give it\nexecutable permissions (for example, by running chmod +x on it). It needs to\nbe run through the standard terminal emulator; because of this, simply double-\nclicking on it may not work.\n\nIngesting batches of books into Islandora requires:\n - islandora_batch\n - islandora_book_batch\n - islandora_importer (if uploading from within Islandora as a .zip)\n\nINSTALLATION\n------------\nPlace the file that matches your operating system in the folder full of book\nfiles, and then run it from there. Only do one book at a time; do not place\nmultiple books in the same folder.\n\nTROUBLESHOOTING\n---------------\nThe most common reason for the script failing is that filenames in your folder\naren't correct. Again, check that they are in alphabetical order, NOT\nnumerical. It is best to place the numbering just before the extension. Also,\nbe sure to check that filenames are consistent outside of your numbering.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiscoverygarden%2Fbook_batch_rename_script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiscoverygarden%2Fbook_batch_rename_script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiscoverygarden%2Fbook_batch_rename_script/lists"}