Skip to content

Commit 101075e

Browse files
committed
Fix automotive tech call number range, closes #1
1 parent 1ce29ba commit 101075e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/call_number_ranges.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'S[0-9]+|SF1?[0-9]{,2}|SF2[0-48-9][0-9]|SF27[6-9]|'\
1313
'TJ148[0-9]|TJ149[0-6])'),
1414
'Anthropology' => /^(CC|GN|GR|GT|E[5-9][0-9](\.|\s)|PM[0-9]{1,3}(\.|\s)|PM[1-7][0-9]{3}(\.|\s))/,
15-
'Automotive technology' => /^TL(\.|\s)/,
15+
'Automotive technology' => /^(TP359\s?\.B46|TL)/,
1616
'Aviation science' => /^(TL[56][0-9]{2}|7[0-7][0-9]|78[0-5])(\.|\s)/,
1717
'Biology' => Regexp.new('^(GE[0-9]|'\
1818
'Q[12]?[0-9]{,2}(\.|\s)|QH[0-9]|QK[0-9]|QL[0-9]|QM[0-9]|QP[0-9]|QR[0-9]|'\

spec/call_number_ranges_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
'TH6711.E38 2006' => ['Welding'],
1616
'TJ184 .L39 2018' => ['Engineering', 'Machine tool'],
1717
'TK4660 .J39 2015' => %w[Engineering Welding],
18+
'TP359.B46 E87 2015' => ['Automotive technology'],
1819
'TS227 .M268 2002' => ['Welding'],
1920
'TS280 .G72 1979' => ['Welding'],
2021
'TT922 .K56 2018' => ['Ceramics', 'Visual arts'],

0 commit comments

Comments
 (0)