cul_scv_hydra 0.22.9.6 → 0.22.9.7

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
2
  SHA1:
3
- metadata.gz: 74869da29e909f8dccfd245d2d186a8354422ff4
4
- data.tar.gz: 954c2fd4c2b30a84299e81c2c1ceafb9684dd0d3
3
+ metadata.gz: 9fffc9048b41a4ee245b7fdd9ba063c559cdc556
4
+ data.tar.gz: 4d628d85ba74b387c9f4fb1905c708922bffbf3f
5
5
  SHA512:
6
- metadata.gz: 07ee76d8e8f106415e5ed6b9dba0cbac1dae561851408bae9700cdf8112e7b15ef8d7204f18e18565b05f4157b24e78a40ae7f49e78ed90949925c56ba89ad3b
7
- data.tar.gz: afa4c456a7ae3f4e14507d909a019bb9456237101c6a5c0e5259f5d3f1690981af3807a55d5e3db44e645ac7c425dfc0305fdc88e2e96419eef0b74ace12a6b5
6
+ metadata.gz: 550c7643a816ef5c034faffb541c6db361801946a9a92cbc0a7c61a411e509b888e1830630f26bde32d6a8d5d22584acbcd32e003108b3bccccd3ad449ea974c
7
+ data.tar.gz: 4b41cad0335695be5304421d072ecb52336e8323195c8ced8da678acc499bfff22bc2ab2fe38e1a4a1c0f0becb35a66aa30657a362d30d8142775bcf50a3e5ef
@@ -4,4 +4,5 @@
4
4
  <note type="banana">Banana note</note>
5
5
  <note type="date">Date note</note>
6
6
  <note type="date source">Date source note</note>
7
+ <note type="view direction">WEST</note>
7
8
  </mods>
@@ -231,7 +231,13 @@ module Cul::Hydra::Solrizer
231
231
  def non_date_notes(node=mods)
232
232
  non_date_notes = []
233
233
  node.xpath("./mods:note[not(@type) or (@type != 'date' and @type != 'date source')]", MODS_NS).collect do |n|
234
- non_date_notes << ModsFieldable.normalize(n.text, true)
234
+ if n.attr('type') == 'view direction'
235
+ non_date_notes << 'View Direction: ' + ModsFieldable.normalize(n.text, true)
236
+ else
237
+ non_date_notes << ModsFieldable.normalize(n.text, true)
238
+ end
239
+
240
+
235
241
  end
236
242
  return non_date_notes
237
243
  end
@@ -1,6 +1,6 @@
1
1
  module Cul
2
2
  module Hydra
3
- VERSION = '0.22.9.6'
3
+ VERSION = '0.22.9.7'
4
4
  def self.version
5
5
  VERSION
6
6
  end
@@ -1,6 +1,6 @@
1
1
  module Cul
2
2
  module Hydra
3
- VERSION = '0.22.9.5'
3
+ VERSION = '0.22.9.6'
4
4
  def self.version
5
5
  VERSION
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cul_scv_hydra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.9.6
4
+ version: 0.22.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Armintor
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-30 00:00:00.000000000 Z
12
+ date: 2015-04-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blacklight