enju_bookmark 0.1.2.pre7 → 0.1.2.pre8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8c592ad67e5ecb09960cb7e9b0b5205a9fe4180f
4
+ data.tar.gz: 5b60f8eeb7160dd50eab72abdb6548f05f97d9b0
5
+ SHA512:
6
+ metadata.gz: 223cb353a2a4e9ba0a077a0c30c8a04d4ad073386d5743b3bb5dd852ef00f7bab4fcfdcfc21aa90742edd9355aef4405e91733b5c6e67569e6f71489ff87fddc
7
+ data.tar.gz: 67200049f968de0e221ad6af92f29c5d48fddc230eae21887a35c8ff06b14e844939685891f9849d416fab80682d59bb842f3bd415fc1125229e94ee1dfeb12e
@@ -0,0 +1,43 @@
1
+ module EnjuBookmark
2
+ class Ability
3
+ include CanCan::Ability
4
+
5
+ def initialize(user, ip_address = nil)
6
+ case user.try(:role).try(:name)
7
+ when 'Administrator'
8
+ can :manage, [
9
+ Bookmark,
10
+ BookmarkStat,
11
+ BookmarkStatHasManifestation,
12
+ Tag
13
+ ]
14
+ when 'Librarian'
15
+ can [:read, :create, :update], BookmarkStat
16
+ can :read, BookmarkStatHasManifestation
17
+ can :manage, [
18
+ Bookmark,
19
+ Tag
20
+ ]
21
+ when 'User'
22
+ can [:index, :create], Bookmark
23
+ can :show, Bookmark do |bookmark|
24
+ if bookmark.user == user
25
+ true
26
+ elsif user.share_bookmarks
27
+ true
28
+ else
29
+ false
30
+ end
31
+ end
32
+ can [:update, :destroy], Bookmark do |bookmark|
33
+ bookmark.user == user
34
+ end
35
+ can :read, BookmarkStat
36
+ can :read, Tag
37
+ else
38
+ can :read, BookmarkStat
39
+ can :read, Tag
40
+ end
41
+ end
42
+ end
43
+ end
@@ -38,7 +38,7 @@
38
38
  <div class="actions">
39
39
  <%= f.submit %>
40
40
  </div>
41
- <%= javascript_tag("$('#bookmark_tag_list').focus()") -%>
41
+ <%= javascript_tag("$(function(){$('#bookmark_tag_list').focus()})") %>
42
42
  <%- end -%>
43
43
  </div>
44
44
  </div>
@@ -10,7 +10,7 @@
10
10
  <%= t('tag.use_space_as_delimiter') -%>
11
11
  </div>
12
12
  <%- end -%>
13
- <%= javascript_tag("$('#bookmark_tag_list').focus()") -%>
13
+ <%= javascript_tag("$(function(){$('#bookmark_tag_list').focus()})") %>
14
14
  <%- else -%>
15
15
  <!-- bookmarked_by_other_patron_or_not_bookmarked -->
16
16
  <%= form_for(:bookmark, :url => bookmarks_path(:mode => 'tag_edit'), :html => { :method => :post }) do |f| -%>
@@ -24,6 +24,6 @@
24
24
  <%= t('tag.use_space_as_delimiter') -%>
25
25
  </div>
26
26
  <%- end -%>
27
- <%= javascript_tag("$('#bookmark_tag_list').focus()") -%>
27
+ <%= javascript_tag("$(function(){$('#bookmark_tag_list').focus()})") %>
28
28
  <%- end -%>
29
29
  <%- end -%>
@@ -0,0 +1,41 @@
1
+ module EnjuBookmark
2
+ module BookmarkManifestation
3
+ def self.included(base)
4
+ base.extend ClassMethods
5
+ end
6
+
7
+ module ClassMethods
8
+ def enju_bookmark_manifestation_model
9
+ include InstanceMethods
10
+ has_many :bookmarks, :include => :tags, :dependent => :destroy, :foreign_key => :manifestation_id
11
+ has_many :users, :through => :bookmarks
12
+ end
13
+ end
14
+
15
+ module InstanceMethods
16
+ def owned_tags_by_solr
17
+ searchable do
18
+ string :tag, :multiple => true do
19
+ tags.collect(&:name)
20
+ end
21
+ text :tag do
22
+ tags.collect(&:name)
23
+ end
24
+ end
25
+ end
26
+
27
+ def bookmarked?(user)
28
+ return true if user.bookmarks.where(:url => url).first
29
+ false
30
+ end
31
+
32
+ def tags
33
+ if self.bookmarks.first
34
+ self.bookmarks.tag_counts
35
+ else
36
+ []
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -5,7 +5,7 @@ module EnjuBookmark
5
5
  end
6
6
 
7
7
  module ClassMethods
8
- def enju_bookmark_user
8
+ def enju_bookmark_user_model
9
9
  include InstanceMethods
10
10
  has_many :bookmarks, :dependent => :destroy
11
11
  acts_as_tagger
@@ -1,3 +1,3 @@
1
1
  module EnjuBookmark
2
- VERSION = "0.1.2.pre7"
2
+ VERSION = "0.1.2.pre8"
3
3
  end
data/lib/enju_bookmark.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require "enju_bookmark/engine"
2
2
  require "enju_bookmark/user"
3
+ require "enju_bookmark/manifestation"
3
4
  require "enju_bookmark/bookmark_url"
4
5
  require "enju_bookmark/calculate_stat"
5
6
  require "enju_bookmark/expire_tag_cloud"
@@ -10,3 +11,4 @@ module EnjuBookmark
10
11
  end
11
12
 
12
13
  ActiveRecord::Base.send :include, EnjuBookmark::BookmarkUser
14
+ ActiveRecord::Base.send :include, EnjuBookmark::BookmarkManifestation
@@ -1,41 +1,43 @@
1
- class Ability
2
- include CanCan::Ability
1
+ #module EnjuBookmark
2
+ class Ability
3
+ include CanCan::Ability
3
4
 
4
- def initialize(user)
5
- case user.try(:role).try(:name)
6
- when 'Administrator'
7
- can :manage, [
8
- Bookmark,
9
- BookmarkStat,
10
- BookmarkStatHasManifestation,
11
- Tag
12
- ]
13
- when 'Librarian'
14
- can [:read, :create, :update], BookmarkStat
15
- can :read, BookmarkStatHasManifestation
16
- can :manage, [
17
- Bookmark,
18
- Tag
19
- ]
20
- when 'User'
21
- can [:index, :create], Bookmark
22
- can :show, Bookmark do |bookmark|
23
- if bookmark.user == user
24
- true
25
- elsif user.share_bookmarks
26
- true
27
- else
28
- false
5
+ def initialize(user, ip_address = nil)
6
+ case user.try(:role).try(:name)
7
+ when 'Administrator'
8
+ can :manage, [
9
+ Bookmark,
10
+ BookmarkStat,
11
+ BookmarkStatHasManifestation,
12
+ Tag
13
+ ]
14
+ when 'Librarian'
15
+ can [:read, :create, :update], BookmarkStat
16
+ can :read, BookmarkStatHasManifestation
17
+ can :manage, [
18
+ Bookmark,
19
+ Tag
20
+ ]
21
+ when 'User'
22
+ can [:index, :create], Bookmark
23
+ can :show, Bookmark do |bookmark|
24
+ if bookmark.user == user
25
+ true
26
+ elsif user.share_bookmarks
27
+ true
28
+ else
29
+ false
30
+ end
29
31
  end
32
+ can [:update, :destroy], Bookmark do |bookmark|
33
+ bookmark.user == user
34
+ end
35
+ can :read, BookmarkStat
36
+ can :read, Tag
37
+ else
38
+ can :read, BookmarkStat
39
+ can :read, Tag
30
40
  end
31
- can [:update, :destroy], Bookmark do |bookmark|
32
- bookmark.user == user
33
- end
34
- can :read, BookmarkStat
35
- can :read, Tag
36
- else
37
- can :read, BookmarkStat
38
- can :read, Tag
39
41
  end
40
42
  end
41
- end
43
+ #end
@@ -11,7 +11,7 @@ class User < ActiveRecord::Base
11
11
  has_one :role, :through => :user_has_role
12
12
  belongs_to :required_role, :class_name => 'Role', :foreign_key => 'required_role_id'
13
13
 
14
- enju_bookmark_user
14
+ enju_bookmark_user_model
15
15
 
16
16
  def has_role?(role_in_question)
17
17
  return false unless role
@@ -43,8 +43,6 @@ module Dummy
43
43
  end
44
44
  end
45
45
 
46
- require 'enju_circulation'
47
46
  require 'enju_biblio'
48
47
  require 'enju_library'
49
- require 'enju_manifestation_viewer'
50
- require 'mobile-fu'
48
+ require 'mobylette'
Binary file
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_bookmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.pre7
5
- prerelease: 6
4
+ version: 0.1.2.pre8
6
5
  platform: ruby
7
6
  authors:
8
7
  - Kosuke Tanabe
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-12-13 00:00:00.000000000 Z
11
+ date: 2013-03-13 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: acts-as-taggable-on
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,161 +41,113 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: state_machine
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: sqlite3
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rspec-rails
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: factory_girl_rails
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - '>='
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - '>='
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: enju_biblio
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
101
  - - ~>
116
102
  - !ruby/object:Gem::Version
117
- version: 0.1.0.pre13
103
+ version: 0.1.0.pre22
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
108
  - - ~>
124
109
  - !ruby/object:Gem::Version
125
- version: 0.1.0.pre13
110
+ version: 0.1.0.pre22
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: enju_library
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
115
  - - ~>
132
116
  - !ruby/object:Gem::Version
133
- version: 0.1.0.pre6
117
+ version: 0.1.0.pre11
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
122
  - - ~>
140
123
  - !ruby/object:Gem::Version
141
- version: 0.1.0.pre6
142
- - !ruby/object:Gem::Dependency
143
- name: enju_circulation
144
- requirement: !ruby/object:Gem::Requirement
145
- none: false
146
- requirements:
147
- - - ~>
148
- - !ruby/object:Gem::Version
149
- version: 0.1.0.pre9
150
- type: :development
151
- prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
- requirements:
155
- - - ~>
156
- - !ruby/object:Gem::Version
157
- version: 0.1.0.pre9
158
- - !ruby/object:Gem::Dependency
159
- name: enju_manifestation_viewer
160
- requirement: !ruby/object:Gem::Requirement
161
- none: false
162
- requirements:
163
- - - ! '>='
164
- - !ruby/object:Gem::Version
165
- version: '0'
166
- type: :development
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
- requirements:
171
- - - ! '>='
172
- - !ruby/object:Gem::Version
173
- version: '0'
124
+ version: 0.1.0.pre11
174
125
  - !ruby/object:Gem::Dependency
175
126
  name: sunspot_solr
176
127
  requirement: !ruby/object:Gem::Requirement
177
- none: false
178
128
  requirements:
179
129
  - - ~>
180
130
  - !ruby/object:Gem::Version
181
- version: 2.0.0.pre.120925
131
+ version: 2.0.0
182
132
  type: :development
183
133
  prerelease: false
184
134
  version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
135
  requirements:
187
136
  - - ~>
188
137
  - !ruby/object:Gem::Version
189
- version: 2.0.0.pre.120925
138
+ version: 2.0.0
190
139
  - !ruby/object:Gem::Dependency
191
- name: mobile-fu
140
+ name: mobylette
192
141
  requirement: !ruby/object:Gem::Requirement
193
- none: false
194
142
  requirements:
195
- - - ! '>='
143
+ - - '>='
196
144
  - !ruby/object:Gem::Version
197
145
  version: '0'
198
146
  type: :development
199
147
  prerelease: false
200
148
  version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
149
  requirements:
203
- - - ! '>='
150
+ - - '>='
204
151
  - !ruby/object:Gem::Version
205
152
  version: '0'
206
153
  description: Purchase request management for Next-L Enju
@@ -218,6 +165,7 @@ files:
218
165
  - app/models/bookmark_stat.rb
219
166
  - app/models/bookmark_stat_has_manifestation.rb
220
167
  - app/models/bookmark_sweeper.rb
168
+ - app/models/enju_bookmark/ability.rb
221
169
  - app/models/tag.rb
222
170
  - app/views/bookmark_stat_has_manifestations/_form.html.erb
223
171
  - app/views/bookmark_stat_has_manifestations/edit.html.erb
@@ -261,6 +209,7 @@ files:
261
209
  - lib/enju_bookmark/calculate_stat.rb
262
210
  - lib/enju_bookmark/engine.rb
263
211
  - lib/enju_bookmark/expire_tag_cloud.rb
212
+ - lib/enju_bookmark/manifestation.rb
264
213
  - lib/enju_bookmark/suggest_tag.rb
265
214
  - lib/enju_bookmark/user.rb
266
215
  - lib/enju_bookmark/version.rb
@@ -456,7 +405,7 @@ files:
456
405
  - spec/dummy/solr/conf/stopwords.txt
457
406
  - spec/dummy/solr/conf/synonyms.txt
458
407
  - spec/dummy/solr/data/test/index/segments.gen
459
- - spec/dummy/solr/data/test/index/segments_66
408
+ - spec/dummy/solr/data/test/index/segments_bo
460
409
  - spec/dummy/solr/data/test/spellchecker/segments.gen
461
410
  - spec/dummy/solr/data/test/spellchecker/segments_1
462
411
  - spec/factories/bookmark.rb
@@ -469,11 +418,8 @@ files:
469
418
  - spec/fixtures/bookmark_stats.yml
470
419
  - spec/fixtures/bookmarks.yml
471
420
  - spec/fixtures/carrier_types.yml
472
- - spec/fixtures/checkout_types.yml
473
- - spec/fixtures/circulation_statuses.yml
474
421
  - spec/fixtures/content_types.yml
475
422
  - spec/fixtures/exemplifies.yml
476
- - spec/fixtures/item_has_use_restrictions.yml
477
423
  - spec/fixtures/items.yml
478
424
  - spec/fixtures/languages.yml
479
425
  - spec/fixtures/libraries.yml
@@ -485,7 +431,6 @@ files:
485
431
  - spec/fixtures/series_has_manifestations.yml
486
432
  - spec/fixtures/series_statements.yml
487
433
  - spec/fixtures/shelves.yml
488
- - spec/fixtures/use_restrictions.yml
489
434
  - spec/fixtures/user_has_roles.yml
490
435
  - spec/fixtures/users.yml
491
436
  - spec/models/bookmark_spec.rb
@@ -495,32 +440,28 @@ files:
495
440
  - spec/spec_helper.rb
496
441
  - spec/support/controller_macros.rb
497
442
  - spec/support/devise.rb
498
- homepage: https://github.com/nabeta/enju_bookmark
443
+ homepage: https://github.com/next-l/enju_bookmark
499
444
  licenses: []
445
+ metadata: {}
500
446
  post_install_message:
501
447
  rdoc_options: []
502
448
  require_paths:
503
449
  - lib
504
450
  required_ruby_version: !ruby/object:Gem::Requirement
505
- none: false
506
451
  requirements:
507
- - - ! '>='
452
+ - - '>='
508
453
  - !ruby/object:Gem::Version
509
454
  version: '0'
510
- segments:
511
- - 0
512
- hash: -2051150835249026961
513
455
  required_rubygems_version: !ruby/object:Gem::Requirement
514
- none: false
515
456
  requirements:
516
- - - ! '>'
457
+ - - '>'
517
458
  - !ruby/object:Gem::Version
518
459
  version: 1.3.1
519
460
  requirements: []
520
461
  rubyforge_project:
521
- rubygems_version: 1.8.23
462
+ rubygems_version: 2.0.0
522
463
  signing_key:
523
- specification_version: 3
464
+ specification_version: 4
524
465
  summary: enju_bookmark plugin
525
466
  test_files:
526
467
  - spec/controllers/bookmark_stat_has_manifestations_controller_spec.rb
@@ -709,7 +650,7 @@ test_files:
709
650
  - spec/dummy/solr/conf/stopwords.txt
710
651
  - spec/dummy/solr/conf/synonyms.txt
711
652
  - spec/dummy/solr/data/test/index/segments.gen
712
- - spec/dummy/solr/data/test/index/segments_66
653
+ - spec/dummy/solr/data/test/index/segments_bo
713
654
  - spec/dummy/solr/data/test/spellchecker/segments.gen
714
655
  - spec/dummy/solr/data/test/spellchecker/segments_1
715
656
  - spec/factories/bookmark.rb
@@ -722,11 +663,8 @@ test_files:
722
663
  - spec/fixtures/bookmark_stats.yml
723
664
  - spec/fixtures/bookmarks.yml
724
665
  - spec/fixtures/carrier_types.yml
725
- - spec/fixtures/checkout_types.yml
726
- - spec/fixtures/circulation_statuses.yml
727
666
  - spec/fixtures/content_types.yml
728
667
  - spec/fixtures/exemplifies.yml
729
- - spec/fixtures/item_has_use_restrictions.yml
730
668
  - spec/fixtures/items.yml
731
669
  - spec/fixtures/languages.yml
732
670
  - spec/fixtures/libraries.yml
@@ -738,7 +676,6 @@ test_files:
738
676
  - spec/fixtures/series_has_manifestations.yml
739
677
  - spec/fixtures/series_statements.yml
740
678
  - spec/fixtures/shelves.yml
741
- - spec/fixtures/use_restrictions.yml
742
679
  - spec/fixtures/user_has_roles.yml
743
680
  - spec/fixtures/users.yml
744
681
  - spec/models/bookmark_spec.rb
@@ -1,34 +0,0 @@
1
- # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
-
3
- checkout_type_00001:
4
- id: 1
5
- name: book
6
- display_name: book
7
- note:
8
- position: 1
9
- checkout_type_00002:
10
- id: 2
11
- name: serial
12
- display_name: serial
13
- note:
14
- position: 2
15
- checkout_type_00003:
16
- id: 3
17
- name: cd
18
- display_name: cd
19
- note:
20
- position: 3
21
-
22
- # == Schema Information
23
- #
24
- # Table name: checkout_types
25
- #
26
- # id :integer not null, primary key
27
- # name :string(255) not null
28
- # display_name :text
29
- # note :text
30
- # position :integer
31
- # created_at :datetime
32
- # updated_at :datetime
33
- #
34
-
@@ -1,127 +0,0 @@
1
- ---
2
- circulation_status_00005:
3
- name: In Process
4
- display_name: In Process
5
- updated_at: 2008-02-15 17:31:42.422676 +09:00
6
- id: 5
7
- note: ""
8
- created_at: 2008-02-15 17:31:42.422676 +09:00
9
- position: 5
10
- circulation_status_00006:
11
- name: In Transit Between Library Locations
12
- display_name: In Transit Between Library Locations
13
- updated_at: 2008-02-15 17:31:51.227056 +09:00
14
- id: 6
15
- note: ""
16
- created_at: 2008-02-15 17:31:51.227056 +09:00
17
- position: 6
18
- circulation_status_00007:
19
- name: Lost
20
- display_name: Lost
21
- updated_at: 2008-02-15 17:31:58.627987 +09:00
22
- id: 7
23
- note: ""
24
- created_at: 2008-02-15 17:31:58.627987 +09:00
25
- position: 7
26
- circulation_status_00008:
27
- name: Missing
28
- display_name: Missing
29
- updated_at: 2008-02-15 17:32:07.006541 +09:00
30
- id: 8
31
- note: ""
32
- created_at: 2008-02-15 17:32:07.006541 +09:00
33
- position: 8
34
- circulation_status_00010:
35
- name: On Loan
36
- display_name: On Loan
37
- updated_at: 2008-02-15 17:32:22.969896 +09:00
38
- id: 10
39
- note: ""
40
- created_at: 2008-02-15 17:32:22.969896 +09:00
41
- position: 10
42
- circulation_status_00009:
43
- name: Not Available
44
- display_name: Not Available
45
- updated_at: 2008-02-15 17:32:15.454067 +09:00
46
- id: 9
47
- note: ""
48
- created_at: 2008-02-15 17:32:15.454067 +09:00
49
- position: 9
50
- circulation_status_00011:
51
- name: On Order
52
- display_name: On Order
53
- updated_at: 2008-02-15 17:32:30.675735 +09:00
54
- id: 11
55
- note: ""
56
- created_at: 2008-02-15 17:32:30.675735 +09:00
57
- position: 11
58
- circulation_status_00012:
59
- name: Pending Transfer
60
- display_name: Pending Transfer
61
- updated_at: 2008-02-15 17:32:39.395000 +09:00
62
- id: 12
63
- note: ""
64
- created_at: 2008-02-15 17:32:39.395000 +09:00
65
- position: 12
66
- circulation_status_00001:
67
- name: Available For Pickup
68
- display_name: Available For Pickup
69
- updated_at: 2008-02-15 17:31:10.588524 +09:00
70
- id: 1
71
- note: ""
72
- created_at: 2008-02-15 17:31:10.588524 +09:00
73
- position: 1
74
- circulation_status_00002:
75
- name: Available On Shelf
76
- display_name: Available On Shelf
77
- updated_at: 2008-02-15 17:31:18.946298 +09:00
78
- id: 2
79
- note: ""
80
- created_at: 2008-02-15 17:31:18.946298 +09:00
81
- position: 2
82
- circulation_status_00013:
83
- name: Recalled
84
- display_name: Recalled
85
- updated_at: 2008-02-15 17:32:48.355304 +09:00
86
- id: 13
87
- note: ""
88
- created_at: 2008-02-15 17:32:48.355304 +09:00
89
- position: 13
90
- circulation_status_00014:
91
- name: Waiting To Be Reshelved
92
- display_name: Waiting To Be Reshelved
93
- updated_at: 2008-02-15 17:32:59.078750 +09:00
94
- id: 14
95
- note: ""
96
- created_at: 2008-02-15 17:32:59.078750 +09:00
97
- position: 14
98
- circulation_status_00003:
99
- name: Circulation Status Undefined
100
- display_name: Circulation Status Undefined
101
- updated_at: 2008-02-15 17:31:26.564769 +09:00
102
- id: 3
103
- note: ""
104
- created_at: 2008-02-15 17:31:26.564769 +09:00
105
- position: 3
106
- circulation_status_00004:
107
- name: Claimed Returned Or Never Borrowed
108
- display_name: Claimed Returned Or Never Borrowed
109
- updated_at: 2008-02-15 17:31:35.786404 +09:00
110
- id: 4
111
- note: ""
112
- created_at: 2008-02-15 17:31:35.786404 +09:00
113
- position: 4
114
-
115
- # == Schema Information
116
- #
117
- # Table name: circulation_statuses
118
- #
119
- # id :integer not null, primary key
120
- # name :string(255) not null
121
- # display_name :text
122
- # note :text
123
- # position :integer
124
- # created_at :datetime
125
- # updated_at :datetime
126
- #
127
-
@@ -1,37 +0,0 @@
1
- ---
2
- item_has_use_restriction_00001:
3
- item_id: 1
4
- updated_at: 2008-02-13 12:29:36.013448 +09:00
5
- id: 1
6
- use_restriction_id: 10
7
- created_at: 2008-02-13 12:29:36.013448 +09:00
8
- item_has_use_restriction_00002:
9
- item_id: 2
10
- updated_at: 2008-02-13 17:58:37.527556 +09:00
11
- id: 2
12
- use_restriction_id: 2
13
- created_at: 2008-02-13 17:58:37.527556 +09:00
14
- item_has_use_restriction_00003:
15
- item_id: 3
16
- updated_at: 2008-02-13 17:58:49.490086 +09:00
17
- id: 3
18
- use_restriction_id: 3
19
- created_at: 2008-02-13 17:58:49.490086 +09:00
20
- item_has_use_restriction_00004:
21
- item_id: 17
22
- updated_at: 2008-02-13 12:29:36.013448 +09:00
23
- id: 4
24
- use_restriction_id: 6
25
- created_at: 2008-02-13 12:29:36.013448 +09:00
26
-
27
- # == Schema Information
28
- #
29
- # Table name: item_has_use_restrictions
30
- #
31
- # id :integer not null, primary key
32
- # item_id :integer not null
33
- # use_restriction_id :integer not null
34
- # created_at :datetime
35
- # updated_at :datetime
36
- #
37
-
@@ -1,119 +0,0 @@
1
- ---
2
- use_restriction_00001:
3
- name: Available For Supply Without Return
4
- display_name: Available For Supply Without Return
5
- id: 1
6
- position: 1
7
- note: ""
8
- created_at: <%= Time.zone.now %>
9
- updated_at: <%= Time.zone.now %>
10
- use_restriction_00002:
11
- name: In Library Use Only
12
- display_name: In Library Use Only
13
- id: 2
14
- position: 2
15
- note: ""
16
- created_at: <%= Time.zone.now %>
17
- updated_at: <%= Time.zone.now %>
18
- use_restriction_00003:
19
- name: Limited Circulation, Long Loan Period
20
- display_name: Limited Circulation, Long Loan Period
21
- id: 3
22
- position: 3
23
- note: ""
24
- created_at: <%= Time.zone.now %>
25
- updated_at: <%= Time.zone.now %>
26
- use_restriction_00003:
27
- name: Limited Circulation, Normal Loan Period
28
- display_name: Limited Circulation, Normal Loan Period
29
- id: 4
30
- position: 4
31
- note: ""
32
- created_at: <%= Time.zone.now %>
33
- updated_at: <%= Time.zone.now %>
34
- use_restriction_00005:
35
- name: Limited Circulation, Short Loan Period
36
- display_name: Limited Circulation, Short Loan Period
37
- id: 5
38
- position: 5
39
- note: ""
40
- created_at: <%= Time.zone.now %>
41
- updated_at: <%= Time.zone.now %>
42
- use_restriction_00006:
43
- name: No Reproduction
44
- display_name: No Reproduction
45
- id: 6
46
- position: 6
47
- note: ""
48
- created_at: <%= Time.zone.now %>
49
- updated_at: <%= Time.zone.now %>
50
- use_restriction_00007:
51
- name: Not For Loan
52
- display_name: Not For Loan
53
- id: 7
54
- position: 7
55
- note: ""
56
- created_at: <%= Time.zone.now %>
57
- updated_at: <%= Time.zone.now %>
58
- use_restriction_00008:
59
- name: Overnight Only
60
- display_name: Overnight Only
61
- id: 8
62
- position: 8
63
- note: ""
64
- created_at: <%= Time.zone.now %>
65
- updated_at: <%= Time.zone.now %>
66
- use_restriction_00009:
67
- name: Renewals Not Permitted
68
- display_name: Renewals Not Permitted
69
- id: 9
70
- position: 9
71
- note: ""
72
- created_at: <%= Time.zone.now %>
73
- updated_at: <%= Time.zone.now %>
74
- use_restriction_00010:
75
- name: Supervision Required
76
- display_name: Supervision Required
77
- id: 10
78
- position: 10
79
- note: ""
80
- created_at: <%= Time.zone.now %>
81
- updated_at: <%= Time.zone.now %>
82
- use_restriction_00011:
83
- name: Term Loan
84
- display_name: Term Loan
85
- id: 11
86
- position: 11
87
- note: ""
88
- created_at: <%= Time.zone.now %>
89
- updated_at: <%= Time.zone.now %>
90
- use_restriction_00012:
91
- name: Use Only In Controlled Access
92
- display_name: Use Only In Controlled Access
93
- id: 12
94
- position: 12
95
- note: ""
96
- created_at: <%= Time.zone.now %>
97
- updated_at: <%= Time.zone.now %>
98
- use_restriction_00013:
99
- name: User Signature Required
100
- display_name: User Signature Required
101
- id: 13
102
- position: 13
103
- note: ""
104
- created_at: <%= Time.zone.now %>
105
- updated_at: <%= Time.zone.now %>
106
-
107
- # == Schema Information
108
- #
109
- # Table name: use_restrictions
110
- #
111
- # id :integer not null, primary key
112
- # name :string(255) not null
113
- # display_name :text
114
- # note :text
115
- # position :integer
116
- # created_at :datetime
117
- # updated_at :datetime
118
- #
119
-