Skip to content

Commit 88dbe88

Browse files
committed
Form field mapping update
1 parent 9946075 commit 88dbe88

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/hysync/marc_synchronizer/marc_parsing_methods/form.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ def extract_form_terms(marc_record, mapping_ruleset)
3131
leader_bytes_6_and_7 = marc_record.leader[6..7]
3232
case leader_bytes_6_and_7
3333
when 'am', # Language material, Monograph/Item
34-
'aa', # Language material, Monographic component part
35-
'tm' # Manuscript language material, Monograph/Item
34+
'aa' # Language material, Monographic component part
3635
form_terms << { 'uri' => 'http://id.loc.gov/vocabulary/graphicMaterials/tgm001221' } # books
3736
when 'as', # Language material, Serial
3837
'ab' # Language material, Serial component part
@@ -58,7 +57,8 @@ def extract_form_terms(marc_record, mapping_ruleset)
5857
form_terms << { 'uri' => 'http://vocab.getty.edu/aat/300028881' } # ephemera
5958
when 'rm' # Three-dimensional artifact or naturally occurring object, Monograph/Item
6059
form_terms << { 'uri' => 'http://id.loc.gov/vocabulary/graphicMaterials/tgm007159' } # objects
61-
when 'tc' # Manuscript language material, Collection
60+
when 'tc', # Manuscript language material, Collection
61+
'tm' # Manuscript language material, Monograph/Item
6262
form_terms << { 'uri' => 'http://id.loc.gov/authorities/subjects/sh85080672.html' } # manuscripts
6363
when 'cm' # Notated music, Monograph/Item
6464
form_terms << { 'uri' => 'http://id.loc.gov/authorities/genreForms/gf2014026952' } # music

spec/fixtures/json/12584148.import.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"form": [
3939
{
4040
"form_term": {
41-
"uri": "http:\/\/id.loc.gov\/vocabulary\/graphicMaterials\/tgm001221"
41+
"uri": "http://id.loc.gov/vocabulary/graphicMaterials/tgm001221"
4242
}
4343
}
4444
],
@@ -84,7 +84,7 @@
8484
"language": [
8585
{
8686
"language_term": {
87-
"uri": "http:\/\/id.loc.gov\/vocabulary\/iso639-2\/eng",
87+
"uri": "http://id.loc.gov/vocabulary/iso639-2/eng",
8888
"value": "English",
8989
"authority": "iso639-2b"
9090
}
@@ -126,7 +126,7 @@
126126
"value": "Rare Book & Manuscript Library, Columbia University",
127127
"authority": "marcorg",
128128
"code": "NNC-RB",
129-
"uri": "http:\/\/id.library.columbia.edu\/term\/d2142d01-deaa-4a39-8dbd-72c4f148353f"
129+
"uri": "http://id.library.columbia.edu/term/d2142d01-deaa-4a39-8dbd-72c4f148353f"
130130
}
131131
}
132132
],

0 commit comments

Comments
 (0)