enju_manifestation_viewer 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -11
- data/app/views/manifestations/_hanmotocom_thumbnail.html.erb +1 -1
- data/lib/enju_manifestation_viewer/version.rb +1 -1
- data/spec/dummy/db/migrate/20200425072340_create_manifestation_custom_properties.rb +12 -0
- data/spec/dummy/db/migrate/20200425072349_create_item_custom_properties.rb +12 -0
- data/spec/dummy/db/migrate/20200425074758_create_manifestation_custom_values.rb +12 -0
- data/spec/dummy/db/migrate/20200425074822_create_item_custom_values.rb +12 -0
- data/spec/dummy/db/schema.rb +43 -1
- data/spec/helpers/book_jacket_helper_spec.rb +1 -1
- metadata +37 -17
- data/spec/dummy/tmp/development_secret.txt +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb833e65cb108463339ca8e5a7e39825a74fa0d0399a3d002e210706d5eadebb
|
4
|
+
data.tar.gz: d4280d4dd553a893672e6c3f4180961be8638ae01a6f448aa01545e0772d353e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9a21cbc82b3922b9ea01d356bed04d8797cbc947c03db985f35893f5172504dfed5620b13b745f046c60c28e667bdd846e15941e564c350bcb7668fc7e2e7c6
|
7
|
+
data.tar.gz: 27fa80f8e27184e94b9c3c3fea4ce63e278b8f66a7adfbd300e8886474b1602efc302ee91ea217cdf124d942335de43234c1f2e37d8a424878f3f00802f55b94
|
data/README.md
CHANGED
@@ -1,17 +1,10 @@
|
|
1
1
|
# EnjuManifestationViewer
|
2
|
-
[
|
3
|
-
|
4
|
-
|
5
|
-
[<img
|
6
|
-
src="https://coveralls.io/repos/next-l/enju_manifestation_viewer/badge.svg?bra
|
7
|
-
nch=1.3&service=github" alt="Coverage Status"
|
8
|
-
/>](https://coveralls.io/github/next-l/enju_manifestation_viewer?branch=1.3)
|
9
|
-
[<img src="https://hakiri.io/github/next-l/enju_manifestation_viewer/1.3.svg"
|
10
|
-
alt="security"
|
11
|
-
/>](https://hakiri.io/github/next-l/enju_manifestation_viewer/1.3)
|
2
|
+
[![Travis CI](https://travis-ci.com/next-l/enju_manifestation_viewer.svg?branch=1.3)](https://travis-ci.com/next-l/enju_manifestation_viewer)
|
3
|
+
[![Coverage Status](https://coveralls.io/repos/github/next-l/enju_enju_manifestation_viewer/badge.svg?branch=1.3)](https://coveralls.io/github/next-l/enju_enju_manifestation_viewer?branch=1.3)
|
4
|
+
[![security](https://hakiri.io/github/next-l/enju_enju_manifestation_viewer/1.3.svg)](https://hakiri.io/github/next-l/enju_enju_manifestation_viewer/1.3)
|
12
5
|
|
13
6
|
This project rocks and uses MIT-LICENSE.
|
14
7
|
|
15
8
|
## 製作者・貢献者 (Authors and contributors)
|
16
9
|
* [TANABE, Kosuke](https://github.com/nabeta) ([@nabeta](https://twitter.com/nabeta))
|
17
|
-
*
|
10
|
+
* [Project Next-L](https://www.next-l.jp) ([@ProjectNextL](https://twitter.com/ProjectNextL))
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% unless manifestation.identifier_contents(:isbn).empty? %>
|
2
2
|
<div id="gbsthumbnail<%= manifestation.id %>" class="book_jacket"></div>
|
3
|
-
<%= image_tag("
|
3
|
+
<%= image_tag("https://www.hanmoto.com/bd/img/#{ Lisbn.new(manifestation.identifier_contents(:isbn).first).isbn13 }.jpg") %>
|
4
4
|
<% else %>
|
5
5
|
<% if @library_group.settings[:book_jacket_unknown_resource] %>
|
6
6
|
<%= @library_group.settings[:book_jacket_unknown_resource] %>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class CreateManifestationCustomProperties < ActiveRecord::Migration[5.2]
|
2
|
+
def change
|
3
|
+
create_table :manifestation_custom_properties do |t|
|
4
|
+
t.string :name, null: false, comment: 'ラベル名', index: {unique: true}
|
5
|
+
t.text :display_name, null: false, comment: '表示名'
|
6
|
+
t.text :note, comment: '備考'
|
7
|
+
t.integer :position, default: 1, null: false
|
8
|
+
|
9
|
+
t.timestamps
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class CreateItemCustomProperties < ActiveRecord::Migration[5.2]
|
2
|
+
def change
|
3
|
+
create_table :item_custom_properties do |t|
|
4
|
+
t.string :name, null: false, comment: 'ラベル名', index: {unique: true}
|
5
|
+
t.text :display_name, null: false, comment: '表示名'
|
6
|
+
t.text :note, comment: '備考'
|
7
|
+
t.integer :position, default: 1, null: false
|
8
|
+
|
9
|
+
t.timestamps
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class CreateManifestationCustomValues < ActiveRecord::Migration[5.2]
|
2
|
+
def change
|
3
|
+
create_table :manifestation_custom_values do |t|
|
4
|
+
t.references :manifestation_custom_property, null: false, foreign_key: true, index: {name: 'index_manifestation_custom_values_on_custom_property_id'}
|
5
|
+
t.references :manifestation, null: false, foreign_key: true
|
6
|
+
t.text :value
|
7
|
+
|
8
|
+
t.timestamps
|
9
|
+
end
|
10
|
+
add_index :manifestation_custom_values, [:manifestation_custom_property_id, :manifestation_id], unique: true, name: 'index_manifestation_custom_values_on_property_manifestation'
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class CreateItemCustomValues < ActiveRecord::Migration[5.2]
|
2
|
+
def change
|
3
|
+
create_table :item_custom_values do |t|
|
4
|
+
t.references :item_custom_property, null: false, foreign_key: true, index: {name: 'index_item_custom_values_on_custom_property_id'}
|
5
|
+
t.references :item, null: false, foreign_key: true
|
6
|
+
t.text :value
|
7
|
+
|
8
|
+
t.timestamps
|
9
|
+
end
|
10
|
+
add_index :item_custom_values, [:item_custom_property_id, :item_id], unique: true, name: 'index_item_custom_values_on_custom_item_property_and_item_id'
|
11
|
+
end
|
12
|
+
end
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 2020_04_25_074822) do
|
14
14
|
|
15
15
|
create_table "accepts", force: :cascade do |t|
|
16
16
|
t.integer "basket_id"
|
@@ -353,6 +353,27 @@ ActiveRecord::Schema.define(version: 2019_12_19_122214) do
|
|
353
353
|
t.index ["user_id"], name: "index_import_requests_on_user_id"
|
354
354
|
end
|
355
355
|
|
356
|
+
create_table "item_custom_properties", force: :cascade do |t|
|
357
|
+
t.string "name", null: false
|
358
|
+
t.text "display_name", null: false
|
359
|
+
t.text "note"
|
360
|
+
t.integer "position", default: 1, null: false
|
361
|
+
t.datetime "created_at", null: false
|
362
|
+
t.datetime "updated_at", null: false
|
363
|
+
t.index ["name"], name: "index_item_custom_properties_on_name", unique: true
|
364
|
+
end
|
365
|
+
|
366
|
+
create_table "item_custom_values", force: :cascade do |t|
|
367
|
+
t.integer "item_custom_property_id", null: false
|
368
|
+
t.integer "item_id", null: false
|
369
|
+
t.text "value"
|
370
|
+
t.datetime "created_at", null: false
|
371
|
+
t.datetime "updated_at", null: false
|
372
|
+
t.index ["item_custom_property_id", "item_id"], name: "index_item_custom_values_on_custom_item_property_and_item_id", unique: true
|
373
|
+
t.index ["item_custom_property_id"], name: "index_item_custom_values_on_custom_property_id"
|
374
|
+
t.index ["item_id"], name: "index_item_custom_values_on_item_id"
|
375
|
+
end
|
376
|
+
|
356
377
|
create_table "items", force: :cascade do |t|
|
357
378
|
t.string "call_number"
|
358
379
|
t.string "item_identifier"
|
@@ -478,6 +499,27 @@ ActiveRecord::Schema.define(version: 2019_12_19_122214) do
|
|
478
499
|
t.datetime "updated_at"
|
479
500
|
end
|
480
501
|
|
502
|
+
create_table "manifestation_custom_properties", force: :cascade do |t|
|
503
|
+
t.string "name", null: false
|
504
|
+
t.text "display_name", null: false
|
505
|
+
t.text "note"
|
506
|
+
t.integer "position", default: 1, null: false
|
507
|
+
t.datetime "created_at", null: false
|
508
|
+
t.datetime "updated_at", null: false
|
509
|
+
t.index ["name"], name: "index_manifestation_custom_properties_on_name", unique: true
|
510
|
+
end
|
511
|
+
|
512
|
+
create_table "manifestation_custom_values", force: :cascade do |t|
|
513
|
+
t.integer "manifestation_custom_property_id", null: false
|
514
|
+
t.integer "manifestation_id", null: false
|
515
|
+
t.text "value"
|
516
|
+
t.datetime "created_at", null: false
|
517
|
+
t.datetime "updated_at", null: false
|
518
|
+
t.index ["manifestation_custom_property_id", "manifestation_id"], name: "index_manifestation_custom_values_on_property_manifestation", unique: true
|
519
|
+
t.index ["manifestation_custom_property_id"], name: "index_manifestation_custom_values_on_custom_property_id"
|
520
|
+
t.index ["manifestation_id"], name: "index_manifestation_custom_values_on_manifestation_id"
|
521
|
+
end
|
522
|
+
|
481
523
|
create_table "manifestation_relationship_types", force: :cascade do |t|
|
482
524
|
t.string "name", null: false
|
483
525
|
t.text "display_name"
|
@@ -27,7 +27,7 @@ describe EnjuManifestationViewer::BookJacketHelper do
|
|
27
27
|
|
28
28
|
it "should get honmoto.com book jacket" do
|
29
29
|
html = helper.book_jacket_tag(manifestations(:manifestation_00001), "hanmotocom")
|
30
|
-
expect(html).to have_selector 'img[src="
|
30
|
+
expect(html).to have_selector 'img[src="https://www.hanmoto.com/bd/img/9784798002064.jpg"]'
|
31
31
|
end
|
32
32
|
|
33
33
|
it "should get openbd book jacket" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_manifestation_viewer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kosuke Tanabe
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: enju_biblio
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.3.
|
19
|
+
version: 0.3.10
|
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: 0.3.
|
26
|
+
version: 0.3.10
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: enju_leaf
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.3.
|
33
|
+
version: 1.3.4
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.3.
|
40
|
+
version: 1.3.4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: sqlite3
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '4.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '4.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: simplecov
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,16 +112,16 @@ dependencies:
|
|
112
112
|
name: coveralls
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 0.8.23
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 0.8.23
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: capybara
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,6 +192,20 @@ dependencies:
|
|
192
192
|
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: annotate
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
195
209
|
- !ruby/object:Gem::Dependency
|
196
210
|
name: sprockets
|
197
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -454,12 +468,15 @@ files:
|
|
454
468
|
- spec/dummy/db/migrate/20190818075603_add_memo_to_manifestation.rb
|
455
469
|
- spec/dummy/db/migrate/20190818075628_add_memo_to_item.rb
|
456
470
|
- spec/dummy/db/migrate/20191219122214_create_custom_properties.rb
|
471
|
+
- spec/dummy/db/migrate/20200425072340_create_manifestation_custom_properties.rb
|
472
|
+
- spec/dummy/db/migrate/20200425072349_create_item_custom_properties.rb
|
473
|
+
- spec/dummy/db/migrate/20200425074758_create_manifestation_custom_values.rb
|
474
|
+
- spec/dummy/db/migrate/20200425074822_create_item_custom_values.rb
|
457
475
|
- spec/dummy/db/schema.rb
|
458
476
|
- spec/dummy/public/404.html
|
459
477
|
- spec/dummy/public/422.html
|
460
478
|
- spec/dummy/public/500.html
|
461
479
|
- spec/dummy/public/favicon.ico
|
462
|
-
- spec/dummy/tmp/development_secret.txt
|
463
480
|
- spec/factories/manifestation.rb
|
464
481
|
- spec/fixtures/carrier_types.yml
|
465
482
|
- spec/fixtures/content_types.yml
|
@@ -486,7 +503,7 @@ files:
|
|
486
503
|
homepage: https://github.com/next-l/enju_manifestation_viewer
|
487
504
|
licenses: []
|
488
505
|
metadata: {}
|
489
|
-
post_install_message:
|
506
|
+
post_install_message:
|
490
507
|
rdoc_options: []
|
491
508
|
require_paths:
|
492
509
|
- lib
|
@@ -502,7 +519,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
502
519
|
version: '0'
|
503
520
|
requirements: []
|
504
521
|
rubygems_version: 3.0.3
|
505
|
-
signing_key:
|
522
|
+
signing_key:
|
506
523
|
specification_version: 4
|
507
524
|
summary: enju_manifestation_viewer plugin
|
508
525
|
test_files:
|
@@ -558,6 +575,7 @@ test_files:
|
|
558
575
|
- spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb
|
559
576
|
- spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb
|
560
577
|
- spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb
|
578
|
+
- spec/dummy/db/migrate/20200425072340_create_manifestation_custom_properties.rb
|
561
579
|
- spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb
|
562
580
|
- spec/dummy/db/migrate/20111124110355_create_produce_types.rb
|
563
581
|
- spec/dummy/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb
|
@@ -565,6 +583,7 @@ test_files:
|
|
565
583
|
- spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb
|
566
584
|
- spec/dummy/db/migrate/124_create_bookstores.rb
|
567
585
|
- spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb
|
586
|
+
- spec/dummy/db/migrate/20200425074758_create_manifestation_custom_values.rb
|
568
587
|
- spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb
|
569
588
|
- spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb
|
570
589
|
- spec/dummy/db/migrate/20160813203039_add_user_id_to_library_group.rb
|
@@ -611,6 +630,7 @@ test_files:
|
|
611
630
|
- spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb
|
612
631
|
- spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb
|
613
632
|
- spec/dummy/db/migrate/080_create_library_groups.rb
|
633
|
+
- spec/dummy/db/migrate/20200425074822_create_item_custom_values.rb
|
614
634
|
- spec/dummy/db/migrate/20091214131723_create_series_statements.rb
|
615
635
|
- spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb
|
616
636
|
- spec/dummy/db/migrate/20081025083323_create_countries.rb
|
@@ -702,6 +722,7 @@ test_files:
|
|
702
722
|
- spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb
|
703
723
|
- spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb
|
704
724
|
- spec/dummy/db/migrate/20160813191733_add_family_name_first_to_library_group.rb
|
725
|
+
- spec/dummy/db/migrate/20200425072349_create_item_custom_properties.rb
|
705
726
|
- spec/dummy/db/migrate/120_create_baskets.rb
|
706
727
|
- spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb
|
707
728
|
- spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb
|
@@ -711,7 +732,6 @@ test_files:
|
|
711
732
|
- spec/dummy/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb
|
712
733
|
- spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb
|
713
734
|
- spec/dummy/db/migrate/20140813182425_add_publication_place_to_manifestation.rb
|
714
|
-
- spec/dummy/tmp/development_secret.txt
|
715
735
|
- spec/dummy/README.rdoc
|
716
736
|
- spec/models/manifestation_spec.rb
|
717
737
|
- spec/system/manifestations_spec.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
633f3802f0912e5f83fe064b815de64fe800f62b40d7167fa257cde2a6ca25d18dab4acc7c226ad0e0caaba45c4937ef6df68fc278b4ebcd2aa24193d088c1a6
|