Skip to content

Commit

Permalink
🧹 [i777] - Collection metadata clean up (#815)
Browse files Browse the repository at this point in the history
Issue:
- #777

- Adds department property to CollectionResource
- Adds a locale label for department.

# TODO: 
- [x] update submodule

# Acceptance Criteria

- [x] Rights statement should not be a required field for Collections
- [x] Add Department, School or Faculty property to Collection
- [x] In general, the Collection form's metadata and required fields
should match what is seen in
[Prod](https://adl.b2.adventistdigitallibrary.org/dashboard/collections/new?locale=en&collection_type_id=1)


![image](https://github.com/user-attachments/assets/216e1433-aead-43ec-a5f0-5c87cf11283c)


![image](https://github.com/user-attachments/assets/67bf2adb-a294-42e2-be31-1fc0913c5e9a)
  • Loading branch information
ShanaLMoore authored Sep 19, 2024
2 parents 6200e4c + d526475 commit 1fefde0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/locales/hyrax.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1130,6 +1130,7 @@ en:
labels:
collection:
size: Size
department: Department, Faculty, or School
total_items: Total items
collection_type:
allow_multiple_membership: MULTIPLE MEMBERSHIP
Expand Down
9 changes: 9 additions & 0 deletions config/metadata/collection_resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ attributes:
- date_issued_tesim
- date_issued_sim
predicate: http://purl.org/dc/terms/issued
department:
type: string
multiple: true
form:
primary: false
index_keys:
- department_tesim
- department_sim
predicate: http://schema.org/department
doi:
type: string
multiple: true
Expand Down

0 comments on commit 1fefde0

Please sign in to comment.