enju_biblio 0.1.0.pre70 → 0.1.0.pre71

Sign up to get free protection for your applications and to get access to all the features.
Files changed (17) hide show
  1. checksums.yaml +4 -4
  2. data/app/views/manifestations/_paginate_id_link.html.erb +1 -19
  3. data/app/views/manifestations/_paginate_id_store.html.erb +18 -0
  4. data/lib/enju_biblio/version.rb +1 -1
  5. metadata +13 -36
  6. data/spec/cassette_library/ImportRequest/import/should_import_bibliographic_record.yml +0 -674
  7. data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_isbn_which_is_already_imported/redirects_to_the_created_import_request.yml +0 -616
  8. data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml +0 -616
  9. data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/redirects_to_the_created_import_request.yml +0 -616
  10. data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml +0 -616
  11. data/spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/redirects_to_the_created_import_request.yml +0 -616
  12. data/spec/cassette_library/ResourceImportFile/should_import_in_background.yml +0 -429
  13. data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/ISBN_import/with_record_not_found/should_record_an_error_message.yml +0 -155
  14. data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_has_only_isbn/should_be_imported.yml +0 -766
  15. data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_shift_jis/should_be_imported.yml +0 -502
  16. data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_be_imported.yml +0 -502
  17. data/spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_send_message_when_import_is_completed.yml +0 -502
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 425bc780b4a2e2ffd787ed793b8fb766c360f509
4
- data.tar.gz: 20f5029a1f52d193e2f59a5c764828dfc6486bca
3
+ metadata.gz: da85f17d5718d8a29ce8caf9e4d215d04aa57d55
4
+ data.tar.gz: 9aa290ec5a3f81947bc87997d95c171a28bee4d1
5
5
  SHA512:
6
- metadata.gz: 6e98d9db1f15ac100f3af35bc629728e08690a3ebc573d91d818ce7a4b7b99a2ccea8d9820120e4eebc09c52520adee7d1052ad94cf647b1d5b05f708c2c4b97
7
- data.tar.gz: 74b3ced47eca6208bfce30fce662d40d1d91b3b77d3bf82eb1a104bc286ce806fc2920e180306b5e70188974abd37544f505fcbe99678a8de932b02c8e328de7
6
+ metadata.gz: b606fc3a9d815663126c8cfff4e3b08640cc775e99ce977c81de61e436c40336483e4c9a87072da3772f08ee1a98e0e226341bb556aba232c509437c20e36886
7
+ data.tar.gz: dca015771ba01e92e8b819d31c2edf03e8b9722c6177bcc055b608f8fad6d52ee4e73d79c1a12c252df0062545fcec393f3dc6f637914763ab6ba95d47cc7129
@@ -1,22 +1,4 @@
1
- <% if flash[:search_query] %>
2
- <script>
3
- $(function(){
4
- if(typeof sessionStorage === "undefined"){
5
- return;
6
- }else{
7
- var ids = JSON.parse(sessionStorage.getItem("<%= flash[:search_query] %>"));
8
- var index = $.inArray(<%= manifestation.id %>, ids);
9
- if(ids[index - 1] > 0){
10
- $("#prev_link").html('<a href="<%= root_url %>manifestations/' + ids[index - 1] + '"><%= t('page.previous') %></a>');
11
- };
12
- if(ids[index + 1] > 0){
13
- $("#next_link").html('<a href="<%= root_url %>manifestations/' + ids[index + 1] + '"><%= t('page.next') %></a>');
14
- };
15
- };
16
- });
17
- </script>
18
- <% end %>
19
-
1
+ <%= render 'manifestations/paginate_id_store' %>
20
2
  <%= form_for :manifestations, url: manifestations_path, html: {method: 'get'} do -%>
21
3
  <div>
22
4
  <span id="next_link"><%= t('page.next') %></span>
@@ -0,0 +1,18 @@
1
+ <% if flash[:search_query] %>
2
+ <script>
3
+ $(function(){
4
+ if(typeof sessionStorage === "undefined"){
5
+ return;
6
+ }else{
7
+ var ids = JSON.parse(sessionStorage.getItem("<%= flash[:search_query] %>"));
8
+ var index = $.inArray(<%= @manifestation.id %>, ids);
9
+ if(ids[index - 1] > 0){
10
+ $("#prev_link").html('<a href="<%= manifestations_path %>/' + ids[index - 1] + '"><%= t('page.previous') %></a>');
11
+ };
12
+ if(ids[index + 1] > 0){
13
+ $("#next_link").html('<a href="<%= manifestations_path %>/' + ids[index + 1] + '"><%= t('page.next') %></a>');
14
+ };
15
+ };
16
+ });
17
+ </script>
18
+ <% end %>
@@ -1,3 +1,3 @@
1
1
  module EnjuBiblio
2
- VERSION = "0.1.0.pre70"
2
+ VERSION = "0.1.0.pre71"
3
3
  end
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.pre70
4
+ version: 0.1.0.pre71
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-01 00:00:00.000000000 Z
11
+ date: 2015-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paperclip
@@ -266,16 +266,16 @@ dependencies:
266
266
  name: vcr
267
267
  requirement: !ruby/object:Gem::Requirement
268
268
  requirements:
269
- - - ">="
269
+ - - "~>"
270
270
  - !ruby/object:Gem::Version
271
- version: '0'
271
+ version: '3.0'
272
272
  type: :development
273
273
  prerelease: false
274
274
  version_requirements: !ruby/object:Gem::Requirement
275
275
  requirements:
276
- - - ">="
276
+ - - "~>"
277
277
  - !ruby/object:Gem::Version
278
- version: '0'
278
+ version: '3.0'
279
279
  - !ruby/object:Gem::Dependency
280
280
  name: sunspot_solr
281
281
  requirement: !ruby/object:Gem::Requirement
@@ -296,28 +296,28 @@ dependencies:
296
296
  requirements:
297
297
  - - "~>"
298
298
  - !ruby/object:Gem::Version
299
- version: 1.1.0.rc21
299
+ version: 1.1.0.rc22
300
300
  type: :development
301
301
  prerelease: false
302
302
  version_requirements: !ruby/object:Gem::Requirement
303
303
  requirements:
304
304
  - - "~>"
305
305
  - !ruby/object:Gem::Version
306
- version: 1.1.0.rc21
306
+ version: 1.1.0.rc22
307
307
  - !ruby/object:Gem::Dependency
308
308
  name: enju_subject
309
309
  requirement: !ruby/object:Gem::Requirement
310
310
  requirements:
311
311
  - - "~>"
312
312
  - !ruby/object:Gem::Version
313
- version: 0.1.0.pre33
313
+ version: 0.1.0.pre34
314
314
  type: :development
315
315
  prerelease: false
316
316
  version_requirements: !ruby/object:Gem::Requirement
317
317
  requirements:
318
318
  - - "~>"
319
319
  - !ruby/object:Gem::Version
320
- version: 0.1.0.pre33
320
+ version: 0.1.0.pre34
321
321
  - !ruby/object:Gem::Dependency
322
322
  name: enju_inventory
323
323
  requirement: !ruby/object:Gem::Requirement
@@ -380,14 +380,14 @@ dependencies:
380
380
  requirements:
381
381
  - - "~>"
382
382
  - !ruby/object:Gem::Version
383
- version: 0.1.0.pre48
383
+ version: 0.1.0.pre49
384
384
  type: :development
385
385
  prerelease: false
386
386
  version_requirements: !ruby/object:Gem::Requirement
387
387
  requirements:
388
388
  - - "~>"
389
389
  - !ruby/object:Gem::Version
390
- version: 0.1.0.pre48
390
+ version: 0.1.0.pre49
391
391
  - !ruby/object:Gem::Dependency
392
392
  name: enju_ndl
393
393
  requirement: !ruby/object:Gem::Requirement
@@ -759,6 +759,7 @@ files:
759
759
  - app/views/manifestations/_manifestation_list.html.erb
760
760
  - app/views/manifestations/_not_found.html.erb
761
761
  - app/views/manifestations/_paginate_id_link.html.erb
762
+ - app/views/manifestations/_paginate_id_store.html.erb
762
763
  - app/views/manifestations/_pickup.html.erb
763
764
  - app/views/manifestations/_pub_year_facet.html.erb
764
765
  - app/views/manifestations/_reservable_facet.html.erb
@@ -1016,18 +1017,6 @@ files:
1016
1017
  - lib/tasks/enju_biblio_tasks.rake
1017
1018
  - lib/tasks/identifier_type.rb
1018
1019
  - lib/tasks/item.rb
1019
- - spec/cassette_library/ImportRequest/import/should_import_bibliographic_record.yml
1020
- - spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_isbn_which_is_already_imported/redirects_to_the_created_import_request.yml
1021
- - spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml
1022
- - spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/redirects_to_the_created_import_request.yml
1023
- - spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml
1024
- - spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/redirects_to_the_created_import_request.yml
1025
- - spec/cassette_library/ResourceImportFile/should_import_in_background.yml
1026
- - spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/ISBN_import/with_record_not_found/should_record_an_error_message.yml
1027
- - spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_has_only_isbn/should_be_imported.yml
1028
- - spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_shift_jis/should_be_imported.yml
1029
- - spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_be_imported.yml
1030
- - spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_send_message_when_import_is_completed.yml
1031
1020
  - spec/controllers/agent_import_files_controller_spec.rb
1032
1021
  - spec/controllers/agent_import_results_controller_spec.rb
1033
1022
  - spec/controllers/agent_merge_lists_controller_spec.rb
@@ -1494,18 +1483,6 @@ signing_key:
1494
1483
  specification_version: 4
1495
1484
  summary: enju_biblio plugin
1496
1485
  test_files:
1497
- - spec/cassette_library/ImportRequest/import/should_import_bibliographic_record.yml
1498
- - spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_isbn_which_is_already_imported/redirects_to_the_created_import_request.yml
1499
- - spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml
1500
- - spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Administrator/with_valid_params/redirects_to_the_created_import_request.yml
1501
- - spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/assigns_a_newly_created_import_request_as_import_request.yml
1502
- - spec/cassette_library/ImportRequestsController/POST_create/When_logged_in_as_Librarian/with_valid_params/redirects_to_the_created_import_request.yml
1503
- - spec/cassette_library/ResourceImportFile/should_import_in_background.yml
1504
- - spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/ISBN_import/with_record_not_found/should_record_an_error_message.yml
1505
- - spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_has_only_isbn/should_be_imported.yml
1506
- - spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_shift_jis/should_be_imported.yml
1507
- - spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_be_imported.yml
1508
- - spec/cassette_library/ResourceImportFile/when_its_mode_is_create_/when_it_is_written_in_utf-8/should_send_message_when_import_is_completed.yml
1509
1486
  - spec/controllers/agent_import_files_controller_spec.rb
1510
1487
  - spec/controllers/agent_import_results_controller_spec.rb
1511
1488
  - spec/controllers/agent_merge_lists_controller_spec.rb