enju_subject 0.1.0.pre17 → 0.1.0.pre18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/subject_type.rb +1 -1
- data/app/views/manifestations/_subject_detail.html.erb +1 -1
- data/app/views/manifestations/_subject_facet.html.erb +1 -1
- data/lib/enju_subject/version.rb +1 -1
- data/lib/generators/enju_subject/setup/templates/db/fixtures/classification_types.yml +2 -2
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_1xe +0 -0
- data/spec/fixtures/subject_types.yml +4 -4
- metadata +4 -20
- data/spec/dummy/solr/data/test/index/_wh.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_wh.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_wh.fnm +0 -4
- data/spec/dummy/solr/data/test/index/_wh.frq +0 -0
- data/spec/dummy/solr/data/test/index/_wh.nrm +0 -1
- data/spec/dummy/solr/data/test/index/_wh.prx +0 -0
- data/spec/dummy/solr/data/test/index/_wh.tii +0 -0
- data/spec/dummy/solr/data/test/index/_wh.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments_1vw +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b70f651a02ac946f7d09e0bd085c6f21d339ad73
|
4
|
+
data.tar.gz: 69b9031c68d714064695e13f01ed3525b997fabe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5fd056312e58fbabe6f240e4236a03a2480d05c5877a8458ec0a5beb4cf1ed524c8929f6a080acef0b2cd6dcbc2126d4b03b1f50880209ca6be6d3127ca082d
|
7
|
+
data.tar.gz: 051ae6498187e56736f78ad950be5670f6706cbf757384ce321800e200b02986faa47204236fed22db96a46a7bb460c295f735a9faafe9f7b29e5fca0d019d79
|
data/app/models/subject_type.rb
CHANGED
@@ -3,7 +3,7 @@ class SubjectType < ActiveRecord::Base
|
|
3
3
|
include MasterModel
|
4
4
|
default_scope :order => "position"
|
5
5
|
has_many :subjects
|
6
|
-
validates :name, :format => {:with => /\A[0-
|
6
|
+
validates :name, :format => {:with => /\A[0-9A-Za-z][0-9a-z_\-]*[0-9a-z]\Z/}
|
7
7
|
end
|
8
8
|
|
9
9
|
# == Schema Information
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<ul>
|
6
6
|
<%- manifestation.subjects.each do |subject| -%>
|
7
7
|
<li>
|
8
|
-
<%= link_to "#{subject.subject_heading_type.display_name.localize}: #{subject.term}", manifestations_path(:query => "subject_sm
|
8
|
+
<%= link_to "#{subject.subject_heading_type.display_name.localize}: #{subject.term}", manifestations_path(:query => "subject_sm:\"#{subject.term}\"") -%>
|
9
9
|
</li>
|
10
10
|
<%- end -%>
|
11
11
|
</ul>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<%- subject = Subject.where(:id => facet.value).first -%>
|
6
6
|
<%- if subject -%>
|
7
7
|
<li>
|
8
|
-
<%= link_to "#{subject.term} (#{facet.count})", url_for(params.merge(:page => nil, :subject => subject.term, :view => nil, :only_path => true)) -%>
|
8
|
+
<%= link_to "#{subject.term} (#{facet.count})", url_for(params.merge(:page => nil, :subject => "\"#{subject.term}\"", :view => nil, :only_path => true)) -%>
|
9
9
|
</li>
|
10
10
|
<%- end -%>
|
11
11
|
<%- end -%>
|
data/lib/enju_subject/version.rb
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
Binary file
|
Binary file
|
@@ -1,28 +1,28 @@
|
|
1
1
|
---
|
2
2
|
subject_type_00001:
|
3
3
|
id: 1
|
4
|
-
name:
|
4
|
+
name: Concept
|
5
5
|
display_name: Concept
|
6
6
|
note:
|
7
7
|
position: 1
|
8
8
|
|
9
9
|
subject_type_00002:
|
10
10
|
id: 2
|
11
|
-
name:
|
11
|
+
name: Event
|
12
12
|
display_name: Event
|
13
13
|
note:
|
14
14
|
position: 2
|
15
15
|
|
16
16
|
subject_type_00003:
|
17
17
|
id: 3
|
18
|
-
name:
|
18
|
+
name: Object
|
19
19
|
display_name: Object
|
20
20
|
note:
|
21
21
|
position: 3
|
22
22
|
|
23
23
|
subject_type_00004:
|
24
24
|
id: 4
|
25
|
-
name:
|
25
|
+
name: Place
|
26
26
|
display_name: Place
|
27
27
|
note:
|
28
28
|
position: 4
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_subject
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kosuke Tanabe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: enju_core
|
@@ -399,16 +399,8 @@ files:
|
|
399
399
|
- spec/dummy/solr/conf/spellings.txt
|
400
400
|
- spec/dummy/solr/conf/stopwords.txt
|
401
401
|
- spec/dummy/solr/conf/synonyms.txt
|
402
|
-
- spec/dummy/solr/data/test/index/_wh.fdt
|
403
|
-
- spec/dummy/solr/data/test/index/_wh.fdx
|
404
|
-
- spec/dummy/solr/data/test/index/_wh.fnm
|
405
|
-
- spec/dummy/solr/data/test/index/_wh.frq
|
406
|
-
- spec/dummy/solr/data/test/index/_wh.nrm
|
407
|
-
- spec/dummy/solr/data/test/index/_wh.prx
|
408
|
-
- spec/dummy/solr/data/test/index/_wh.tii
|
409
|
-
- spec/dummy/solr/data/test/index/_wh.tis
|
410
402
|
- spec/dummy/solr/data/test/index/segments.gen
|
411
|
-
- spec/dummy/solr/data/test/index/
|
403
|
+
- spec/dummy/solr/data/test/index/segments_1xe
|
412
404
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
413
405
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
414
406
|
- spec/dummy/spec/fixtures/subjects.yml
|
@@ -632,16 +624,8 @@ test_files:
|
|
632
624
|
- spec/dummy/solr/conf/spellings.txt
|
633
625
|
- spec/dummy/solr/conf/stopwords.txt
|
634
626
|
- spec/dummy/solr/conf/synonyms.txt
|
635
|
-
- spec/dummy/solr/data/test/index/_wh.fdt
|
636
|
-
- spec/dummy/solr/data/test/index/_wh.fdx
|
637
|
-
- spec/dummy/solr/data/test/index/_wh.fnm
|
638
|
-
- spec/dummy/solr/data/test/index/_wh.frq
|
639
|
-
- spec/dummy/solr/data/test/index/_wh.nrm
|
640
|
-
- spec/dummy/solr/data/test/index/_wh.prx
|
641
|
-
- spec/dummy/solr/data/test/index/_wh.tii
|
642
|
-
- spec/dummy/solr/data/test/index/_wh.tis
|
643
627
|
- spec/dummy/solr/data/test/index/segments.gen
|
644
|
-
- spec/dummy/solr/data/test/index/
|
628
|
+
- spec/dummy/solr/data/test/index/segments_1xe
|
645
629
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
646
630
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
647
631
|
- spec/dummy/spec/fixtures/subjects.yml
|
Binary file
|
Binary file
|
Binary file
|
@@ -1 +0,0 @@
|
|
1
|
-
NRM�xxvx|u||ut�u��||
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|