enju_bookmark 0.1.1 → 0.1.2.pre

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,6 @@ module EnjuBookmark
5
5
  end
6
6
 
7
7
  def render_tag_cloud(tags, options = {})
8
- return nil if tags.nil?
9
8
  # TODO: add options to specify different limits and sorts
10
9
  #tags = Tag.all(:limit => 100, :order => 'taggings_count DESC').sort_by(&:name)
11
10
 
@@ -25,9 +24,9 @@ module EnjuBookmark
25
24
 
26
25
  content_tag :div, :class => "hTagcloud" do
27
26
  content_tag :ul, :class => "popularity" do
28
- tags.each do |tag|
29
- content_tag :li do
30
- link_to(tag.name, manifestations_path(:tag => tag.name), :class => classes[(tag.taggings.size - min).div(divisor)])
27
+ content_tag :li do
28
+ tags.collect do |tag|
29
+ concat(content_tag :li, link_to(tag.name, manifestations_path(:tag => tag.name), :class => classes[(tag.taggings.size - min).div(divisor)]))
31
30
  end
32
31
  end
33
32
  end
@@ -1,3 +1,3 @@
1
1
  module EnjuBookmark
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2.pre"
3
3
  end
@@ -0,0 +1,4 @@
1
+ class Setting < Settingslogic
2
+ source "#{Rails.root}/config/application.yml"
3
+ namespace Rails.env
4
+ end
@@ -0,0 +1,38 @@
1
+ defaults: &defaults
2
+ enju:
3
+ web_hostname: localhost
4
+ web_port_number: 3000
5
+
6
+ family_name_first: true
7
+ max_number_of_results: 500
8
+ write_search_log_to_file: true
9
+ csv_charset_conversion: true
10
+
11
+ # Choose a locale from 'ca', 'de', 'fr', 'jp', 'uk', 'us'
12
+ #AMAZON_AWS_HOSTNAME = 'ecs.amazonaws.com'
13
+ amazon:
14
+ aws_hostname: ecs.amazonaws.jp
15
+ hostname: www.amazon.co.jp
16
+ access_key: REPLACE_WITH_YOUR_AMAZON_ACCESS_KEY
17
+ secret_access_key: REPLACE_WITH_YOUR_AMAZON_SECRET_ACCESS_KEY
18
+
19
+ # :google, :amazon
20
+ book_jacket:
21
+ source: :google
22
+ unknown_resource:
23
+
24
+ # :mozshot, :simpleapi, :heartrails, :thumbalizr
25
+ screenshot:
26
+ generator: :mozshot
27
+
28
+ uploaded_file:
29
+ storage: :local
30
+
31
+ development:
32
+ <<: *defaults
33
+
34
+ test:
35
+ <<: *defaults
36
+
37
+ production:
38
+ <<: *defaults
@@ -0,0 +1,6 @@
1
+ class AddPatronIdentifierToPatron < ActiveRecord::Migration
2
+ def change
3
+ add_column :patrons, :patron_identifier, :string
4
+ add_index :patrons, :patron_identifier
5
+ end
6
+ end
@@ -0,0 +1,11 @@
1
+ class CreateSeriesStatementRelationships < ActiveRecord::Migration
2
+ def change
3
+ create_table :series_statement_relationships do |t|
4
+ t.integer :parent_id
5
+ t.integer :child_id
6
+ t.integer :position
7
+
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20120602141129) do
14
+ ActiveRecord::Schema.define(:version => 20120728204337) do
15
15
 
16
16
  create_table "accepts", :force => true do |t|
17
17
  t.integer "basket_id"
@@ -687,11 +687,13 @@ ActiveRecord::Schema.define(:version => 20120602141129) do
687
687
  t.text "full_name_alternative_transcription"
688
688
  t.string "birth_date"
689
689
  t.string "death_date"
690
+ t.string "patron_identifier"
690
691
  end
691
692
 
692
693
  add_index "patrons", ["country_id"], :name => "index_patrons_on_country_id"
693
694
  add_index "patrons", ["full_name"], :name => "index_patrons_on_full_name"
694
695
  add_index "patrons", ["language_id"], :name => "index_patrons_on_language_id"
696
+ add_index "patrons", ["patron_identifier"], :name => "index_patrons_on_patron_identifier"
695
697
  add_index "patrons", ["required_role_id"], :name => "index_patrons_on_required_role_id"
696
698
  add_index "patrons", ["user_id"], :name => "index_patrons_on_user_id", :unique => true
697
699
 
@@ -903,6 +905,14 @@ ActiveRecord::Schema.define(:version => 20120602141129) do
903
905
  add_index "series_statement_merges", ["series_statement_id"], :name => "index_series_statement_merges_on_series_statement_id"
904
906
  add_index "series_statement_merges", ["series_statement_merge_list_id"], :name => "index_series_statement_merges_on_series_statement_merge_list_id"
905
907
 
908
+ create_table "series_statement_relationships", :force => true do |t|
909
+ t.integer "parent_id"
910
+ t.integer "child_id"
911
+ t.integer "position"
912
+ t.datetime "created_at", :null => false
913
+ t.datetime "updated_at", :null => false
914
+ end
915
+
906
916
  create_table "series_statements", :force => true do |t|
907
917
  t.text "original_title"
908
918
  t.text "numbering"
Binary file
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_bookmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.1.2.pre
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kosuke Tanabe
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-31 00:00:00.000000000 Z
12
+ date: 2012-08-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -114,7 +114,7 @@ dependencies:
114
114
  requirements:
115
115
  - - ~>
116
116
  - !ruby/object:Gem::Version
117
- version: 0.1.0.pre
117
+ version: 0.1.0.pre5
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
@@ -122,7 +122,7 @@ dependencies:
122
122
  requirements:
123
123
  - - ~>
124
124
  - !ruby/object:Gem::Version
125
- version: 0.1.0.pre
125
+ version: 0.1.0.pre5
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: enju_library
128
128
  requirement: !ruby/object:Gem::Requirement
@@ -130,7 +130,7 @@ dependencies:
130
130
  requirements:
131
131
  - - ~>
132
132
  - !ruby/object:Gem::Version
133
- version: 0.1.0.pre
133
+ version: 0.1.0.pre3
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
@@ -138,7 +138,7 @@ dependencies:
138
138
  requirements:
139
139
  - - ~>
140
140
  - !ruby/object:Gem::Version
141
- version: 0.1.0.pre
141
+ version: 0.1.0.pre3
142
142
  - !ruby/object:Gem::Dependency
143
143
  name: enju_circulation
144
144
  requirement: !ruby/object:Gem::Requirement
@@ -146,7 +146,7 @@ dependencies:
146
146
  requirements:
147
147
  - - ~>
148
148
  - !ruby/object:Gem::Version
149
- version: 0.1.0.pre
149
+ version: 0.1.0.pre4
150
150
  type: :development
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
@@ -154,7 +154,7 @@ dependencies:
154
154
  requirements:
155
155
  - - ~>
156
156
  - !ruby/object:Gem::Version
157
- version: 0.1.0.pre
157
+ version: 0.1.0.pre4
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: enju_manifestation_viewer
160
160
  requirement: !ruby/object:Gem::Requirement
@@ -264,6 +264,7 @@ files:
264
264
  - spec/dummy/app/helpers/application_helper.rb
265
265
  - spec/dummy/app/models/ability.rb
266
266
  - spec/dummy/app/models/role.rb
267
+ - spec/dummy/app/models/setting.rb
267
268
  - spec/dummy/app/models/user.rb
268
269
  - spec/dummy/app/models/user_group.rb
269
270
  - spec/dummy/app/models/user_has_role.rb
@@ -275,6 +276,7 @@ files:
275
276
  - spec/dummy/app/views/page/404.mobile.erb
276
277
  - spec/dummy/app/views/page/404.xml.erb
277
278
  - spec/dummy/config/application.rb
279
+ - spec/dummy/config/application.yml
278
280
  - spec/dummy/config/boot.rb
279
281
  - spec/dummy/config/database.yml
280
282
  - spec/dummy/config/environment.rb
@@ -415,7 +417,9 @@ files:
415
417
  - spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb
416
418
  - spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb
417
419
  - spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb
420
+ - spec/dummy/db/migrate/20120511072422_add_patron_identifier_to_patron.rb
418
421
  - spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb
422
+ - spec/dummy/db/migrate/20120728204337_create_series_statement_relationships.rb
419
423
  - spec/dummy/db/schema.rb
420
424
  - spec/dummy/db/test.sqlite3
421
425
  - spec/dummy/lib/enju_leaf/calculate_stat.rb
@@ -494,9 +498,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
494
498
  required_rubygems_version: !ruby/object:Gem::Requirement
495
499
  none: false
496
500
  requirements:
497
- - - ! '>='
501
+ - - ! '>'
498
502
  - !ruby/object:Gem::Version
499
- version: '0'
503
+ version: 1.3.1
500
504
  requirements: []
501
505
  rubyforge_project:
502
506
  rubygems_version: 1.8.23
@@ -514,6 +518,7 @@ test_files:
514
518
  - spec/dummy/app/helpers/application_helper.rb
515
519
  - spec/dummy/app/models/ability.rb
516
520
  - spec/dummy/app/models/role.rb
521
+ - spec/dummy/app/models/setting.rb
517
522
  - spec/dummy/app/models/user.rb
518
523
  - spec/dummy/app/models/user_group.rb
519
524
  - spec/dummy/app/models/user_has_role.rb
@@ -525,6 +530,7 @@ test_files:
525
530
  - spec/dummy/app/views/page/404.mobile.erb
526
531
  - spec/dummy/app/views/page/404.xml.erb
527
532
  - spec/dummy/config/application.rb
533
+ - spec/dummy/config/application.yml
528
534
  - spec/dummy/config/boot.rb
529
535
  - spec/dummy/config/database.yml
530
536
  - spec/dummy/config/environment.rb
@@ -665,7 +671,9 @@ test_files:
665
671
  - spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb
666
672
  - spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb
667
673
  - spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb
674
+ - spec/dummy/db/migrate/20120511072422_add_patron_identifier_to_patron.rb
668
675
  - spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb
676
+ - spec/dummy/db/migrate/20120728204337_create_series_statement_relationships.rb
669
677
  - spec/dummy/db/schema.rb
670
678
  - spec/dummy/db/test.sqlite3
671
679
  - spec/dummy/lib/enju_leaf/calculate_stat.rb