enju_biblio 0.1.0.pre20 → 0.1.0.pre21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/countries_controller.rb +9 -1
- data/app/controllers/languages_controller.rb +9 -1
- data/app/models/manifestation.rb +3 -27
- data/app/views/import_requests/index.html.erb +1 -1
- data/app/views/patron_import_files/index.html.erb +1 -1
- data/app/views/resource_import_files/index.html.erb +1 -1
- data/lib/enju_biblio/version.rb +1 -1
- 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_vu +0 -0
- data/spec/dummy/tmp/cache/4F7/F90/default_role +0 -0
- data/spec/dummy/tmp/cache/6E4/420/search_engine_all +0 -0
- metadata +6 -6
- data/spec/dummy/solr/data/test/index/segments_fj +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43b1c3ae3a79ff7af5219d194125b2981856ebe8
|
4
|
+
data.tar.gz: 0f0d22a7bea5631a8c74b729d0ebcbd30eea60c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce157cf849f7e6c062b03d72eab11f841dc7d1a520807d6469c07f28de684654a0038b99a5ff58ba5d9c1ec72ae1a91ae89b7a33ff23dfab7dc86b174c48cabe
|
7
|
+
data.tar.gz: e621fcbc9bb6f3f7d28cd96a947ef30a8890f06d8fc943568542437da65ebfaf23e76a9ab383a73769ff171cfd482346ab2a11d05e1d3fbb62ef8d51d142e14a
|
@@ -1,8 +1,16 @@
|
|
1
1
|
class CountriesController < InheritedResources::Base
|
2
2
|
respond_to :html, :json
|
3
|
-
has_scope :page, :default => 1
|
4
3
|
load_and_authorize_resource
|
5
4
|
|
5
|
+
def index
|
6
|
+
@countries = Country.page(params[:page])
|
7
|
+
|
8
|
+
respond_to do |format|
|
9
|
+
format.html # index.html.erb
|
10
|
+
format.json { render :json => @countries }
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
6
14
|
def update
|
7
15
|
@country = Country.find(params[:id])
|
8
16
|
if params[:move]
|
@@ -1,8 +1,16 @@
|
|
1
1
|
class LanguagesController < InheritedResources::Base
|
2
2
|
respond_to :html, :json
|
3
|
-
has_scope :page, :default => 1
|
4
3
|
load_and_authorize_resource
|
5
4
|
|
5
|
+
def index
|
6
|
+
@languages = Language.page(params[:page])
|
7
|
+
|
8
|
+
respond_to do |format|
|
9
|
+
format.html # index.html.erb
|
10
|
+
format.json { render :json => @languages }
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
6
14
|
def update
|
7
15
|
@language = Language.find(params[:id])
|
8
16
|
if params[:move]
|
data/app/models/manifestation.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
class Manifestation < ActiveRecord::Base
|
2
2
|
attr_accessible :original_title, :title_alternative, :title_transcription,
|
3
|
-
:
|
3
|
+
:manifestation_identifier, :date_copyrighted,
|
4
4
|
:access_address, :language_id, :carrier_type_id, :extent_id, :start_page,
|
5
5
|
:end_page, :height, :width, :depth, :isbn, :wrong_isbn, :nbn, :lccn,
|
6
6
|
:oclc_number, :issn, :price, :fulltext, :volume_number_string,
|
@@ -186,6 +186,8 @@ class Manifestation < ActiveRecord::Base
|
|
186
186
|
time :acquired_at
|
187
187
|
end
|
188
188
|
|
189
|
+
enju_circulation_model if defined?(EnjuCirculation)
|
190
|
+
enju_subject_model if defined?(EnjuSubject)
|
189
191
|
enju_manifestation_viewer if defined?(EnjuManifestationViewer)
|
190
192
|
enju_ndl_search if defined?(EnjuNdl)
|
191
193
|
#enju_amazon
|
@@ -465,32 +467,6 @@ class Manifestation < ActiveRecord::Base
|
|
465
467
|
items.where(:shelf_id => Shelf.web.id).first
|
466
468
|
end
|
467
469
|
|
468
|
-
if defined?(EnjuCirculation)
|
469
|
-
enju_circulation_model
|
470
|
-
end
|
471
|
-
|
472
|
-
if defined?(EnjuSubject)
|
473
|
-
has_many :work_has_subjects, :foreign_key => 'work_id', :dependent => :destroy
|
474
|
-
has_many :subjects, :through => :work_has_subjects
|
475
|
-
|
476
|
-
searchable do
|
477
|
-
text :subject do
|
478
|
-
subjects.map{|s| [:term, :term_transcription]}.compact
|
479
|
-
end
|
480
|
-
string :subject, :multiple => true do
|
481
|
-
subjects.map{|s| [:term, :term_transcription]}.compact
|
482
|
-
end
|
483
|
-
string :classification, :multiple => true do
|
484
|
-
classifications.collect(&:category)
|
485
|
-
end
|
486
|
-
integer :subject_ids, :multiple => true
|
487
|
-
end
|
488
|
-
|
489
|
-
def classifications
|
490
|
-
subjects.collect(&:classifications).flatten
|
491
|
-
end
|
492
|
-
end
|
493
|
-
|
494
470
|
if defined?(EnjuBookmark)
|
495
471
|
has_many :bookmarks, :include => :tags, :dependent => :destroy, :foreign_key => :manifestation_id
|
496
472
|
has_many :users, :through => :bookmarks
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
<table class="table table-striped index">
|
6
6
|
<tr>
|
7
|
-
<th id="edit_icons">
|
7
|
+
<th id="edit_icons">ID</th>
|
8
8
|
<th><%= t('activerecord.models.user') -%></th>
|
9
9
|
<th><%= t('activerecord.attributes.import_request.isbn') -%></th>
|
10
10
|
<th><%= t('page.created_at') -%></th>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
<table class="table table-striped index">
|
6
6
|
<tr>
|
7
|
-
<th>
|
7
|
+
<th>ID</th>
|
8
8
|
<th><%= t('activerecord.attributes.patron_import_file.patron_import_file_name') -%></th>
|
9
9
|
<th><%= t('activerecord.attributes.patron_import_file.executed_at') -%></th>
|
10
10
|
<th><%= t('activerecord.models.user') -%></th>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
<table class="table table-striped index">
|
6
6
|
<tr>
|
7
|
-
<th>
|
7
|
+
<th>ID</th>
|
8
8
|
<th><%= t('activerecord.attributes.resource_import_file.resource_import_file_name') -%></th>
|
9
9
|
<th><%= t('activerecord.attributes.resource_import_file.executed_at') -%></th>
|
10
10
|
<th><%= t('activerecord.models.user') -%></th>
|
data/lib/enju_biblio/version.rb
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_biblio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre21
|
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-
|
11
|
+
date: 2013-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.2.13.rc1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 3.2.13.rc1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: paperclip
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1140,7 +1140,7 @@ files:
|
|
1140
1140
|
- spec/dummy/solr/conf/stopwords.txt
|
1141
1141
|
- spec/dummy/solr/conf/synonyms.txt
|
1142
1142
|
- spec/dummy/solr/data/test/index/segments.gen
|
1143
|
-
- spec/dummy/solr/data/test/index/
|
1143
|
+
- spec/dummy/solr/data/test/index/segments_vu
|
1144
1144
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
1145
1145
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
1146
1146
|
- spec/dummy/tmp/cache/4F7/F90/default_role
|
@@ -1570,7 +1570,7 @@ test_files:
|
|
1570
1570
|
- spec/dummy/solr/conf/stopwords.txt
|
1571
1571
|
- spec/dummy/solr/conf/synonyms.txt
|
1572
1572
|
- spec/dummy/solr/data/test/index/segments.gen
|
1573
|
-
- spec/dummy/solr/data/test/index/
|
1573
|
+
- spec/dummy/solr/data/test/index/segments_vu
|
1574
1574
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
1575
1575
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
1576
1576
|
- spec/dummy/tmp/cache/4F7/F90/default_role
|
Binary file
|