enju_trunk_ndl_statistics 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +15 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +40 -0
  5. data/app/assets/javascripts/enju_trunk_statistics/application.js +15 -0
  6. data/app/assets/stylesheets/enju_trunk_statistics/application.css +13 -0
  7. data/app/controllers/enju_trunk_statistics/application_controller.rb +4 -0
  8. data/app/controllers/ndl_statistics_controller.rb +47 -0
  9. data/app/helpers/enju_trunk_statistics/application_helper.rb +4 -0
  10. data/app/layouts/age_report.tlf +1 -0
  11. data/app/layouts/daily_report.tlf +1 -0
  12. data/app/layouts/day_report.tlf +1 -0
  13. data/app/layouts/department_daily.tlf +1 -0
  14. data/app/layouts/departments_daily.tlf +1 -0
  15. data/app/layouts/departments_monthly.tlf +1 -0
  16. data/app/layouts/groups_daily.tlf +1 -0
  17. data/app/layouts/groups_monthly.tlf +1 -0
  18. data/app/layouts/index.html.erb +97 -0
  19. data/app/layouts/inout_items_daily.tlf +1 -0
  20. data/app/layouts/inout_items_monthly.tlf +1 -0
  21. data/app/layouts/items_daily.tlf +1 -0
  22. data/app/layouts/items_monthly.tlf +1 -0
  23. data/app/layouts/loans_daily.tlf +1 -0
  24. data/app/layouts/loans_monthly.tlf +1 -0
  25. data/app/layouts/monthly_report.tlf +1 -0
  26. data/app/layouts/timezone_report.tlf +1 -0
  27. data/app/models/ndl_stat_accept.rb +10 -0
  28. data/app/models/ndl_stat_access.rb +5 -0
  29. data/app/models/ndl_stat_checkout.rb +6 -0
  30. data/app/models/ndl_stat_manifestation.rb +12 -0
  31. data/app/models/ndl_statistic.rb +370 -0
  32. data/app/views/ndl_statistics/index.html.erb +19 -0
  33. data/config/locales/ja.yml +28 -0
  34. data/config/routes.rb +5 -0
  35. data/db/migrate/20130124084332_create_ndl_statistics.rb +9 -0
  36. data/db/migrate/20130815083929_create_ndl_stat_manifestations.rb +16 -0
  37. data/db/migrate/20130820083546_create_ndl_stat_checkouts.rb +14 -0
  38. data/db/migrate/20130820084019_create_ndl_stat_accepts.rb +16 -0
  39. data/db/migrate/20130828091400_create_ndl_stat_accesses.rb +14 -0
  40. data/lib/enju_trunk_ndl_statistics.rb +4 -0
  41. data/lib/enju_trunk_ndl_statistics/engine.rb +4 -0
  42. data/lib/enju_trunk_ndl_statistics/version.rb +3 -0
  43. metadata +126 -0
@@ -0,0 +1,19 @@
1
+ <div id="content_detail" class="ui-corner-all">
2
+ <h1 class="title"><%= t('activerecord.models.ndl_statistic') -%></h1>
3
+ <div id="content_list">
4
+ <div style="color: green"><%= flash[:message] -%></div>
5
+ <%= form_tag(:action => :get_ndl_report) do -%>
6
+ 出力年度:&nbsp;
7
+ 平成 <%= text_field_tag :term, @term ,:class => "resource_integer" %> 年度
8
+ &nbsp;
9
+ <%= submit_tag t('ndl_report.submit') %>
10
+ <%- end -%>
11
+
12
+ </div>
13
+ </div>
14
+
15
+ <div id="submenu" class="ui-corner-all">
16
+ <ul>
17
+ <li><%= link_to t('page.back'), page_statistics_path %>
18
+ </ul>
19
+ </div>
@@ -0,0 +1,28 @@
1
+ ja:
2
+ activerecord:
3
+ models:
4
+ ndl_statistic: 支部図書館業務年報
5
+ ndl_statistics:
6
+ pub_flg:
7
+ "true": "公開資料"
8
+ "false": "非公開込み"
9
+ type:
10
+ all_items: 資料総数
11
+ removed: 今年度除籍数
12
+ removed_sum: 除籍数
13
+ region:
14
+ domestic: 日本
15
+ foregin: 外国
16
+ checkout:
17
+ items_count: 貸出冊数
18
+ users_count: 貸出人数
19
+ carrier_type:
20
+ print: 印刷物
21
+ other: それ以外
22
+ access_log_type:
23
+ top_access: トップ画面
24
+ manifestations_index: 資料の一覧画面
25
+ materials_show: 資料の閲覧画面
26
+ internal:
27
+ "true": 内部
28
+ "false": 外部
data/config/routes.rb ADDED
@@ -0,0 +1,5 @@
1
+ Rails.application.routes.draw do
2
+ resources :ndl_statistics do
3
+ post :get_ndl_report, :on => :collection
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ class CreateNdlStatistics < ActiveRecord::Migration
2
+ def change
3
+ create_table :ndl_statistics do |t|
4
+ t.integer :term_id, :null => false
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,16 @@
1
+ class CreateNdlStatManifestations < ActiveRecord::Migration
2
+ def change
3
+ create_table :ndl_stat_manifestations do |t|
4
+ t.string :stat_type, :null => false
5
+ t.string :region, :null => false
6
+ t.integer :checkout_type_id, :null => false
7
+ t.integer :carrier_type_id, :null => false
8
+ t.integer :count, :null => false
9
+ t.boolean :pub_flg, :null => false
10
+ t.references :ndl_statistic, :null => false
11
+
12
+ t.timestamps
13
+ end
14
+ add_index :ndl_stat_manifestations, :ndl_statistic_id
15
+ end
16
+ end
@@ -0,0 +1,14 @@
1
+ class CreateNdlStatCheckouts < ActiveRecord::Migration
2
+ def change
3
+ create_table :ndl_stat_checkouts do |t|
4
+ t.integer :checkout_type_id, :null => false
5
+ t.integer :carrier_type_id, :null => false
6
+ t.integer :users_count, :null => false
7
+ t.integer :items_count, :null => false
8
+ t.references :ndl_statistic, :null => false
9
+
10
+ t.timestamps
11
+ end
12
+ add_index :ndl_stat_checkouts, :ndl_statistic_id
13
+ end
14
+ end
@@ -0,0 +1,16 @@
1
+ class CreateNdlStatAccepts < ActiveRecord::Migration
2
+ def change
3
+ create_table :ndl_stat_accepts do |t|
4
+ t.string :region, :null => false
5
+ t.integer :accept_type_id, :null => false
6
+ t.integer :checkout_type_id, :null => false
7
+ t.integer :carrier_type_id, :null => false
8
+ t.integer :count, :null => false
9
+ t.boolean :pub_flg, :null => false
10
+ t.references :ndl_statistic, :null => false
11
+
12
+ t.timestamps
13
+ end
14
+ add_index :ndl_stat_accepts, :ndl_statistic_id
15
+ end
16
+ end
@@ -0,0 +1,14 @@
1
+ class CreateNdlStatAccesses < ActiveRecord::Migration
2
+ def change
3
+ create_table :ndl_stat_accesses do |t|
4
+ t.string :log_type, :null => false
5
+ t.boolean :internal, :null => false
6
+ t.integer :count, :null => false
7
+ t.references :ndl_statistic, :null => false
8
+
9
+ t.timestamps
10
+ end
11
+ add_index :ndl_stat_accesses, :ndl_statistic_id
12
+ end
13
+
14
+ end
@@ -0,0 +1,4 @@
1
+ require "enju_trunk_ndl_statistics/engine"
2
+
3
+ module EnjuTrunkNdlStatistics
4
+ end
@@ -0,0 +1,4 @@
1
+ module EnjuTrunkNdlStatistics
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,3 @@
1
+ module EnjuTrunkNdlStatistics
2
+ VERSION = "1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,126 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: enju_trunk_ndl_statistics
3
+ version: !ruby/object:Gem::Version
4
+ version: '1.0'
5
+ platform: ruby
6
+ authors:
7
+ - Emiko Tamiya
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-02-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 3.2.8
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 3.2.8
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: axlsx
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: ''
56
+ email:
57
+ - tamiya.emiko@miraitsystems.jp
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - MIT-LICENSE
63
+ - README.rdoc
64
+ - Rakefile
65
+ - app/assets/javascripts/enju_trunk_statistics/application.js
66
+ - app/assets/stylesheets/enju_trunk_statistics/application.css
67
+ - app/controllers/enju_trunk_statistics/application_controller.rb
68
+ - app/controllers/ndl_statistics_controller.rb
69
+ - app/helpers/enju_trunk_statistics/application_helper.rb
70
+ - app/layouts/age_report.tlf
71
+ - app/layouts/daily_report.tlf
72
+ - app/layouts/day_report.tlf
73
+ - app/layouts/department_daily.tlf
74
+ - app/layouts/departments_daily.tlf
75
+ - app/layouts/departments_monthly.tlf
76
+ - app/layouts/groups_daily.tlf
77
+ - app/layouts/groups_monthly.tlf
78
+ - app/layouts/index.html.erb
79
+ - app/layouts/inout_items_daily.tlf
80
+ - app/layouts/inout_items_monthly.tlf
81
+ - app/layouts/items_daily.tlf
82
+ - app/layouts/items_monthly.tlf
83
+ - app/layouts/loans_daily.tlf
84
+ - app/layouts/loans_monthly.tlf
85
+ - app/layouts/monthly_report.tlf
86
+ - app/layouts/timezone_report.tlf
87
+ - app/models/ndl_stat_accept.rb
88
+ - app/models/ndl_stat_access.rb
89
+ - app/models/ndl_stat_checkout.rb
90
+ - app/models/ndl_stat_manifestation.rb
91
+ - app/models/ndl_statistic.rb
92
+ - app/views/ndl_statistics/index.html.erb
93
+ - config/locales/ja.yml
94
+ - config/routes.rb
95
+ - db/migrate/20130124084332_create_ndl_statistics.rb
96
+ - db/migrate/20130815083929_create_ndl_stat_manifestations.rb
97
+ - db/migrate/20130820083546_create_ndl_stat_checkouts.rb
98
+ - db/migrate/20130820084019_create_ndl_stat_accepts.rb
99
+ - db/migrate/20130828091400_create_ndl_stat_accesses.rb
100
+ - lib/enju_trunk_ndl_statistics.rb
101
+ - lib/enju_trunk_ndl_statistics/engine.rb
102
+ - lib/enju_trunk_ndl_statistics/version.rb
103
+ homepage: https://github.com/nakamura-akifumi/enju_trunk
104
+ licenses: []
105
+ metadata: {}
106
+ post_install_message:
107
+ rdoc_options: []
108
+ require_paths:
109
+ - lib
110
+ required_ruby_version: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ! '>='
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ required_rubygems_version: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ! '>='
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ requirements: []
121
+ rubyforge_project:
122
+ rubygems_version: 2.2.2
123
+ signing_key:
124
+ specification_version: 4
125
+ summary: ! 'EnjuTrunkNdlStatistics: annual statistics report for NDL branches'
126
+ test_files: []