enju_biblio 0.1.0.pre38 → 0.1.0.pre39

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/manifestations_controller.rb +2 -2
  3. data/app/models/import_request.rb +6 -6
  4. data/app/models/item.rb +1 -1
  5. data/app/models/manifestation.rb +8 -5
  6. data/app/models/patron.rb +3 -5
  7. data/app/models/resource_import_file.rb +6 -6
  8. data/app/views/items/_form.html.erb +1 -0
  9. data/app/views/manifestations/_form.html.erb +6 -0
  10. data/app/views/manifestations/_pickup.html.erb +1 -1
  11. data/app/views/manifestations/_show.rdf.builder +80 -54
  12. data/app/views/manifestations/_title.html.erb +1 -0
  13. data/app/views/manifestations/_title.mobile.erb +1 -0
  14. data/app/views/patrons/_form.html.erb +0 -59
  15. data/app/views/patrons/show.html.erb +0 -52
  16. data/app/views/patrons/show.mobile.erb +0 -52
  17. data/app/views/series_statements/show.html.erb +0 -4
  18. data/config/locales/translation_en.yml +7 -0
  19. data/config/locales/translation_ja.yml +7 -0
  20. data/config/routes.rb +0 -3
  21. data/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb +5 -0
  22. data/lib/enju_biblio/version.rb +1 -1
  23. data/lib/generators/enju_biblio/setup/templates/db/fixtures/carrier_types.yml +35 -0
  24. data/lib/generators/enju_biblio/setup/templates/db/fixtures/identifier_types.yml +9 -0
  25. data/spec/dummy/db/development.sqlite3 +0 -0
  26. data/spec/dummy/db/schema.rb +2 -1
  27. data/spec/dummy/db/test.sqlite3 +0 -0
  28. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  29. data/spec/dummy/solr/data/test/index/segments_nq2 +0 -0
  30. data/spec/dummy/tmp/cache/4AD/470/country_all +0 -0
  31. data/spec/fixtures/identifier_types.yml +7 -0
  32. metadata +6 -22
  33. data/app/assets/javascripts/addresses.js +0 -2
  34. data/app/assets/stylesheets/addresses.css +0 -4
  35. data/app/controllers/addresses_controller.rb +0 -2
  36. data/app/controllers/identifiers_controller.rb +0 -14
  37. data/app/helpers/addresses_helper.rb +0 -2
  38. data/app/views/addresses/_form.html.erb +0 -57
  39. data/app/views/addresses/edit.html.erb +0 -6
  40. data/app/views/addresses/index.html.erb +0 -41
  41. data/app/views/addresses/new.html.erb +0 -5
  42. data/app/views/addresses/show.html.erb +0 -55
  43. data/app/views/identifiers/_form.html.erb +0 -30
  44. data/app/views/identifiers/edit.html.erb +0 -15
  45. data/app/views/identifiers/index.html.erb +0 -33
  46. data/app/views/identifiers/new.html.erb +0 -14
  47. data/app/views/identifiers/show.html.erb +0 -29
  48. data/db/migrate/20111009183423_add_ndc_to_manifestation.rb +0 -9
  49. data/spec/controllers/identifiers_controller_spec.rb +0 -446
  50. data/spec/dummy/solr/data/test/index/segments_myc +0 -0
@@ -5,12 +5,21 @@ one:
5
5
  display_name: ISBN
6
6
  note:
7
7
  position: 1
8
+ id: 1
8
9
 
9
10
  two:
10
11
  name: issn
11
12
  display_name: ISSN
12
13
  note:
13
14
  position: 2
15
+ id: 2
16
+
17
+ three:
18
+ name: jpno
19
+ display_name: JPNO
20
+ note:
21
+ position: 3
22
+ id: 3
14
23
 
15
24
  # == Schema Information
16
25
  #
Binary file
@@ -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 => 20130506175834) do
14
+ ActiveRecord::Schema.define(:version => 20130509185724) do
15
15
 
16
16
  create_table "baskets", :force => true do |t|
17
17
  t.integer "user_id"
@@ -677,6 +677,7 @@ ActiveRecord::Schema.define(:version => 20130506175834) do
677
677
  t.boolean "fulltext_content"
678
678
  t.string "doi"
679
679
  t.boolean "periodical"
680
+ t.text "statement_of_responsibility"
680
681
  end
681
682
 
682
683
  add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
Binary file
@@ -14,6 +14,13 @@ two:
14
14
  position: 2
15
15
  id: 2
16
16
 
17
+ three:
18
+ name: jpno
19
+ display_name: JPNO
20
+ note:
21
+ position: 3
22
+ id: 3
23
+
17
24
  # == Schema Information
18
25
  #
19
26
  # Table name: identifier_types
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_biblio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre38
4
+ version: 0.1.0.pre39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-08 00:00:00.000000000 Z
11
+ date: 2013-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: enju_core
@@ -465,14 +465,11 @@ executables: []
465
465
  extensions: []
466
466
  extra_rdoc_files: []
467
467
  files:
468
- - app/assets/javascripts/addresses.js
469
468
  - app/assets/javascripts/identifier_types.js
470
469
  - app/assets/javascripts/identifiers.js
471
- - app/assets/stylesheets/addresses.css
472
470
  - app/assets/stylesheets/identifier_types.css
473
471
  - app/assets/stylesheets/identifiers.css
474
472
  - app/assets/stylesheets/scaffold.css
475
- - app/controllers/addresses_controller.rb
476
473
  - app/controllers/carrier_types_controller.rb
477
474
  - app/controllers/content_types_controller.rb
478
475
  - app/controllers/countries_controller.rb
@@ -484,7 +481,6 @@ files:
484
481
  - app/controllers/form_of_works_controller.rb
485
482
  - app/controllers/frequencies_controller.rb
486
483
  - app/controllers/identifier_types_controller.rb
487
- - app/controllers/identifiers_controller.rb
488
484
  - app/controllers/import_requests_controller.rb
489
485
  - app/controllers/items_controller.rb
490
486
  - app/controllers/languages_controller.rb
@@ -508,7 +504,6 @@ files:
508
504
  - app/controllers/resource_import_files_controller.rb
509
505
  - app/controllers/resource_import_results_controller.rb
510
506
  - app/controllers/series_statements_controller.rb
511
- - app/helpers/addresses_helper.rb
512
507
  - app/helpers/identifier_types_helper.rb
513
508
  - app/helpers/identifiers_helper.rb
514
509
  - app/helpers/manifestations_helper.rb
@@ -556,11 +551,6 @@ files:
556
551
  - app/models/resource_import_file.rb
557
552
  - app/models/resource_import_result.rb
558
553
  - app/models/series_statement.rb
559
- - app/views/addresses/_form.html.erb
560
- - app/views/addresses/edit.html.erb
561
- - app/views/addresses/index.html.erb
562
- - app/views/addresses/new.html.erb
563
- - app/views/addresses/show.html.erb
564
554
  - app/views/carrier_types/_form.html.erb
565
555
  - app/views/carrier_types/edit.html.erb
566
556
  - app/views/carrier_types/index.html.erb
@@ -618,11 +608,6 @@ files:
618
608
  - app/views/identifier_types/index.html.erb
619
609
  - app/views/identifier_types/new.html.erb
620
610
  - app/views/identifier_types/show.html.erb
621
- - app/views/identifiers/_form.html.erb
622
- - app/views/identifiers/edit.html.erb
623
- - app/views/identifiers/index.html.erb
624
- - app/views/identifiers/new.html.erb
625
- - app/views/identifiers/show.html.erb
626
611
  - app/views/import_requests/_form.html.erb
627
612
  - app/views/import_requests/edit.html.erb
628
613
  - app/views/import_requests/index.html.erb
@@ -888,7 +873,6 @@ files:
888
873
  - db/migrate/20110916091020_add_volume_number_to_manifestation.rb
889
874
  - db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb
890
875
  - db/migrate/20110918162329_add_note_to_series_statement.rb
891
- - db/migrate/20111009183423_add_ndc_to_manifestation.rb
892
876
  - db/migrate/20111124110059_create_create_types.rb
893
877
  - db/migrate/20111124110319_create_realize_types.rb
894
878
  - db/migrate/20111124110355_create_produce_types.rb
@@ -915,6 +899,7 @@ files:
915
899
  - db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb
916
900
  - db/migrate/20130506175303_create_identifier_types.rb
917
901
  - db/migrate/20130506175834_create_identifiers.rb
902
+ - db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb
918
903
  - lib/enju_biblio/biblio_helper.rb
919
904
  - lib/enju_biblio/engine.rb
920
905
  - lib/enju_biblio/openurl.rb
@@ -923,6 +908,7 @@ files:
923
908
  - lib/enju_biblio/version.rb
924
909
  - lib/enju_biblio.rb
925
910
  - lib/generators/enju_biblio/setup/setup_generator.rb
911
+ - lib/generators/enju_biblio/setup/templates/db/fixtures/carrier_types.yml
926
912
  - lib/generators/enju_biblio/setup/templates/db/fixtures/content_types.yml
927
913
  - lib/generators/enju_biblio/setup/templates/db/fixtures/countries.yml
928
914
  - lib/generators/enju_biblio/setup/templates/db/fixtures/create_types.yml
@@ -962,7 +948,6 @@ files:
962
948
  - spec/controllers/form_of_works_controller_spec.rb
963
949
  - spec/controllers/frequencies_controller_spec.rb
964
950
  - spec/controllers/identifier_types_controller_spec.rb
965
- - spec/controllers/identifiers_controller_spec.rb
966
951
  - spec/controllers/import_requests_controller_spec.rb
967
952
  - spec/controllers/items_controller_spec.rb
968
953
  - spec/controllers/languages_controller_spec.rb
@@ -1163,7 +1148,7 @@ files:
1163
1148
  - spec/dummy/solr/conf/stopwords.txt
1164
1149
  - spec/dummy/solr/conf/synonyms.txt
1165
1150
  - spec/dummy/solr/data/test/index/segments.gen
1166
- - spec/dummy/solr/data/test/index/segments_myc
1151
+ - spec/dummy/solr/data/test/index/segments_nq2
1167
1152
  - spec/dummy/solr/data/test/spellchecker/segments.gen
1168
1153
  - spec/dummy/solr/data/test/spellchecker/segments_1
1169
1154
  - spec/dummy/tmp/cache/4AD/470/country_all
@@ -1410,7 +1395,6 @@ test_files:
1410
1395
  - spec/controllers/form_of_works_controller_spec.rb
1411
1396
  - spec/controllers/frequencies_controller_spec.rb
1412
1397
  - spec/controllers/identifier_types_controller_spec.rb
1413
- - spec/controllers/identifiers_controller_spec.rb
1414
1398
  - spec/controllers/import_requests_controller_spec.rb
1415
1399
  - spec/controllers/items_controller_spec.rb
1416
1400
  - spec/controllers/languages_controller_spec.rb
@@ -1611,7 +1595,7 @@ test_files:
1611
1595
  - spec/dummy/solr/conf/stopwords.txt
1612
1596
  - spec/dummy/solr/conf/synonyms.txt
1613
1597
  - spec/dummy/solr/data/test/index/segments.gen
1614
- - spec/dummy/solr/data/test/index/segments_myc
1598
+ - spec/dummy/solr/data/test/index/segments_nq2
1615
1599
  - spec/dummy/solr/data/test/spellchecker/segments.gen
1616
1600
  - spec/dummy/solr/data/test/spellchecker/segments_1
1617
1601
  - spec/dummy/tmp/cache/4AD/470/country_all
@@ -1,2 +0,0 @@
1
- // Place all the behaviors and hooks related to the matching controller here.
2
- // All this logic will automatically be available in application.js.
@@ -1,4 +0,0 @@
1
- /*
2
- Place all the styles related to the matching controller here.
3
- They will automatically be included in application.css.
4
- */
@@ -1,2 +0,0 @@
1
- class AddressesController < InheritedResources::Base
2
- end
@@ -1,14 +0,0 @@
1
- class IdentifiersController < InheritedResources::Base
2
- respond_to :html, :json
3
- load_and_authorize_resource
4
- has_scope :page, :default => 1
5
-
6
- def update
7
- @identifier = Identifier.find(params[:id])
8
- if params[:move]
9
- move_position(@identifier, params[:move])
10
- return
11
- end
12
- update!
13
- end
14
- end
@@ -1,2 +0,0 @@
1
- module AddressesHelper
2
- end
@@ -1,57 +0,0 @@
1
- <%= form_for(@address) do |f| %>
2
- <% if @address.errors.any? %>
3
- <div id="error_explanation">
4
- <h2><%= pluralize(@address.errors.count, "error") %> prohibited this address from being saved:</h2>
5
-
6
- <ul>
7
- <% @address.errors.full_messages.each do |msg| %>
8
- <li><%= msg %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
13
-
14
- <div class="field">
15
- <%= f.label :patron_id %><br />
16
- <%= f.number_field :patron_id %>
17
- </div>
18
- <div class="field">
19
- <%= f.label :place %><br />
20
- <%= f.text_area :place %>
21
- </div>
22
- <div class="field">
23
- <%= f.label :street %><br />
24
- <%= f.text_area :street %>
25
- </div>
26
- <div class="field">
27
- <%= f.label :locality %><br />
28
- <%= f.text_area :locality %>
29
- </div>
30
- <div class="field">
31
- <%= f.label :region %><br />
32
- <%= f.text_area :region %>
33
- </div>
34
- <div class="field">
35
- <%= f.label :zip_code %><br />
36
- <%= f.text_field :zip_code %>
37
- </div>
38
- <div class="field">
39
- <%= f.label :country_id %><br />
40
- <%= f.number_field :country_id %>
41
- </div>
42
- <div class="field">
43
- <%= f.label :telephone_number %><br />
44
- <%= f.text_field :telephone_number %>
45
- </div>
46
- <div class="field">
47
- <%= f.label :fax_number %><br />
48
- <%= f.text_field :fax_number %>
49
- </div>
50
- <div class="field">
51
- <%= f.label :note %><br />
52
- <%= f.text_area :note %>
53
- </div>
54
- <div class="actions">
55
- <%= f.submit %>
56
- </div>
57
- <% end %>
@@ -1,6 +0,0 @@
1
- <h1>Editing address</h1>
2
-
3
- <%= render 'form' %>
4
-
5
- <%= link_to 'Show', @address %> |
6
- <%= link_to 'Back', addresses_path %>
@@ -1,41 +0,0 @@
1
- <h1>Listing addresses</h1>
2
-
3
- <table>
4
- <tr>
5
- <th>Patron</th>
6
- <th>Place</th>
7
- <th>Street</th>
8
- <th>Locality</th>
9
- <th>Region</th>
10
- <th>Zip code</th>
11
- <th>Country</th>
12
- <th>Telephone number</th>
13
- <th>Fax number</th>
14
- <th>Note</th>
15
- <th></th>
16
- <th></th>
17
- <th></th>
18
- </tr>
19
-
20
- <% @addresses.each do |address| %>
21
- <tr>
22
- <td><%= address.patron_id %></td>
23
- <td><%= address.place %></td>
24
- <td><%= address.street %></td>
25
- <td><%= address.locality %></td>
26
- <td><%= address.region %></td>
27
- <td><%= address.zip_code %></td>
28
- <td><%= address.country_id %></td>
29
- <td><%= address.telephone_number %></td>
30
- <td><%= address.fax_number %></td>
31
- <td><%= address.note %></td>
32
- <td><%= link_to 'Show', address %></td>
33
- <td><%= link_to 'Edit', edit_address_path(address) %></td>
34
- <td><%= link_to 'Destroy', address, method: :delete, data: { confirm: 'Are you sure?' } %></td>
35
- </tr>
36
- <% end %>
37
- </table>
38
-
39
- <br />
40
-
41
- <%= link_to 'New Address', new_address_path %>
@@ -1,5 +0,0 @@
1
- <h1>New address</h1>
2
-
3
- <%= render 'form' %>
4
-
5
- <%= link_to 'Back', addresses_path %>
@@ -1,55 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <p>
4
- <b>Patron:</b>
5
- <%= @address.patron_id %>
6
- </p>
7
-
8
- <p>
9
- <b>Place:</b>
10
- <%= @address.place %>
11
- </p>
12
-
13
- <p>
14
- <b>Street:</b>
15
- <%= @address.street %>
16
- </p>
17
-
18
- <p>
19
- <b>Locality:</b>
20
- <%= @address.locality %>
21
- </p>
22
-
23
- <p>
24
- <b>Region:</b>
25
- <%= @address.region %>
26
- </p>
27
-
28
- <p>
29
- <b>Zip code:</b>
30
- <%= @address.zip_code %>
31
- </p>
32
-
33
- <p>
34
- <b>Country:</b>
35
- <%= @address.country_id %>
36
- </p>
37
-
38
- <p>
39
- <b>Telephone number:</b>
40
- <%= @address.telephone_number %>
41
- </p>
42
-
43
- <p>
44
- <b>Fax number:</b>
45
- <%= @address.fax_number %>
46
- </p>
47
-
48
- <p>
49
- <b>Note:</b>
50
- <%= @address.note %>
51
- </p>
52
-
53
-
54
- <%= link_to 'Edit', edit_address_path(@address) %> |
55
- <%= link_to 'Back', addresses_path %>
@@ -1,30 +0,0 @@
1
- <%= form_for(@identifier) do |f| %>
2
- <% if @identifier.errors.any? %>
3
- <div id="error_explanation">
4
- <h2><%= pluralize(@identifier.errors.count, "error") %> prohibited this identifier from being saved:</h2>
5
-
6
- <ul>
7
- <% @identifier.errors.full_messages.each do |msg| %>
8
- <li><%= msg %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
13
-
14
- <div class="field">
15
- <%= f.label :body %><br />
16
- <%= f.text_field :body %>
17
- </div>
18
- <div class="field">
19
- <%= f.label :manifestation_id %><br />
20
- <%= f.hidden_field :manifestation_id %>
21
- <%= link_to @identifier.manifestation.original_title, @identifier.manifestation %>
22
- </div>
23
- <div class="field">
24
- <%= f.label :primary %><br />
25
- <%= f.check_box :primary %>
26
- </div>
27
- <div class="actions">
28
- <%= f.submit %>
29
- </div>
30
- <% end %>
@@ -1,15 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.editing', :model => t('activerecord.models.identifier')) -%></h1>
3
- <div id="content_list" class="ui-corner-all">
4
-
5
- <%= render 'form' %>
6
-
7
- </div>
8
- </div>
9
-
10
- <div id="submenu" class="ui-corner-all">
11
- <ul>
12
- <li><%= link_to t('page.show'), @identifier %></li>
13
- <li><%= link_to t('page.back'), identifiers_path %></li>
14
- </ul>
15
- </div>
@@ -1,33 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.identifier')) -%></h1>
3
- <div id="content_list">
4
-
5
- <table class="index">
6
- <tr>
7
- <th><%= t('activerecord.attributes.identifier.body') %></th>
8
- <th><%= t('activerecord.attributes.identifier.manifestation_id') %></th>
9
- <th></th>
10
- </tr>
11
-
12
- <% @identifiers.each do |identifier| %>
13
- <tr class="line<%= cycle("0", "1") -%>">
14
- <td><%= link_to identifier.body, identifier %></td>
15
- <td><%= link_to identifier.manifestation.original_title, identifier.manifestation if identifier.manifestation %></td>
16
- <td>
17
- <%= link_to t('page.edit'), edit_identifier_path(identifier) %>
18
- <%= link_to t('page.destroy'), identifier, method: :delete, data: { confirm: 'Are you sure?' } %>
19
- </td>
20
- </tr>
21
- <% end %>
22
- </table>
23
-
24
- <%= paginate(@identifiers) %>
25
-
26
- </div>
27
- </div>
28
-
29
- <div id="submenu">
30
- <ul>
31
- <li><%= link_to 'New Identifier', new_identifier_path %></li>
32
- </ul>
33
- </div>
@@ -1,14 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.new', :model => t('activerecord.models.identifier')) -%></h1>
3
- <div id="content_list" class="ui-corner-all">
4
-
5
- <%= render 'form' %>
6
-
7
- </div>
8
- </div>
9
-
10
- <div id="submenu">
11
- <ul>
12
- <li><%= link_to t('page.back'), identifiers_path %></li>
13
- </ul>
14
- </div>
@@ -1,29 +0,0 @@
1
- <div id="content_detail" class="ui-corner-all">
2
- <h1 class="title"><%= t('page.showing', :model => t('activerecord.models.identifier')) -%></h1>
3
- <div id="content_list" class="ui-corner-all">
4
- <p id="notice"><%= notice %></p>
5
-
6
- <p>
7
- <b>Body:</b>
8
- <%= @identifier.body %>
9
- </p>
10
-
11
- <p>
12
- <b>Manifestation:</b>
13
- <%= @identifier.manifestation_id %>
14
- </p>
15
-
16
- <p>
17
- <b>Primary:</b>
18
- <%= @identifier.primary %>
19
- </p>
20
-
21
- </div>
22
- </div>
23
-
24
- <div id="submenu">
25
- <ul>
26
- <li><%= link_to t('page.edit'), edit_identifier_path(@identifier) %></li>
27
- <li><%= link_to t('page.back'), identifiers_path %></li>
28
- </ul>
29
- </div>
@@ -1,9 +0,0 @@
1
- class AddNdcToManifestation < ActiveRecord::Migration
2
- def self.up
3
- add_column :manifestations, :ndc, :string
4
- end
5
-
6
- def self.down
7
- remove_column :manifestations, :ndc
8
- end
9
- end