change_the_subject 0.3.2 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +12 -4
- data/config/change_the_subject.yml +4 -1
- data/lib/change_the_subject/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 840263d3d71e3f44176d9fab63d94d009383ff41d9bf35e3a59e014e3dac1e96
|
4
|
+
data.tar.gz: 5d621a18099b9da1ba0f176591b322c165695dd837fba0ab12ecb17cf58eabb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4075dce7dc3b7c11ad76ccdb126ab0548e34e02fd8655725e2f8d63dffd98162bcdf5db018bdbe238b5d8b2cfd8b553be430dabb5b2379974d4e29aa4ea0682a
|
7
|
+
data.tar.gz: a897b2b57f526ea2b1e3cbec70816fa888984de5cd2682cf0bf11cdfdfcbfec9d2d6451588e0ec88b2e4d056fea2177b8d9c4de57805c3ac0188407e2e613dc6
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# ChangeTheSubject
|
2
2
|
|
3
|
-
|
3
|
+
This gem is currently used to mask outdated Library of Congress Subject Headings in two different public access catalogs - [Princeton University Library Catalog](https://catalog.princeton.edu/) and [Princeton University Library Finding Aids](https://findingaids.princeton.edu/).
|
4
4
|
|
5
|
-
|
5
|
+
The code for this gem started in the [bibdata codebase](https://github.com/pulibrary/bibdata), the application that prepares metadata for use by the Catalog, and you can [see the gem's earlier history there](https://github.com/pulibrary/bibdata/commits/590d2437126150d66e40393724f9e11ba95c3328/marc_to_solr/lib/change_the_subject.rb).
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -21,8 +21,15 @@ Or install it yourself as:
|
|
21
21
|
$ gem install change_the_subject
|
22
22
|
|
23
23
|
## Usage
|
24
|
+
The main api of the gem is the `ChangeTheSubject.fix` method, which takes an array of subject terms, compares them to the configuration (the default is in `config/change_the_subject.yml`), and replaces the configured terms. You can see how Bibdata uses the gem in its [traject_config.rb](https://github.com/pulibrary/bibdata/blob/main/marc_to_solr/lib/traject_config.rb).
|
24
25
|
|
25
|
-
|
26
|
+
```ruby
|
27
|
+
original_subjects = ["Something problematic", "Something not problematic"]
|
28
|
+
subjects = ChangeTheSubject.fix(subject_terms: original_subjects)
|
29
|
+
# outputs ["Something not problematic from config", "Something not problematic"]
|
30
|
+
```
|
31
|
+
|
32
|
+
The `ChangeTheSubject.fix` method also takes an optional `separators` argument, which you can [see in use in Pulfalight's implementation for eads](https://github.com/pulibrary/pulfalight/blob/main/lib/pulfalight/traject/ead2_config.rb).
|
26
33
|
|
27
34
|
## Development
|
28
35
|
|
@@ -31,5 +38,6 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
31
38
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
39
|
|
33
40
|
## Contributing
|
41
|
+
The configuration for this gem is managed by the Inclusive and Reparative Metadata Working Group (IRMWG). Send questions or comments about the configuration to harmfullanguage@princeton.libanswers.com.
|
34
42
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
43
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/pulibrary/change_the_subject.
|
@@ -50,7 +50,7 @@
|
|
50
50
|
replacement: "Enslaved children"
|
51
51
|
rationale: "In addition to its usage by TRLN, this term falls in line with recommendations included in the community-sourced document P. Gabrielle Foreman, et al. \"Writing about Slavery/Teaching About Slavery: This Might Help\" and Archives for Black Lives in Philadelphia Anti-Racist Description Resources."
|
52
52
|
"Indian slaves":
|
53
|
-
replacement: "Enslaved
|
53
|
+
replacement: "Enslaved Indigenous peoples"
|
54
54
|
rationale: "In addition to its usage by TRLN, this term falls in line with recommendations included in the community-sourced document P. Gabrielle Foreman, et al. \"Writing about Slavery/Teaching About Slavery: This Might Help.\" Capitalization of \"Indigenous\" appears to be preferred by those from Indigenous communities, for example see https://www.lib.sfu.ca/about/branches-depts/slc/writing/inclusive-antiracist-writing/bipoc and https://www.ictinc.ca/blog/indigenous-peoples-terminology-guidelines-for-usage. As this is a broad term, when possible, one should include the name of the community(ies) or nation(s) of the people in the record. "
|
55
55
|
"Older slaves":
|
56
56
|
replacement: "Enslaved older people"
|
@@ -91,3 +91,6 @@
|
|
91
91
|
"Gender identity disorders in adolescence":
|
92
92
|
replacement: "Gender dysphoria in adolescence"
|
93
93
|
rationale: '"Gender identity disorder" was removed from the DSM -- the primary diagnostic manual used by psychiatric and psychological professionals in the U.S. -- nearly a decade ago, and replaced with "Gender dysphoria."'
|
94
|
+
"Gays":
|
95
|
+
replacement: "Gay people"
|
96
|
+
rationale: "This subject heading has been updated by the Library of Congress, but some partner records have not yet been updated to reflect this."
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: change_the_subject
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Kadel
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2024-05-22 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: yaml
|