zizia 5.2.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +17 -3
  3. data/.github_changelog_generator +1 -1
  4. data/CHANGELOG.md +194 -17
  5. data/README.md +39 -21
  6. data/app/assets/stylesheets/zizia/_button.scss +10 -0
  7. data/app/assets/stylesheets/zizia/zizia.scss +1 -5
  8. data/app/controllers/zizia/csv_import_details_controller.rb +3 -3
  9. data/app/helpers/zizia/application_helper.rb +6 -0
  10. data/app/importers/modular_importer.rb +10 -6
  11. data/app/lib/zizia/metadata_details.rb +14 -14
  12. data/app/uploaders/zizia/csv_manifest_validator.rb +2 -2
  13. data/app/views/zizia/csv_import_details/_pre_ingest_files_table.html.erb +31 -22
  14. data/app/views/zizia/csv_import_details/show.html.erb +5 -1
  15. data/app/views/zizia/csv_imports/_record_count.html.erb +1 -1
  16. data/config/initializers/content_deposit_event_job_prepends.rb +10 -0
  17. data/config/initializers/file_set_attached_event_job_prepends.rb +12 -0
  18. data/config/initializers/prepends.rb +2 -0
  19. data/db/migrate/20191114021032_add_status_to_pre_ingest_file.rb +5 -0
  20. data/db/migrate/20191210223833_add_status_to_pre_ingest_work.rb +5 -0
  21. data/lib/zizia/hyrax/hyrax_basic_metadata_mapper.rb +10 -1
  22. data/lib/zizia/parser.rb +6 -6
  23. data/lib/zizia/version.rb +1 -1
  24. data/spec/dummy/.gitignore +1 -1
  25. data/spec/dummy/app/models/work.rb +1 -1
  26. data/spec/dummy/db/schema.rb +2 -0
  27. data/spec/dummy/db/test.sqlite3 +0 -0
  28. data/spec/dummy/spec/fixtures/csv_import/csv_files_with_problems/extra - headers.csv +4 -4
  29. data/spec/dummy/spec/fixtures/csv_import/good/all_fields.csv +2 -2
  30. data/spec/dummy/spec/fixtures/csv_import/good/all_fields_multi.csv +2 -0
  31. data/spec/dummy/spec/support/capybara.rb +1 -0
  32. data/spec/dummy/spec/system/csv_import_details_page_spec.rb +29 -4
  33. data/spec/dummy/spec/system/import_csv_with_warnings_spec.rb +1 -1
  34. data/spec/dummy/spec/system/import_file_status_spec.rb +95 -0
  35. data/spec/dummy/spec/system/import_from_csv_spec.rb +8 -9
  36. data/spec/factories/pre_ingest_work.rb +0 -1
  37. data/spec/models/zizia/application_job_spec.rb +12 -0
  38. data/spec/support/hyrax/basic_metadata.rb +3 -0
  39. data/spec/zizia/csv_format_validator_spec.rb +1 -1
  40. data/spec/zizia/hyrax/hyrax_basic_metadata_mapper_spec.rb +5 -1
  41. data/zizia.gemspec +12 -10
  42. metadata +84 -35
  43. data/.travis.yml +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2ce3c9e0a30e76c3f33a6341945b902801c6ef1efbc131e0c8a19182f71eb71
4
- data.tar.gz: 37c8b43375005b6e247b87341309e9d45146bf0aebb4297bcd8efb8ccc7128a8
3
+ metadata.gz: fa20860ee0d126aeb20510762076a369db7a437b55a96c76d2951848b9c58e10
4
+ data.tar.gz: '04819010a1955331cd6a1265acb765bccfff17dd3a0770e1076bbdb1b16948f5'
5
5
  SHA512:
6
- metadata.gz: 970072b31940c2bacfaaa46f5889d334dffc699a4c3bbfd539994ed035bf674717e612b32a798b514ea028e7523b4df79ae7f7618ecba656572141d2a9923325
7
- data.tar.gz: 6d895774afd95f9ef4a1ef90944212be27627ff70ddde86562d0471dc00c62d705c162410530836587421e1ce4d0c18fb6ca413f1af2b9721259a49d2b87367d
6
+ metadata.gz: fd99c65e5d9e6be74d8235373af881d607be825e1f2121a1caec15c7598ac41bf63a8a29862e13da7752c80794925442c5c11e6be75f35701eea62dd458fecc5
7
+ data.tar.gz: 459a88b20db1ef17927bafea06b43f8dbbdabcfd3c32aaec377d256f510067f3ba0d9ea27779ad295f041cd9586ac3b5d29c49ea998d9901ec13b657ddb2684c
@@ -1,6 +1,6 @@
1
1
  version: 2.1
2
2
  orbs:
3
- samvera: samvera/circleci-orb@0.3.1
3
+ samvera: samvera/circleci-orb@0
4
4
  jobs:
5
5
  build:
6
6
  parameters:
@@ -9,7 +9,10 @@ jobs:
9
9
  default: 2.5.3
10
10
  bundler_version:
11
11
  type: string
12
- default: 2.0.1
12
+ default: 2.1.4
13
+ rails_version:
14
+ type: string
15
+ default: 5.1.7
13
16
  executor:
14
17
  name: samvera/ruby_fcrepo_solr_redis
15
18
  ruby_version: << parameters.ruby_version >>
@@ -17,6 +20,7 @@ jobs:
17
20
  parallelism: 1
18
21
  environment:
19
22
  COVERALLS_PARALLEL: true
23
+ RAILS_VERSION: << parameters.rails_version >>
20
24
  steps:
21
25
  - checkout
22
26
 
@@ -42,4 +46,14 @@ workflows:
42
46
  ci:
43
47
  jobs:
44
48
  - build:
45
- name: ruby2-5-3
49
+ name: ruby2-5-8_with_rails_5_2
50
+ ruby_version: 2.5.8
51
+ rails_version: 5.2.4.3
52
+ - build:
53
+ name: ruby2-6-6_with_rails_5_2
54
+ ruby_version: 2.6.6
55
+ rails_version: 5.2.4.3
56
+ - build:
57
+ name: ruby2-7-1_with_rails_5_2
58
+ ruby_version: 2.7.1
59
+ rails_version: 5.2.4.3
@@ -1,2 +1,2 @@
1
1
  unreleased=true
2
- future-release=5.1.0
2
+ future-release=v6.0.1
@@ -1,15 +1,92 @@
1
1
  # Changelog
2
2
 
3
- ## [5.1.0](https://github.com/curationexperts/zizia/tree/5.1.0) (2019-11-04)
3
+ ## [v6.0.1](https://github.com/curationexperts/zizia/tree/v6.0.1) (2020-08-07)
4
4
 
5
- [Full Changelog](https://github.com/curationexperts/zizia/compare/v5.0.1...5.1.0)
5
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v6.0.0...v6.0.1)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Intermittently failing test in CI - Viewing the csv import detail page has pagination for PreIngestWorks [\#82](https://github.com/curationexperts/zizia/issues/82)
10
+ - Bundle install not working - seems to get in infinite loop on bundler [\#70](https://github.com/curationexperts/zizia/issues/70)
11
+
12
+ **Merged pull requests:**
13
+
14
+ - Loosen dependency requirements slightly for listen gem. [\#104](https://github.com/curationexperts/zizia/pull/104) ([fnibbit](https://github.com/fnibbit))
15
+ - Pause in test to avoid timing-dependent failures [\#102](https://github.com/curationexperts/zizia/pull/102) ([fnibbit](https://github.com/fnibbit))
16
+ - Stop requiring test migrations be re-run [\#101](https://github.com/curationexperts/zizia/pull/101) ([bess](https://github.com/bess))
17
+ - Update ruby and rails version in second CI build [\#100](https://github.com/curationexperts/zizia/pull/100) ([maxkadel](https://github.com/maxkadel))
18
+ - Update CI workflow with ruby and rails versions in build [\#99](https://github.com/curationexperts/zizia/pull/99) ([maxkadel](https://github.com/maxkadel))
19
+ - Use latest Samvera circleci orb [\#98](https://github.com/curationexperts/zizia/pull/98) ([maxkadel](https://github.com/maxkadel))
20
+ - Match CI bundler to local development [\#97](https://github.com/curationexperts/zizia/pull/97) ([maxkadel](https://github.com/maxkadel))
21
+ - Remove Travis config - using CircleCI [\#96](https://github.com/curationexperts/zizia/pull/96) ([maxkadel](https://github.com/maxkadel))
22
+ - Upgrade capybara to 3.x [\#88](https://github.com/curationexperts/zizia/pull/88) ([fnibbit](https://github.com/fnibbit))
23
+ - Loosen gem dependencies slightly [\#87](https://github.com/curationexperts/zizia/pull/87) ([fnibbit](https://github.com/fnibbit))
24
+ - Require bundler 2 to avoid dependency loops [\#86](https://github.com/curationexperts/zizia/pull/86) ([fnibbit](https://github.com/fnibbit))
25
+ - Cherry pick rescue missing files [\#85](https://github.com/curationexperts/zizia/pull/85) ([maxkadel](https://github.com/maxkadel))
26
+ - Update readme to reflect local development practices [\#84](https://github.com/curationexperts/zizia/pull/84) ([maxkadel](https://github.com/maxkadel))
27
+ - Update sass-rails to fix dependency calculation [\#83](https://github.com/curationexperts/zizia/pull/83) ([maxkadel](https://github.com/maxkadel))
28
+ - Fixing a typo [\#80](https://github.com/curationexperts/zizia/pull/80) ([jeremyf](https://github.com/jeremyf))
29
+ - Update bixby to ~\> 2.0 [\#72](https://github.com/curationexperts/zizia/pull/72) ([little9](https://github.com/little9))
30
+ - Update button styling [\#71](https://github.com/curationexperts/zizia/pull/71) ([little9](https://github.com/little9))
31
+
32
+ ## [v6.0.0](https://github.com/curationexperts/zizia/tree/v6.0.0) (2019-12-13)
33
+
34
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v5.5.0...v6.0.0)
35
+
36
+ **Merged pull requests:**
37
+
38
+ - Revert "Basic file status" [\#68](https://github.com/curationexperts/zizia/pull/68) ([little9](https://github.com/little9))
39
+ - More detailed file status [\#66](https://github.com/curationexperts/zizia/pull/66) ([little9](https://github.com/little9))
40
+
41
+ ## [v5.5.0](https://github.com/curationexperts/zizia/tree/v5.5.0) (2019-11-21)
42
+
43
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v5.4.0...v5.5.0)
44
+
45
+ **Merged pull requests:**
46
+
47
+ - Add ID as secondary sort order [\#69](https://github.com/curationexperts/zizia/pull/69) ([little9](https://github.com/little9))
48
+ - Add rails 5.2 support [\#67](https://github.com/curationexperts/zizia/pull/67) ([bess](https://github.com/bess))
49
+
50
+ ## [v5.4.0](https://github.com/curationexperts/zizia/tree/v5.4.0) (2019-11-14)
51
+
52
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v5.3.0...v5.4.0)
53
+
54
+ **Merged pull requests:**
55
+
56
+ - Basic file status [\#65](https://github.com/curationexperts/zizia/pull/65) ([little9](https://github.com/little9))
57
+
58
+ ## [v5.3.0](https://github.com/curationexperts/zizia/tree/v5.3.0) (2019-11-11)
59
+
60
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v5.2.0...v5.3.0)
61
+
62
+ **Merged pull requests:**
63
+
64
+ - Toggle files table [\#63](https://github.com/curationexperts/zizia/pull/63) ([little9](https://github.com/little9))
65
+ - Paginate PreIngestWorks [\#62](https://github.com/curationexperts/zizia/pull/62) ([little9](https://github.com/little9))
66
+ - Change count language on preview screen [\#61](https://github.com/curationexperts/zizia/pull/61) ([little9](https://github.com/little9))
67
+
68
+ ## [v5.2.0](https://github.com/curationexperts/zizia/tree/v5.2.0) (2019-11-06)
69
+
70
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v5.1.0...v5.2.0)
71
+
72
+ **Merged pull requests:**
73
+
74
+ - Update README to include requiring zizia in the application.rb file [\#60](https://github.com/curationexperts/zizia/pull/60) ([little9](https://github.com/little9))
75
+ - Remove contrainst from dedupekey [\#59](https://github.com/curationexperts/zizia/pull/59) ([little9](https://github.com/little9))
76
+ - Make deduplication\_key a unique field in the database [\#57](https://github.com/curationexperts/zizia/pull/57) ([little9](https://github.com/little9))
77
+ - Add works to batch UI [\#56](https://github.com/curationexperts/zizia/pull/56) ([little9](https://github.com/little9))
78
+ - Update test solr & fedora to latest known good versions [\#55](https://github.com/curationexperts/zizia/pull/55) ([mark-dce](https://github.com/mark-dce))
79
+
80
+ ## [v5.1.0](https://github.com/curationexperts/zizia/tree/v5.1.0) (2019-11-04)
81
+
82
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v5.0.1...v5.1.0)
6
83
 
7
84
  **Merged pull requests:**
8
85
 
9
86
  - Add ability to toggle your imports [\#54](https://github.com/curationexperts/zizia/pull/54) ([little9](https://github.com/little9))
10
87
  - Add deduplication\_key to Zizia::PreIngestWork model [\#53](https://github.com/curationexperts/zizia/pull/53) ([bess](https://github.com/bess))
11
- - Initial batch sorting [\#52](https://github.com/curationexperts/zizia/pull/52) ([little9](https://github.com/little9))
12
- - Show more info on batch page [\#51](https://github.com/curationexperts/zizia/pull/51) ([little9](https://github.com/little9))
88
+ - WIP: Initial batch sorting [\#52](https://github.com/curationexperts/zizia/pull/52) ([little9](https://github.com/little9))
89
+ - Show more info on batch page [\#51](https://github.com/curationexperts/zizia/pull/51) ([little9](https://github.com/little9))
13
90
  - Only show the basename for PreIngestFile [\#50](https://github.com/curationexperts/zizia/pull/50) ([little9](https://github.com/little9))
14
91
  - Add Date to details page [\#49](https://github.com/curationexperts/zizia/pull/49) ([little9](https://github.com/little9))
15
92
  - Set import details pagination to 10 [\#48](https://github.com/curationexperts/zizia/pull/48) ([little9](https://github.com/little9))
@@ -34,7 +111,6 @@
34
111
  - Update headers for the downloadable CSV template [\#43](https://github.com/curationexperts/zizia/pull/43) ([mark-dce](https://github.com/mark-dce))
35
112
  - Update design of new CSV import page [\#42](https://github.com/curationexperts/zizia/pull/42) ([mark-dce](https://github.com/mark-dce))
36
113
  - Update to correct spelling for keyword field [\#41](https://github.com/curationexperts/zizia/pull/41) ([mark-dce](https://github.com/mark-dce))
37
- - Use yes/no language in the metadata guide [\#40](https://github.com/curationexperts/zizia/pull/40) ([bess](https://github.com/bess))
38
114
 
39
115
  ## [v4.6.0.alpha01](https://github.com/curationexperts/zizia/tree/v4.6.0.alpha01) (2019-10-15)
40
116
 
@@ -42,6 +118,7 @@
42
118
 
43
119
  **Merged pull requests:**
44
120
 
121
+ - Use yes/no language in the metadata guide [\#40](https://github.com/curationexperts/zizia/pull/40) ([bess](https://github.com/bess))
45
122
  - Add dashboard layout to csv import screens [\#39](https://github.com/curationexperts/zizia/pull/39) ([bess](https://github.com/bess))
46
123
  - Update Usage data for the metadata field guide [\#38](https://github.com/curationexperts/zizia/pull/38) ([mark-dce](https://github.com/mark-dce))
47
124
  - Update language for multiple values on metadata field guide [\#37](https://github.com/curationexperts/zizia/pull/37) ([bess](https://github.com/bess))
@@ -108,7 +185,11 @@
108
185
 
109
186
  ## [v4.2.0.alpha.01](https://github.com/curationexperts/zizia/tree/v4.2.0.alpha.01) (2019-10-01)
110
187
 
111
- [Full Changelog](https://github.com/curationexperts/zizia/compare/v4.1.0.alpha.01...v4.2.0.alpha.01)
188
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/vv4.2.0.alpha.01...v4.2.0.alpha.01)
189
+
190
+ ## [vv4.2.0.alpha.01](https://github.com/curationexperts/zizia/tree/vv4.2.0.alpha.01) (2019-10-01)
191
+
192
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v4.1.0.alpha.01...vv4.2.0.alpha.01)
112
193
 
113
194
  **Merged pull requests:**
114
195
 
@@ -116,7 +197,7 @@
116
197
 
117
198
  ## [v4.1.0.alpha.01](https://github.com/curationexperts/zizia/tree/v4.1.0.alpha.01) (2019-09-30)
118
199
 
119
- [Full Changelog](https://github.com/curationexperts/zizia/compare/v4...v4.1.0.alpha.01)
200
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v4.0.2.alpha.01...v4.1.0.alpha.01)
120
201
 
121
202
  **Merged pull requests:**
122
203
 
@@ -124,13 +205,13 @@
124
205
  - Revert "Update coverage formatter for CI environments" [\#23](https://github.com/curationexperts/zizia/pull/23) ([mark-dce](https://github.com/mark-dce))
125
206
  - Update coverage formatter for CI environments [\#22](https://github.com/curationexperts/zizia/pull/22) ([mark-dce](https://github.com/mark-dce))
126
207
 
127
- ## [v4](https://github.com/curationexperts/zizia/tree/v4) (2019-09-25)
208
+ ## [v4.0.2.alpha.01](https://github.com/curationexperts/zizia/tree/v4.0.2.alpha.01) (2019-09-25)
128
209
 
129
- [Full Changelog](https://github.com/curationexperts/zizia/compare/v4.0.2.alpha.01...v4)
210
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v4...v4.0.2.alpha.01)
130
211
 
131
- ## [v4.0.2.alpha.01](https://github.com/curationexperts/zizia/tree/v4.0.2.alpha.01) (2019-09-25)
212
+ ## [v4](https://github.com/curationexperts/zizia/tree/v4) (2019-09-25)
132
213
 
133
- [Full Changelog](https://github.com/curationexperts/zizia/compare/v4.0.0.alpha.01...v4.0.2.alpha.01)
214
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v4.0.0.alpha.01...v4)
134
215
 
135
216
  ## [v4.0.0.alpha.01](https://github.com/curationexperts/zizia/tree/v4.0.0.alpha.01) (2019-09-25)
136
217
 
@@ -203,11 +284,7 @@
203
284
 
204
285
  ## [v2.1.0.alpha.04](https://github.com/curationexperts/zizia/tree/v2.1.0.alpha.04) (2019-08-01)
205
286
 
206
- [Full Changelog](https://github.com/curationexperts/zizia/compare/v2.1.0.alpha.03...v2.1.0.alpha.04)
207
-
208
- ## [v2.1.0.alpha.03](https://github.com/curationexperts/zizia/tree/v2.1.0.alpha.03) (2019-08-01)
209
-
210
- [Full Changelog](https://github.com/curationexperts/zizia/compare/v2.1.0.alpha.02...v2.1.0.alpha.03)
287
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v2.1.0.alpha.02...v2.1.0.alpha.04)
211
288
 
212
289
  **Merged pull requests:**
213
290
 
@@ -247,7 +324,107 @@
247
324
 
248
325
  ## [v1.0.1](https://github.com/curationexperts/zizia/tree/v1.0.1) (2019-07-25)
249
326
 
250
- [Full Changelog](https://github.com/curationexperts/zizia/compare/3d82f40f28eb65607837bd832c3dd46e3a305361...v1.0.1)
327
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v3.2.2...v1.0.1)
328
+
329
+ ## [v3.2.2](https://github.com/curationexperts/zizia/tree/v3.2.2) (2019-04-04)
330
+
331
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v3.2.1...v3.2.2)
332
+
333
+ ## [v3.2.1](https://github.com/curationexperts/zizia/tree/v3.2.1) (2019-04-04)
334
+
335
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v3.2.0...v3.2.1)
336
+
337
+ ## [v3.2.0](https://github.com/curationexperts/zizia/tree/v3.2.0) (2019-03-05)
338
+
339
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v3.1.1...v3.2.0)
340
+
341
+ ## [v3.1.1](https://github.com/curationexperts/zizia/tree/v3.1.1) (2019-02-26)
342
+
343
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v3.1.0...v3.1.1)
344
+
345
+ ## [v3.1.0](https://github.com/curationexperts/zizia/tree/v3.1.0) (2019-02-26)
346
+
347
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v3.0.5...v3.1.0)
348
+
349
+ ## [v3.0.5](https://github.com/curationexperts/zizia/tree/v3.0.5) (2019-02-26)
350
+
351
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v3.0.4...v3.0.5)
352
+
353
+ ## [v3.0.4](https://github.com/curationexperts/zizia/tree/v3.0.4) (2019-02-22)
354
+
355
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v3.0.3...v3.0.4)
356
+
357
+ ## [v3.0.3](https://github.com/curationexperts/zizia/tree/v3.0.3) (2019-02-21)
358
+
359
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v3.0.2...v3.0.3)
360
+
361
+ ## [v3.0.2](https://github.com/curationexperts/zizia/tree/v3.0.2) (2019-02-21)
362
+
363
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v3.0.1...v3.0.2)
364
+
365
+ ## [v3.0.1](https://github.com/curationexperts/zizia/tree/v3.0.1) (2019-02-14)
366
+
367
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v3.0.0...v3.0.1)
368
+
369
+ ## [v3.0.0](https://github.com/curationexperts/zizia/tree/v3.0.0) (2019-02-13)
370
+
371
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v2.2.0...v3.0.0)
372
+
373
+ ## [v2.2.0](https://github.com/curationexperts/zizia/tree/v2.2.0) (2019-02-13)
374
+
375
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v2.1.0...v2.2.0)
376
+
377
+ ## [v2.1.0](https://github.com/curationexperts/zizia/tree/v2.1.0) (2019-02-12)
378
+
379
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v2.0.0...v2.1.0)
380
+
381
+ ## [v2.0.0](https://github.com/curationexperts/zizia/tree/v2.0.0) (2019-02-04)
382
+
383
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v1.2.3...v2.0.0)
384
+
385
+ ## [v1.2.3](https://github.com/curationexperts/zizia/tree/v1.2.3) (2019-01-24)
386
+
387
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v1.2.2...v1.2.3)
388
+
389
+ ## [v1.2.2](https://github.com/curationexperts/zizia/tree/v1.2.2) (2019-01-24)
390
+
391
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v1.2.1...v1.2.2)
392
+
393
+ ## [v1.2.1](https://github.com/curationexperts/zizia/tree/v1.2.1) (2019-01-24)
394
+
395
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v1.2.0...v1.2.1)
396
+
397
+ ## [v1.2.0](https://github.com/curationexperts/zizia/tree/v1.2.0) (2019-01-03)
398
+
399
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v1.1.0...v1.2.0)
400
+
401
+ ## [v1.1.0](https://github.com/curationexperts/zizia/tree/v1.1.0) (2018-12-18)
402
+
403
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v1.0.0...v1.1.0)
404
+
405
+ ## [v1.0.0](https://github.com/curationexperts/zizia/tree/v1.0.0) (2018-01-29)
406
+
407
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v1.0.0.pre.rc1...v1.0.0)
408
+
409
+ ## [v1.0.0.pre.rc1](https://github.com/curationexperts/zizia/tree/v1.0.0.pre.rc1) (2018-01-25)
410
+
411
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v0.3.0...v1.0.0.pre.rc1)
412
+
413
+ ## [v0.3.0](https://github.com/curationexperts/zizia/tree/v0.3.0) (2018-01-19)
414
+
415
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v0.2.0...v0.3.0)
416
+
417
+ ## [v0.2.0](https://github.com/curationexperts/zizia/tree/v0.2.0) (2018-01-17)
418
+
419
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v0.1.1...v0.2.0)
420
+
421
+ ## [v0.1.1](https://github.com/curationexperts/zizia/tree/v0.1.1) (2018-01-12)
422
+
423
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/v0.1.0...v0.1.1)
424
+
425
+ ## [v0.1.0](https://github.com/curationexperts/zizia/tree/v0.1.0) (2018-01-11)
426
+
427
+ [Full Changelog](https://github.com/curationexperts/zizia/compare/3d82f40f28eb65607837bd832c3dd46e3a305361...v0.1.0)
251
428
 
252
429
 
253
430
 
data/README.md CHANGED
@@ -17,7 +17,7 @@ Object import for Hyrax.
17
17
  ## Usage
18
18
 
19
19
  In your project's `Gemfile`, add: `gem 'zizia'`, then run `bundle install`.
20
- 1. Require 'zizia' in your `config/application.rb` file:
20
+ 1. Require 'zizia' in your `config/application.rb` file:
21
21
 
22
22
  ```
23
23
  module MyApplication
@@ -43,7 +43,7 @@ helper Zizia::Engine.helpers
43
43
  can :manage, Zizia::CsvImportDetail if current_user.admin?
44
44
  ```
45
45
 
46
- 5. Add links to `/csv_imports/new` and `/importer_documentation/csv` in the Hyrax dashboard.
46
+ 5. Add links to `/csv_imports/new` and `/importer_documentation/csv` in the Hyrax dashboard.
47
47
 
48
48
  6. In your Rails application's `application.css` and `application.js` include Zizia's assets:
49
49
 
@@ -53,22 +53,22 @@ helper Zizia::Engine.helpers
53
53
 
54
54
  7. Run `rake db:migrate`
55
55
 
56
- The `spec/dummy` folder in this application is a complete Hyrax application with Zizia installed.
56
+ The `spec/dummy` folder in this application is a complete Hyrax application with Zizia installed.
57
57
  You can use that as an example for adding this to your current Hyrax application or copy that
58
- to create a new application with Zizia installed.
58
+ to create a new application with Zizia installed.
59
59
 
60
- 8. Add a deduplication_key to your default work type's medata:
60
+ 8. Add a deduplication_key to your default work type's metadata:
61
61
 
62
62
  ```
63
- property :deduplication_key, predicate: "http://curationexperts.com/vocab/predicates#deduplicationKey", multiple: false do |index|
63
+ property :deduplication_key, predicate: ::RDF::Vocab::BF2::identifiedBy, multiple: false do |index|
64
64
  index.as :stored_searchable
65
65
  end
66
66
  ```
67
67
 
68
- 9. If you are using the default [Hyrax metadata profile](https://samvera.github.io/metadata_application_profile.html) aka `Hyrax::BasicMetadata`, you are ready to download a sample CSV and start importing.
68
+ 9. If you are using the default [Hyrax metadata profile](https://samvera.github.io/metadata_application_profile.html) aka `Hyrax::BasicMetadata`, you are ready to download a sample CSV and start importing.
69
69
 
70
70
 
71
- If you aren't using `Hyrax::BasicMedata` you'll need to create a custom `importer` and `mapper` class. First ensure that a [work type is registered](http://www.rubydoc.info/github/samvera/hyrax/Hyrax/Configuration#register_curation_concern-instance_method)
71
+ If you aren't using `Hyrax::BasicMetadata` you'll need to create a custom `importer` and `mapper` class. First ensure that a [work type is registered](http://www.rubydoc.info/github/samvera/hyrax/Hyrax/Configuration#register_curation_concern-instance_method)
72
72
  with your `Hyrax` application. Then write a class like this:
73
73
 
74
74
  ```ruby
@@ -100,15 +100,31 @@ You can find [an example csv file for import to Hyrax](https://github.com/curati
100
100
  with a heading of `files`, and the location of the files should be specified via an
101
101
  environment variables called `IMPORT_PATH`. If `IMPORT_PATH` is not set, `HyraxRecordImporter` will look in `/opt/data` by default.
102
102
 
103
- ## Testing
103
+ ## Local Development
104
104
 
105
- To run Solr and Fedora for testing purposes, open a new terminal session for each and run the following commads:
105
+ ```sh
106
+ git clone https://github.com/curationexperts/zizia
107
+ cd zizia
108
+
109
+ bundle install
110
+ ```
111
+
112
+ To run Solr and Fedora for testing purposes, open a new terminal session for each of the following commands and run each in it's own terminal session:
106
113
 
107
114
  `solr_wrapper --config spec/dummy/config/solr_wrapper_test.yml`
108
115
  `fcrepo_wrapper --config spec/dummy/config/fcrepo_wrapper_test.yml`
109
116
 
110
- After this you can run the whole suite, or individual specs. System specs are located
111
- in the `spec/dummy/spec/system` folder:
117
+ Please also ensure you have an appropriate version of [ChromeDriver](https://chromedriver.chromium.org/home) installed and are running Redis in order to run the test suite:
118
+ `redis-cli ping` should return "PONG"
119
+ `chromedriver -v` should return a version matching your installed version of Chrome
120
+
121
+
122
+ After this you can run the whole suite:
123
+ ```bash
124
+ bundle exec rspec spec
125
+ ```
126
+
127
+ System specs are located in the `spec/dummy/spec/system` folder:
112
128
 
113
129
  `bundle exec rspec spec/dummy/spec/system/csv_import_details_page_spec.rb`
114
130
 
@@ -117,12 +133,14 @@ in the `spec/dummy/spec/system` folder:
117
133
  To input any kind of file other than CSV, you need to provide a `Parser` (out of the box, we support simple CSV import with `CsvParser`). We will be writing guides about
118
134
  how to support custom mappers (for metadata outside of Hyrax's core and basic metadata fields).
119
135
 
120
- ## Development
121
-
122
- ```sh
123
- git clone https://github.com/curationexperts/zizia
124
- cd zizia
125
-
126
- bundle install
127
- bundle exec rake ci
128
- ```
136
+ ## Releasing
137
+
138
+ To make a new release:
139
+ 1. Increase the version number in `lib/zizia/version.rb`
140
+ 1. Increase the same version number in `.github_changelog_generator`
141
+ 1. Update CHANGELOG.md by running this command:
142
+ ```ruby
143
+ github_changelog_generator --user curationexperts --project zizia --token YOUR_GITHUB_TOKEN_HERE
144
+ ```
145
+ 1. Commit these changes to the master branch
146
+ 1. Run `rake release`
@@ -0,0 +1,10 @@
1
+ /* In general we want buttons to use word wrap in the UI */
2
+ .btn {
3
+ white-space: normal !important;
4
+ word-wrap: break-word;
5
+ }
6
+
7
+ /* This is for the Go button */
8
+ #search-submit-header {
9
+ white-space: unset !important;
10
+ }
@@ -2,8 +2,4 @@
2
2
  @import 'field_guide';
3
3
  @import 'new';
4
4
  @import 'import_table';
5
-
6
- .btn {
7
- white-space:normal !important;
8
- word-wrap: break-word;
9
- }
5
+ @import 'button';