We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5f175d4 + 6b18d78 commit 8cd82e3Copy full SHA for 8cd82e3
app/models/normalize_primo_record.rb
@@ -311,7 +311,8 @@ def location
311
def subjects
312
return [] unless @record['pnx']['display']['subject']
313
314
- @record['pnx']['display']['subject']
+ subs = @record['pnx']['display']['subject']
315
+ subs.flat_map { |sub| sub.split(' ; ') }
316
end
317
318
def availability
test/fixtures/primo/full_record.json
@@ -24,8 +24,7 @@
24
"A comprehensive study of testing methodologies"
25
],
26
"subject": [
27
- "Computer Science",
28
- "Software Testing"
+ "Computer Science ; Software Testing"
29
]
30
},
31
"addata": {
0 commit comments