Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libsearch 946 flint advanced search #82

Merged
merged 6 commits into from
Jun 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 32 additions & 24 deletions umich_catalog_indexing/lib/umich_traject/location_map.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
require 'match_map'
require "match_map"
module Traject
module UMich
def self.location_map
m = MatchMap.new
m.echo = :onmiss

#====added 03-2023 for SCRC
m[/^SPEC SC[HB]-RARE.*/] = "SPEC RARE"
m[/^SPEC SCB-SCI/] = "SPEC RARE"
Expand All @@ -18,10 +19,11 @@ def self.location_map
m[/^SPEC SC[HB]-TAUB.*/] = "SPEC TAUB"
m[/^SPEC SC[HB]-CUL/] = "SPEC CUL"
m[/^SPEC SC[HB]-JHC.*/] = "SPEC JHC"
m[/^SPEC SC[HB]-LA.*/] = "SPEC LABD" #need to fix this later
m[/^SPEC SC[HB]-WOR/] = "SPEC WOR" #need to fix this later
m[/^SPEC SCB-THC.*/] = "SPEC THC" #need to fix this later
m[/^SPEC SC[HB]-LA.*/] = "SPEC LABD" # need to fix this later
m[/^SPEC SC[HB]-WOR/] = "SPEC WOR" # need to fix this later
m[/^SPEC SCB-THC.*/] = "SPEC THC" # need to fix this later
#==== end of 09-2022 SCRC additions

m[/^SPEC RCLC/] = "SPEC CHIL"
m[/^SPEC GOSL/] = ["SPEC CHIL", "SPEC GOSL"]
m[/^SPEC CHIL.*/] = "SPEC CHIL"
Expand All @@ -33,6 +35,7 @@ def self.location_map
m[/^SPEC LA.*/] = "SPEC LABD"
#=== between 09-2022 changes and here should be removed
#=== when confirmed that everything in SPEC is cleaned up

m[/^HATCH MSHLV/] = "HATCH BKS"
m[/^HATCH MREF/] = "HATCH BKS"
m[/^HATCH MOVRD/] = "HATCH MAP"
Expand All @@ -43,37 +46,42 @@ def self.location_map
m[/^HATCH AOVR/] = "HATCH ASIA"
m[/^HATCH AOFF/] = "HATCH ASIA"
m[/^HATCH AMIC/] = "HATCH ASIA"
m[/^HATCH ASPEC/] = 'HATCH ASIA'
m[/^MiU-H/] = "BENT"
m[/^MiU-C/] = "CLEM"
m[/^MiFliC/] = "FLINT"
m[/^MiAaUTR/] = "UMTRI"
m[/^BUHR.*/] = "BUHR"
m[/^HATCH ASPEC/] = "HATCH ASIA"
m[/^HATCH MFOL/] = "HATCH MRAR"
m[/^HATCH MFILR/] = "HATCH MRAR"
m[/^HATCH MFILE/] = "HATCH MAP"
m[/^HATCH MATL/] = "HATCH BKS"
m[/^HATCH GRNT/] = "HATCH REF"
m[/^HATCH GLRF/] = "HATCH REF"
m[/^HATCH GDESK/] = "HATCH REF"
m[/^FLINT TECH/] = "FLINT REF"
m[/^HATCH DSOFT/] = "HATCH DOCS"
m[/^FLINT SPEC/] = "FLINT ARCH"
m[/^HATCH DREF/] = "HATCH DOCS"
m[/^FLINT REFD/] = "FLINT REF"
m[/^HATCH DMIC/] = "HATCH DOCS"
m[/^FLINT OVERZ/] = "FLINT MAIN"
m[/^FLINT MSTR/] = "FLINT MAIN"
m[/^FLINT MOVRZ/] = "FLINT MEDIA"
m[/^FLINT MFILM/] = "FLINT MICRO"
m[/^FLINT MFICH/] = "FLINT MICRO"

m[/^MiU-H/] = "BENT"
m[/^MiU-C/] = "CLEM"
m[/^MiFliC/] = "FLINT"
m[/^MiAaUTR/] = "UMTRI"

m[/^BUHR.*/] = "BUHR"

# Archives - Special Collections
m[/^FLINT SPEC/] = "FLINT ARCH"

# Reference Collection
m[/^FLINT REFD/] = "FLINT REF"
m[/^FLINT TECH/] = "FLINT REF"
m[/^FLINT ABST/] = "FLINT REF"

# Microforms
m[/^FLINT MCARD/] = "FLINT MICRO"
m[/^FLINT FSPAM/] = "FLINT MAIN"
m[/^FLINT BUSP/] = "FLINT PERI"
m[/^FLINT BUSB/] = "FLINT MAIN"
m[/^FLINT ATLAS/] = "FLINT REF"
return m
m[/^FLINT MFICH/] = "FLINT MICRO"
m[/^FLINT MFILM/] = "FLINT MICRO"

# English language program
m[/^FLINT ELP.*/] = "FLINT ELP"

m
end
end
end

Loading