Skip to content

Commit ec22174

Browse files
committed
Updates eyebrows to user friendly strings
Why are these changes being introduced: * Source names in Primo are not consistent or particularly user friendly * CDI name is not something we use publicly Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/USE-196 How does this address that need: * Updates eyebrow method in normalizers to use UX prefered language
1 parent ba43584 commit ec22174

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

app/models/normalize_primo_record.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,12 @@ def creators
6464
author_list.uniq
6565
end
6666

67+
# Provides user friendly string based on whether the record is Alma or not-Alma (CDI)
6768
def eyebrow
6869
if alma_record?
6970
'MIT Libraries Catalog'
7071
else
71-
'Central Discovery Index'
72+
'MIT Libraries Catalog: Articles'
7273
end
7374
end
7475

app/models/normalize_timdex_record.rb

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,20 @@ def creators
4646
.map { |creator| { 'value' => creator['value'], 'link' => nil } }
4747
end
4848

49-
# Currently just using source as eyebrow.
50-
# This will likely change to remap the source to more user-friendly values.
49+
# Maps sources to user friendly strings
5150
def eyebrow
52-
source
51+
case source
52+
when 'DSpace@MIT'
53+
'DSpace@MIT (MIT Research)'
54+
when 'LibGuides'
55+
'MIT Libraries Website: Guides'
56+
when 'OpenGeoMetadata GIS Resources'
57+
'Non-MIT GeoSpatial Data'
58+
when 'MIT GIS Resources'
59+
'MIT GeoSpatial Data'
60+
else
61+
source
62+
end
5363
end
5464

5565
def source

0 commit comments

Comments
 (0)