Skip to content

Commit

Permalink
Merge pull request #1257 from sul-dlss/rumsey-updates
Browse files Browse the repository at this point in the history
Various updates for the Rumsey Map Center Opening
  • Loading branch information
Jessie Keck committed Apr 14, 2016
2 parents 14b68b7 + 5ac311d commit 0c79882
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
19 changes: 18 additions & 1 deletion lib/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ module Constants
'STACKS-30' => 'Stacks',
'STACKS-BW' => 'Bound with another item',
'STAFF' => 'Ask at circulation desk',
'STK-GEMS' => 'Collection Gems',
'STK-NOCIRC' => 'Stacks',
'STK-SM' => 'Request for use at Map Center (small stacks)',
'STK-MED' => 'Request for use at Map Center (medium stacks)',
Expand Down Expand Up @@ -662,13 +663,16 @@ module Constants
'ARTLCKM',
'ARTLCKO',
'ARTLCKS',
'ARTVAULT',
'BARCHAS',
'BENDER',
'BUS-ARCH',
'BUS-COMPF',
'BUS-LOCKED',
'BUS-MAKENA',
'BUSDISPLAY',
'ENGDISPLAY',
'FACULTY',
'FELTON',
'FELT-STOR',
'FRECOT',
Expand All @@ -692,14 +696,25 @@ module Constants
'IC-RREF',
'IC-STATS',
'LAW-SPEC',
'LOCK-CHN',
'LOCK-JPN',
'LOCK-KOR',
'MANNING',
'MEDIEVALRM',
'MEMLIBMUS',
'MICROFICHE',
'MM-ARTCAB',
'MM-BUSCAB',
'MM-DIZOCAB',
'MM-MATHCAB',
'MUS-NOCIRC',
'NEWS-STKS',
'NEWSPAPERS',
'NEWTON',
'RARE-BOOKS',
'RARE-STOR',
'RAUB-COLL',
'RAUB-NUM',
'RBCX',
'REF-CHN',
'REF-DESK',
Expand All @@ -712,6 +727,7 @@ module Constants
'ROB-STOR',
'RUMSEY',
'SAFETY',
'SAL-TEMP',
'SCBS',
'SSRC',
'SSRC-ANRPT',
Expand All @@ -726,6 +742,7 @@ module Constants
'STK-NOCIRC',
'STUDY-AIDS',
'TAUBE',
'TERM-COLL',
'THEA-STOR',
'THEATRE',
'TIMO-COLL']
Expand Down Expand Up @@ -1094,7 +1111,7 @@ module Constants
'MUSIC' => 'http://library.stanford.edu/libraries/music/about',
'MEDIA-MTXT' => 'http://library.stanford.edu/libraries/green/media-microtext-center',
'MEYER' => 'http://library.stanford.edu/libraries/meyer/about',
'RUMSEYMAP' => 'https://library.stanford.edu/branner/david-rumsey-map-center-preview',
'RUMSEYMAP' => 'https://library.stanford.edu/libraries/rumsey/about',
'TANNER' => 'http://library.stanford.edu/libraries/philosophy/about',
'SPEC-COLL' => 'http://library.stanford.edu/libraries/spc/about',
'SAL' => 'http://library.stanford.edu/libraries/sal/about',
Expand Down
4 changes: 3 additions & 1 deletion lib/holdings/noncirc.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
class Holdings
class Status
class Noncirc
NONCIRC_TYPES = %w(ARCHIVE EXPEDITION INDEX LIBUSEONLY MFICHE MFILM NH-INHOUSE NH-MAP NONCIRC REF VAULT).freeze

def initialize(callnumber)
@callnumber = callnumber
@noncirc = determine_noncirc_status
Expand Down Expand Up @@ -37,7 +39,7 @@ def location_is_default_noncirc?
end

def type_is_default_noncirc?
%w(LIBUSEONLY NH-INHOUSE NONCIRC REF).include?(@callnumber.type)
NONCIRC_TYPES.include?(@callnumber.type)
end

def sanitized_library
Expand Down

0 comments on commit 0c79882

Please sign in to comment.