enju_library 0.0.2 → 0.1.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/app/controllers/libraries_controller.rb +2 -2
  2. data/app/controllers/shelves_controller.rb +1 -1
  3. data/app/models/bookstore.rb +1 -3
  4. data/app/models/library.rb +1 -3
  5. data/app/models/search_engine.rb +1 -3
  6. data/app/models/shelf.rb +1 -3
  7. data/app/models/subscription.rb +1 -3
  8. data/app/views/bookstores/index.html.erb +1 -1
  9. data/app/views/libraries/_calendar.html.erb +1 -1
  10. data/app/views/libraries/index.html.erb +1 -1
  11. data/app/views/search_engines/index.html.erb +1 -1
  12. data/app/views/shelves/index.html.erb +1 -1
  13. data/app/views/subscribes/index.html.erb +1 -1
  14. data/app/views/subscriptions/index.html.erb +1 -1
  15. data/db/migrate/080_create_library_groups.rb +1 -2
  16. data/lib/enju_library/engine.rb +1 -1
  17. data/lib/enju_library/version.rb +1 -1
  18. data/lib/generators/enju_library/views_generator.rb +26 -0
  19. data/spec/dummy/db/schema.rb +1 -2
  20. data/spec/dummy/db/test.sqlite3 +0 -0
  21. data/spec/dummy/solr/data/test/index/_1h.fdt +0 -0
  22. data/spec/dummy/solr/data/test/index/_1h.fdx +0 -0
  23. data/spec/dummy/solr/data/test/index/{_k.fnm → _1h.fnm} +1 -1
  24. data/spec/dummy/solr/data/test/index/_1h.tis +0 -0
  25. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  26. data/spec/dummy/solr/data/test/index/segments_3n +0 -0
  27. data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
  28. data/spec/dummy/tmp/cache/4AD/470/country_all +0 -0
  29. data/spec/fixtures/library_groups.yml +1 -1
  30. data/spec/requests/budget_types_spec.rb +11 -0
  31. metadata +30 -53
  32. data/app/views/accepts/_form.html.erb +0 -11
  33. data/app/views/accepts/_list.html.erb +0 -31
  34. data/app/views/accepts/edit.html.erb +0 -13
  35. data/app/views/accepts/index.csv.erb +0 -4
  36. data/app/views/accepts/index.html.erb +0 -49
  37. data/app/views/accepts/index.js.erb +0 -1
  38. data/app/views/accepts/new.html.erb +0 -14
  39. data/app/views/accepts/show.html.erb +0 -31
  40. data/spec/dummy/db/development.sqlite3 +0 -0
  41. data/spec/dummy/solr/data/test/index/_k.fdt +0 -0
  42. data/spec/dummy/solr/data/test/index/_k.fdx +0 -0
  43. data/spec/dummy/solr/data/test/index/_k.tis +0 -0
  44. data/spec/dummy/solr/data/test/index/segments_18 +0 -0
  45. /data/spec/dummy/solr/data/test/index/{_k.frq → _1h.frq} +0 -0
  46. /data/spec/dummy/solr/data/test/index/{_k.nrm → _1h.nrm} +0 -0
  47. /data/spec/dummy/solr/data/test/index/{_k.prx → _1h.prx} +0 -0
  48. /data/spec/dummy/solr/data/test/index/{_k.tii → _1h.tii} +0 -0
@@ -18,7 +18,7 @@ class LibrariesController < ApplicationController
18
18
 
19
19
  @libraries = Library.search(:include => [:shelves]) do
20
20
  fulltext query if query.present?
21
- paginate :page => page.to_i, :per_page => Library.per_page
21
+ paginate :page => page.to_i, :per_page => Library.default_per_page
22
22
  order_by sort[:sort_by], sort[:order]
23
23
  end.results
24
24
 
@@ -39,7 +39,7 @@ class LibrariesController < ApplicationController
39
39
  order_by(:start_at, :desc)
40
40
  end
41
41
  page = params[:event_page] || 1
42
- search.query.paginate(page.to_i, Event.per_page)
42
+ search.query.paginate(page.to_i, Event.default_per_page)
43
43
  @events = search.execute!.results
44
44
  end
45
45
 
@@ -28,7 +28,7 @@ class ShelvesController < ApplicationController
28
28
 
29
29
  search = Shelf.search(:include => [:library]) do
30
30
  fulltext query if query.present?
31
- paginate :page => page.to_i, :per_page => Shelf.per_page
31
+ paginate :page => page.to_i, :per_page => Shelf.default_per_page
32
32
  if library
33
33
  with(:library).equal_to library.name
34
34
  order_by :position, :asc
@@ -8,9 +8,7 @@ class Bookstore < ActiveRecord::Base
8
8
  validates_presence_of :name
9
9
  validates :url, :url => true, :allow_blank => true, :length => {:maximum => 255}
10
10
 
11
- def self.per_page
12
- 10
13
- end
11
+ paginates_per 10
14
12
 
15
13
  if defined?(EnjuPurchaseRequest)
16
14
  has_many :order_lists
@@ -36,9 +36,7 @@ class Library < ActiveRecord::Base
36
36
  after_save :clear_all_cache
37
37
  after_destroy :clear_all_cache
38
38
 
39
- def self.per_page
40
- 10
41
- end
39
+ paginates_per 10
42
40
 
43
41
  def self.all_cache
44
42
  if Rails.env == 'production'
@@ -12,9 +12,7 @@ class SearchEngine < ActiveRecord::Base
12
12
  after_save :clear_all_cache
13
13
  after_destroy :clear_all_cache
14
14
 
15
- def self.per_page
16
- 10
17
- end
15
+ paginates_per 10
18
16
 
19
17
  def clear_all_cache
20
18
  Rails.cache.delete('search_engine_all')
data/app/models/shelf.rb CHANGED
@@ -24,9 +24,7 @@ class Shelf < ActiveRecord::Base
24
24
  integer :position
25
25
  end
26
26
 
27
- def self.per_page
28
- 10
29
- end
27
+ paginates_per 10
30
28
 
31
29
  def web_shelf?
32
30
  return true if self.id == 1
@@ -17,9 +17,7 @@ class Subscription < ActiveRecord::Base
17
17
  integer :work_ids, :multiple => true
18
18
  end
19
19
 
20
- def self.per_page
21
- 10
22
- end
20
+ paginates_per 10
23
21
 
24
22
  def subscribed(work)
25
23
  subscribes.where(:work_id => work.id).first
@@ -36,7 +36,7 @@
36
36
  <%- end -%>
37
37
  </table>
38
38
 
39
- <%= will_paginate(@bookstores) -%>
39
+ <%= paginate(@bookstores) -%>
40
40
  </div>
41
41
  </div>
42
42
 
@@ -9,5 +9,5 @@
9
9
  <%- end -%>
10
10
  </ul>
11
11
 
12
- <%= will_paginate(@events, :param_name => :event_page, :class => 'content_pagination digg_pagination') -%>
12
+ <%= paginate(@events, :param_name => :event_page, :remote => true) -%>
13
13
  </div>
@@ -61,7 +61,7 @@
61
61
  </tr>
62
62
  <%- end -%>
63
63
  </table>
64
- <%= will_paginate(@libraries) %>
64
+ <%= paginate(@libraries) %>
65
65
 
66
66
  </div>
67
67
  </div>
@@ -33,7 +33,7 @@
33
33
  <%- end -%>
34
34
  </table>
35
35
 
36
- <%= will_paginate(@search_engines) -%>
36
+ <%= paginate(@search_engines) -%>
37
37
  </div>
38
38
  </div>
39
39
 
@@ -59,7 +59,7 @@
59
59
  <%- end -%>
60
60
  </table>
61
61
 
62
- <%= will_paginate(@shelves) -%>
62
+ <%= paginate(@shelves) -%>
63
63
  </div>
64
64
  </div>
65
65
 
@@ -19,7 +19,7 @@
19
19
  <%- end -%>
20
20
  </table>
21
21
 
22
- <%= will_paginate(@subscribes) -%>
22
+ <%= paginate(@subscribes) -%>
23
23
 
24
24
  </div>
25
25
  </div>
@@ -23,7 +23,7 @@
23
23
  <%- end -%>
24
24
  </table>
25
25
 
26
- <%= will_paginate(@subscrpitions) -%>
26
+ <%= paginate(@subscrpitions) -%>
27
27
 
28
28
  </div>
29
29
  </div>
@@ -6,12 +6,11 @@ class CreateLibraryGroups < ActiveRecord::Migration
6
6
  t.string :short_name, :null => false
7
7
  t.string :email
8
8
  t.text :my_networks
9
- t.boolean :use_dsbl, :default => false, :null => false
10
- t.text :dsbl_list
11
9
  t.text :login_banner
12
10
  t.text :note
13
11
  t.integer :valid_period_for_new_user, :default => 365, :null => false
14
12
  t.integer :country_id
13
+ t.integer :position
15
14
 
16
15
  t.timestamps
17
16
  end
@@ -1,6 +1,6 @@
1
+ require 'enju_core'
1
2
  require 'inherited_resources'
2
3
  require 'geocoder'
3
- require 'configatron'
4
4
 
5
5
  module EnjuLibrary
6
6
  class Engine < ::Rails::Engine
@@ -1,3 +1,3 @@
1
1
  module EnjuLibrary
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0.pre"
3
3
  end
@@ -0,0 +1,26 @@
1
+ module EnjuLibrary
2
+ module Generators
3
+ class ViewsGenerator < Rails::Generators::Base
4
+ source_root File.expand_path('../../../../app/views', __FILE__)
5
+
6
+ def copy_files
7
+ directories = %w(
8
+ bookstores
9
+ budget_types
10
+ libraries
11
+ library_groups
12
+ request_status_types
13
+ request_types
14
+ search_engines
15
+ shelves
16
+ subscribes
17
+ subscriptions
18
+ )
19
+
20
+ directories.each do |dir|
21
+ directory dir, "app/views/#{dir}"
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -182,11 +182,10 @@ ActiveRecord::Schema.define(:version => 20120510140958) do
182
182
  t.string "short_name", :null => false
183
183
  t.string "email"
184
184
  t.text "my_networks"
185
- t.boolean "use_dsbl", :default => false, :null => false
186
- t.text "dsbl_list"
187
185
  t.text "login_banner"
188
186
  t.text "note"
189
187
  t.integer "country_id"
188
+ t.integer "position"
190
189
  t.datetime "created_at", :null => false
191
190
  t.datetime "updated_at", :null => false
192
191
  t.string "url", :default => "http://localhost:3000/"
Binary file
@@ -1,3 +1,3 @@
1
- ����idtype
1
+ ����idtype
2
2
  class_name created_at_d updated_at_d work_ids_im
3
3
  title_text
@@ -8,6 +8,7 @@ one:
8
8
  note:
9
9
  my_networks: 0.0.0.0/0
10
10
  url: "http://localhost:3000/"
11
+ position: 1
11
12
 
12
13
 
13
14
  # == Schema Information
@@ -26,7 +27,6 @@ one:
26
27
  # created_at :datetime not null
27
28
  # updated_at :datetime not null
28
29
  # admin_networks :text
29
- # allow_bookmark_external_url :boolean default(FALSE), not null
30
30
  # position :integer
31
31
  # url :string(255) default("http://localhost:3000/")
32
32
  #
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe "BudgetTypes" do
4
+ describe "GET /budget_types" do
5
+ it "works! (now write some real specs)" do
6
+ # Run the generator again with the --webrat flag if you want to use webrat methods/matchers
7
+ get budget_types_path
8
+ response.status.should be(302)
9
+ end
10
+ end
11
+ end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_library
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.1.0.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-21 00:00:00.000000000 Z
12
+ date: 2012-07-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -155,22 +155,6 @@ dependencies:
155
155
  - - ! '>='
156
156
  - !ruby/object:Gem::Version
157
157
  version: '0'
158
- - !ruby/object:Gem::Dependency
159
- name: configatron
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'
174
158
  - !ruby/object:Gem::Dependency
175
159
  name: paperclip
176
160
  requirement: !ruby/object:Gem::Requirement
@@ -224,17 +208,17 @@ dependencies:
224
208
  requirement: !ruby/object:Gem::Requirement
225
209
  none: false
226
210
  requirements:
227
- - - ! '>='
211
+ - - ~>
228
212
  - !ruby/object:Gem::Version
229
- version: '0'
213
+ version: 0.1.0.pre
230
214
  type: :development
231
215
  prerelease: false
232
216
  version_requirements: !ruby/object:Gem::Requirement
233
217
  none: false
234
218
  requirements:
235
- - - ! '>='
219
+ - - ~>
236
220
  - !ruby/object:Gem::Version
237
- version: '0'
221
+ version: 0.1.0.pre
238
222
  - !ruby/object:Gem::Dependency
239
223
  name: sunspot_solr
240
224
  requirement: !ruby/object:Gem::Requirement
@@ -280,14 +264,6 @@ files:
280
264
  - app/models/shelf.rb
281
265
  - app/models/subscribe.rb
282
266
  - app/models/subscription.rb
283
- - app/views/accepts/_form.html.erb
284
- - app/views/accepts/_list.html.erb
285
- - app/views/accepts/edit.html.erb
286
- - app/views/accepts/index.csv.erb
287
- - app/views/accepts/index.html.erb
288
- - app/views/accepts/index.js.erb
289
- - app/views/accepts/new.html.erb
290
- - app/views/accepts/show.html.erb
291
267
  - app/views/bookstores/_form.html.erb
292
268
  - app/views/bookstores/edit.html.erb
293
269
  - app/views/bookstores/index.html.erb
@@ -361,6 +337,7 @@ files:
361
337
  - lib/enju_library/engine.rb
362
338
  - lib/enju_library/version.rb
363
339
  - lib/enju_library.rb
340
+ - lib/generators/enju_library/views_generator.rb
364
341
  - lib/tasks/enju_library_tasks.rake
365
342
  - MIT-LICENSE
366
343
  - Rakefile
@@ -409,7 +386,6 @@ files:
409
386
  - spec/dummy/config/locales/en.yml
410
387
  - spec/dummy/config/routes.rb
411
388
  - spec/dummy/config.ru
412
- - spec/dummy/db/development.sqlite3
413
389
  - spec/dummy/db/migrate/001_create_patrons.rb
414
390
  - spec/dummy/db/migrate/005_create_manifestations.rb
415
391
  - spec/dummy/db/migrate/006_create_items.rb
@@ -482,16 +458,16 @@ files:
482
458
  - spec/dummy/solr/conf/spellings.txt
483
459
  - spec/dummy/solr/conf/stopwords.txt
484
460
  - spec/dummy/solr/conf/synonyms.txt
485
- - spec/dummy/solr/data/test/index/_k.fdt
486
- - spec/dummy/solr/data/test/index/_k.fdx
487
- - spec/dummy/solr/data/test/index/_k.fnm
488
- - spec/dummy/solr/data/test/index/_k.frq
489
- - spec/dummy/solr/data/test/index/_k.nrm
490
- - spec/dummy/solr/data/test/index/_k.prx
491
- - spec/dummy/solr/data/test/index/_k.tii
492
- - spec/dummy/solr/data/test/index/_k.tis
461
+ - spec/dummy/solr/data/test/index/_1h.fdt
462
+ - spec/dummy/solr/data/test/index/_1h.fdx
463
+ - spec/dummy/solr/data/test/index/_1h.fnm
464
+ - spec/dummy/solr/data/test/index/_1h.frq
465
+ - spec/dummy/solr/data/test/index/_1h.nrm
466
+ - spec/dummy/solr/data/test/index/_1h.prx
467
+ - spec/dummy/solr/data/test/index/_1h.tii
468
+ - spec/dummy/solr/data/test/index/_1h.tis
493
469
  - spec/dummy/solr/data/test/index/segments.gen
494
- - spec/dummy/solr/data/test/index/segments_18
470
+ - spec/dummy/solr/data/test/index/segments_3n
495
471
  - spec/dummy/solr/data/test/spellchecker/segments.gen
496
472
  - spec/dummy/solr/data/test/spellchecker/segments_1
497
473
  - spec/dummy/tmp/cache/4AD/470/country_all
@@ -534,6 +510,7 @@ files:
534
510
  - spec/models/shelf_spec.rb
535
511
  - spec/models/subscribe_spec.rb
536
512
  - spec/models/subscription_spec.rb
513
+ - spec/requests/budget_types_spec.rb
537
514
  - spec/routing/budget_types_routing_spec.rb
538
515
  - spec/routing/libraries_routing_spec.rb
539
516
  - spec/spec_helper.rb
@@ -559,9 +536,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
559
536
  required_rubygems_version: !ruby/object:Gem::Requirement
560
537
  none: false
561
538
  requirements:
562
- - - ! '>='
539
+ - - ! '>'
563
540
  - !ruby/object:Gem::Version
564
- version: '0'
541
+ version: 1.3.1
565
542
  requirements: []
566
543
  rubyforge_project:
567
544
  rubygems_version: 1.8.23
@@ -613,7 +590,6 @@ test_files:
613
590
  - spec/dummy/config/locales/en.yml
614
591
  - spec/dummy/config/routes.rb
615
592
  - spec/dummy/config.ru
616
- - spec/dummy/db/development.sqlite3
617
593
  - spec/dummy/db/migrate/001_create_patrons.rb
618
594
  - spec/dummy/db/migrate/005_create_manifestations.rb
619
595
  - spec/dummy/db/migrate/006_create_items.rb
@@ -686,16 +662,16 @@ test_files:
686
662
  - spec/dummy/solr/conf/spellings.txt
687
663
  - spec/dummy/solr/conf/stopwords.txt
688
664
  - spec/dummy/solr/conf/synonyms.txt
689
- - spec/dummy/solr/data/test/index/_k.fdt
690
- - spec/dummy/solr/data/test/index/_k.fdx
691
- - spec/dummy/solr/data/test/index/_k.fnm
692
- - spec/dummy/solr/data/test/index/_k.frq
693
- - spec/dummy/solr/data/test/index/_k.nrm
694
- - spec/dummy/solr/data/test/index/_k.prx
695
- - spec/dummy/solr/data/test/index/_k.tii
696
- - spec/dummy/solr/data/test/index/_k.tis
665
+ - spec/dummy/solr/data/test/index/_1h.fdt
666
+ - spec/dummy/solr/data/test/index/_1h.fdx
667
+ - spec/dummy/solr/data/test/index/_1h.fnm
668
+ - spec/dummy/solr/data/test/index/_1h.frq
669
+ - spec/dummy/solr/data/test/index/_1h.nrm
670
+ - spec/dummy/solr/data/test/index/_1h.prx
671
+ - spec/dummy/solr/data/test/index/_1h.tii
672
+ - spec/dummy/solr/data/test/index/_1h.tis
697
673
  - spec/dummy/solr/data/test/index/segments.gen
698
- - spec/dummy/solr/data/test/index/segments_18
674
+ - spec/dummy/solr/data/test/index/segments_3n
699
675
  - spec/dummy/solr/data/test/spellchecker/segments.gen
700
676
  - spec/dummy/solr/data/test/spellchecker/segments_1
701
677
  - spec/dummy/tmp/cache/4AD/470/country_all
@@ -738,6 +714,7 @@ test_files:
738
714
  - spec/models/shelf_spec.rb
739
715
  - spec/models/subscribe_spec.rb
740
716
  - spec/models/subscription_spec.rb
717
+ - spec/requests/budget_types_spec.rb
741
718
  - spec/routing/budget_types_routing_spec.rb
742
719
  - spec/routing/libraries_routing_spec.rb
743
720
  - spec/spec_helper.rb
@@ -1,11 +0,0 @@
1
- <%= simple_form_for(@accept) do |f| %>
2
- <%= f.error_notification %>
3
-
4
- <div class="form-inputs">
5
- <%= f.input :item_id %>
6
- </div>
7
-
8
- <div class="form-actions">
9
- <%= f.button :submit %>
10
- </div>
11
- <% end %>
@@ -1,31 +0,0 @@
1
- <div style="color: red"><%= flash[:message] -%></div>
2
-
3
- <div class="search_form">
4
- <%= form_for(@accept, :url => basket_accepts_path(@basket), :remote => true) do |f| %>
5
- <%= f.error_messages %>
6
- <p>
7
- <%= t('activerecord.attributes.item.item_identifier') -%>:
8
- <%= f.search_field :item_identifier, :class => 'resource_item_identifier', :value => nil -%>
9
- <%= f.submit t('accept.accept'), 'data-disable-with' => t('page.saving') -%>
10
- </p>
11
- <%- end -%>
12
- </div>
13
-
14
- <table class="index">
15
- <tr>
16
- <th><%= t('activerecord.models.item') -%></th>
17
- </tr>
18
- <%- @accepts.each_with_index do |accept, i| -%>
19
- <tr class="line<%= cycle("0", "1") -%>">
20
- <td>
21
- <%= render 'manifestations/show_index', :manifestation => accept.item.manifestation %>
22
- <%= link_to accept.item.item_identifier, accept.item -%> / <%= accept.item.call_number %>
23
- (<%= link_to accept.item.shelf.library.display_name.localize, accept.item.shelf.library %> /
24
- <%= link_to accept.item.shelf.display_name.localize, accept.item.shelf %>)<br />
25
- <%=l accept.created_at %>
26
- </td>
27
- </tr>
28
- <%- end -%>
29
- </table>
30
-
31
- <%= javascript_tag("$('#accept_item_identifier').focus()") -%>
@@ -1,13 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.editing', :model => t('activerecord.models.accept')) -%></h1>
3
- <div id="content_list">
4
- <%= render 'form' %>
5
- </div>
6
- </div>
7
-
8
- <div id="submenu" class="ui-corner-all">
9
- <ul>
10
- <li><%= link_to t('page.show'), @accept -%></li>
11
- <li><%= link_to t('page.back'), accepts_path -%></li>
12
- </ul>
13
- </div>
@@ -1,4 +0,0 @@
1
- item_identifier basket_id accepted_at
2
- <% @accepts.each do |accept| %>
3
- <%= accept.item.item_identifier %> <%= accept.basket_id %> <%= accept.created_at %>
4
- <% end %>
@@ -1,49 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.accept')) -%></h1>
3
- <div id="content_list">
4
-
5
- <div class="search_form">
6
- <%= form_for(:accept, :html => {:method => :get}) do |f| %>
7
- <p>
8
- <%= t('activerecord.attributes.item.item_identifier') -%>:
9
- <%= f.search_field :item_identifier, :value => @query, :class => 'resource_item_identifier' -%>
10
- <%= f.submit t('page.search') -%>
11
- </p>
12
- <%- end -%>
13
- </div>
14
-
15
- <table class="table table-striped index">
16
- <tr>
17
- <th><%= t('activerecord.models.item') -%></th>
18
- <th></th>
19
- </tr>
20
- <%- @accepts.each_with_index do |accept, i| -%>
21
- <tr class="line<%= cycle("0", "1") -%>">
22
- <td>
23
- <% if accept.item %>
24
- <%= render 'manifestations/show_index', :manifestation => accept.item.manifestation %>
25
- <%= link_to accept.item.item_identifier, accept.item -%> / <%= accept.item.call_number %>
26
- (<%= link_to accept.item.shelf.library.display_name.localize, accept.item.shelf.library %> /
27
- <%= link_to accept.item.shelf.display_name.localize, accept.item.shelf %>)<br />
28
- <%=l accept.created_at %>
29
- <% end %>
30
- </td>
31
- <td>
32
- <%- if can? :destroy, accept -%>
33
- <%= link_to t('page.destroy'), accept, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
34
- <%- end -%>
35
- </td>
36
- </tr>
37
- <%- end -%>
38
- </table>
39
- <%= javascript_tag("$('#accept_item_identifier').focus()") -%>
40
-
41
- <%= will_paginate(@accepts) %>
42
- </div>
43
- </div>
44
-
45
- <div id="submenu" class="ui-corner-all">
46
- <ul>
47
- <li><%= link_to t('page.new', :model => t('activerecord.models.accept')), new_accept_path -%></li>
48
- </ul>
49
- </div>
@@ -1 +0,0 @@
1
- $("#accept_list").html("<%= escape_javascript(render('accepts/list')) %>");
@@ -1,14 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.new', :model => t('activerecord.models.accept')) -%></h1>
3
- <div id="content_list">
4
- <div id="accept_list">
5
- <%= render 'list' -%>
6
- </div>
7
- </div>
8
- </div>
9
-
10
- <div id="submenu" class="ui-corner-all">
11
- <ul>
12
- <li><%= link_to t('page.back'), accepts_path -%></li>
13
- </ul>
14
- </div>
@@ -1,31 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.accept')) -%></h1>
3
- <div id="content_list">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <p>
7
- <strong><%= t('activerecord.models.item') -%>:</strong>
8
- <% if @accept.item %>
9
- <%= link_to @accept.item.item_identifier, @accept.item -%>
10
- (<%= link_to @accept.item.manifestation.original_title, @accept.item.manifestation %>)
11
- <% end %>
12
- </p>
13
-
14
- <p>
15
- <strong><%= t('activerecord.models.user') -%>:</strong>
16
- <%= link_to @accept.librarian.username, @accept.librarian if @accept.librarian -%>
17
- </p>
18
-
19
- <p>
20
- <strong><%= t('page.created_at') -%>:</strong>
21
- <%=l @accept.created_at %>
22
- </p>
23
-
24
- </div>
25
- </div>
26
-
27
- <div id="submenu" class="ui-corner-all">
28
- <ul>
29
- <li><%= back_to_index(flash[:page_info]) -%></li>
30
- </ul>
31
- </div>
Binary file
Binary file
Binary file
Binary file