-
Notifications
You must be signed in to change notification settings - Fork 2
Feature: Make bag names conform to format of bag names in UAL preservation workflow #119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
zoidy
merged 36 commits into
main
from
117-make-bag-names-conform-to-format-to-format-of-bag-names-in-ual-preservation-workflow
Jul 16, 2025
Merged
Feature: Make bag names conform to format of bag names in UAL preservation workflow #119
zoidy
merged 36 commits into
main
from
117-make-bag-names-conform-to-format-to-format-of-bag-names-in-ual-preservation-workflow
Jul 16, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…-{first author lastname}-{hash}_bag_YYYYMMDD
5 tasks
zoidy
requested changes
Jul 15, 2025
zoidy
previously approved these changes
Jul 16, 2025
zoidy
approved these changes
Jul 16, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR renames bags from the format
[article_id]_[version]_[first_depositor_full_name]_[metadata_hash]toazu_[article_id]-[version]-[first_author_lastname]-[metadata_hash]_bagXofY_[YYYYMMDD]. The effects of the new name format, such as metadatahashextraction,item id,version,nameandbag_countextraction, have been addressed with enhanced decomposition of a bag name into its constituent components. The PR also adds more tags to the bag info and provides more metadata in the Metadata class for easy extraction and assignment to the bag info tags.See #117
Documentation Update
Implementation Notes
Changes were made to
Article.py: Where the article bags are named with respect to the new format.bag_dateandbag_counthave been included in the bag name of an article.Collection.py: Where the collection bags are named with respect to the new format.bag_dateandbag_counthave been included in the bag name of a collection.metadata.py: Where the bag info tags are set. More tags (bag_count,last_name,bag_date) have been added to available tags in the Metadata classbag.py: Where bags are created using the workflow.Utils.py: Where all utility functions are housed. Special functions to extract different components of a bag name have been added.default.example.toml:Bag-Counttag has been added to bag info, and a placeholder for last name from the Metadata class..env.sample.ini:bag_name_prefixfield was added to the sample configuration file.READMEs: ReBACH and Bagger READMEs were updated.