traject_umich_format 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 843ea7355ea638cd27d97a0f6e7866d9fc3316e7
4
- data.tar.gz: aec0c15b33f03b857eba20f7ee4a8a8d702dc1c4
2
+ SHA256:
3
+ metadata.gz: a33f3aeb6c8b94d0f60fb32f253b1351312549b5d4dab2c472dd3816df733ed5
4
+ data.tar.gz: 5167802eceaac712c358479044bc3402b12850ef90777c5160d067274af70c03
5
5
  SHA512:
6
- metadata.gz: 1a5fe3dd67c9e3b981000142f8809d1328445c61f6dd86d1f6aafb96000fed7b3073a1ce254dd080c95d980dc9c637a2cee36323186d465ff62bef480e39686b
7
- data.tar.gz: 6e00c3e3fb950fd2ab6ac36f892f28b54106e27400cdec825d5d7d83670c753c4542d67da2845c160f0d97aa3fa4aa042e1aedd76c436b791f3ffc23e1204e7a
6
+ metadata.gz: bd966ad314b0947b195c74fcdd73d2db04d70eedf605aab817ca8fe5893ff705b0d6a6cf1f429e9e5cd04c77521d00bf6e67b18dfed772fb3b88f10939d9d382
7
+ data.tar.gz: 801cdd8e3af26e59444c4bd36f559dacc7d66154e671bd4afcc0064113e33929d9b91d05653b6fbf9e55b614a8b16b648902ff9e2ee37b5bc917428ea55c1bbe
@@ -38,6 +38,7 @@ class Traject::UMichFormat::BibTypes
38
38
  codes.concat self.reference_types
39
39
  codes.concat self.pp_types
40
40
  codes.concat self.videogame_types
41
+ codes.concat self.boardgame_types
41
42
 
42
43
  codes.uniq!
43
44
  codes.compact!
@@ -566,5 +567,22 @@ class Traject::UMichFormat::BibTypes
566
567
  end
567
568
  end
568
569
 
570
+ # TYP BG Board Games 655## a MATCH board games
571
+ # TYP BG Board Games 655## a MATCH card games
572
+ # TYP BG Board Games 852## j MATCH game board*
573
+ # TYP BG Board Games LDR F06-01 EQUAL [g,k,o,r]
574
+ # 008 F33-01 EQUAL g
575
+ # TYP BG Board Games LDR F06-01 EQUAL [g,k,o,r]
576
+ # 006 F16-01 EQUAL g
577
+
578
+
579
+ def boardgame_types
580
+ return ['BG'] if self['655a'].grep(/\A(board|card) games/i).size > 0
581
+ return ['BG'] if self['852j'].grep(/\Agame board/i).size > 0
582
+ return ['BG'] if %w[g k o r].include?(record.leader[6]) && (self['008[33]'].include? 'g')
583
+ return ['BG'] if %w[g k o r].include?(record.leader[6]) && (self['006[16`]'].include? 'g')
584
+ return []
585
+ end
586
+
569
587
 
570
588
  end
@@ -1,5 +1,5 @@
1
1
  module Traject
2
2
  class UMichFormat
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
@@ -3,6 +3,7 @@
3
3
  "AN" => "Newspaper",
4
4
  "BI" => "Biography",
5
5
  "BK" => "Book",
6
+ "BG" => "Board Games",
6
7
  "CE" => "Data File",
7
8
  "CF" => "Data File",
8
9
  "CR" => "CDROM",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: traject_umich_format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bill Dueber
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-01 00:00:00.000000000 Z
11
+ date: 2019-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -106,8 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []
109
- rubyforge_project:
110
- rubygems_version: 2.6.13
109
+ rubygems_version: 3.0.1
111
110
  signing_key:
112
111
  specification_version: 4
113
112
  summary: Extract the format and type from a MARC record, the UMich way