zizia 3.1.0.alpha.01 → 4.0.0.alpha.01

Sign up to get free protection for your applications and to get access to all the features.
Files changed (199) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -3
  3. data/lib/zizia/engine.rb +8 -0
  4. data/lib/zizia/{hyrax_basic_metadata_mapper.rb → hyrax/hyrax_basic_metadata_mapper.rb} +0 -0
  5. data/lib/zizia/hyrax/hyrax_default_updater.rb +11 -0
  6. data/lib/zizia/hyrax/hyrax_delete_files_updater.rb +16 -0
  7. data/lib/zizia/hyrax/hyrax_metadata_only_updater.rb +58 -0
  8. data/lib/zizia/{hyrax_record_importer.rb → hyrax/hyrax_record_importer.rb} +45 -56
  9. data/lib/zizia/{metadata_only_stack.rb → hyrax/metadata_only_stack.rb} +0 -0
  10. data/lib/zizia/version.rb +1 -1
  11. data/lib/zizia.rb +6 -3
  12. metadata +371 -213
  13. data/.circleci/config.yml +0 -44
  14. data/.gitignore +0 -16
  15. data/.rubocop.yml +0 -81
  16. data/.rubocop_todo.yml +0 -21
  17. data/.solr_wrapper +0 -8
  18. data/.travis.yml +0 -12
  19. data/Gemfile +0 -14
  20. data/Rakefile +0 -38
  21. data/app/assets/config/zizia_manifest.js +0 -2
  22. data/app/assets/images/zizia/.keep +0 -0
  23. data/app/assets/javascripts/zizia/DisplayUploadedFile.es6 +0 -43
  24. data/app/assets/javascripts/zizia/application.js +0 -13
  25. data/app/assets/javascripts/zizia/zizia.js +0 -6
  26. data/app/assets/stylesheets/zizia/_file_upload.scss +0 -17
  27. data/app/assets/stylesheets/zizia/application.css +0 -15
  28. data/app/assets/stylesheets/zizia/zizia.scss +0 -1
  29. data/app/controllers/zizia/application_controller.rb +0 -6
  30. data/app/controllers/zizia/csv_imports_controller.rb +0 -53
  31. data/app/controllers/zizia/importer_documentation_controller.rb +0 -11
  32. data/app/helpers/importer_documentation_helper.rb +0 -13
  33. data/app/helpers/zizia/application_helper.rb +0 -14
  34. data/app/importers/modular_importer.rb +0 -31
  35. data/app/jobs/zizia/application_job.rb +0 -5
  36. data/app/jobs/zizia/start_csv_import_job.rb +0 -14
  37. data/app/models/zizia/application_record.rb +0 -6
  38. data/app/models/zizia/csv_import.rb +0 -21
  39. data/app/models/zizia/csv_import_detail.rb +0 -13
  40. data/app/models/zizia/pre_ingest_file.rb +0 -6
  41. data/app/models/zizia/pre_ingest_work.rb +0 -6
  42. data/app/uploaders/zizia/csv_manifest_uploader.rb +0 -62
  43. data/app/uploaders/zizia/csv_manifest_validator.rb +0 -163
  44. data/app/views/layouts/zizia/application.html.erb +0 -14
  45. data/app/views/zizia/csv_imports/_actions.html.erb +0 -3
  46. data/app/views/zizia/csv_imports/_collection_selection.html.erb +0 -3
  47. data/app/views/zizia/csv_imports/_error.html.erb +0 -10
  48. data/app/views/zizia/csv_imports/_file_upload.html.erb +0 -3
  49. data/app/views/zizia/csv_imports/_form.html.erb +0 -75
  50. data/app/views/zizia/csv_imports/_no_collection.html.erb +0 -7
  51. data/app/views/zizia/csv_imports/_record_count.html.erb +0 -7
  52. data/app/views/zizia/csv_imports/_start_import_form.html.erb +0 -9
  53. data/app/views/zizia/csv_imports/index.html.erb +0 -21
  54. data/app/views/zizia/csv_imports/new.html.erb +0 -2
  55. data/app/views/zizia/csv_imports/preview.html.erb +0 -76
  56. data/app/views/zizia/csv_imports/show.html.erb +0 -31
  57. data/app/views/zizia/importer_documentation/guide.html.erb +0 -1
  58. data/bin/rails +0 -15
  59. data/config/routes.rb +0 -9
  60. data/db/migrate/201901162141281_create_zizia_csv_imports.rb +0 -10
  61. data/db/migrate/201901162203121_add_manifest_to_zizia_csv_imports.rb +0 -6
  62. data/db/migrate/201901241536541_add_fedora_collection_id_to_zizia_csv_imports.rb +0 -5
  63. data/db/migrate/20190911133657_create_zizia_pre_ingest_files.rb +0 -12
  64. data/db/migrate/20190911134002_create_zizia_pre_ingest_works.rb +0 -9
  65. data/db/migrate/20190911142616_create_zizia_csv_import_details.rb +0 -8
  66. data/docs/_config.yml +0 -1
  67. data/docs/customizing_metadata.md +0 -41
  68. data/docs/index.md +0 -113
  69. data/log/.keep +0 -0
  70. data/solr/config/_rest_managed.json +0 -3
  71. data/solr/config/admin-extra.html +0 -31
  72. data/solr/config/elevate.xml +0 -36
  73. data/solr/config/mapping-ISOLatin1Accent.txt +0 -246
  74. data/solr/config/protwords.txt +0 -21
  75. data/solr/config/routes.rb +0 -9
  76. data/solr/config/schema.xml +0 -366
  77. data/solr/config/scripts.conf +0 -24
  78. data/solr/config/solrconfig.xml +0 -322
  79. data/solr/config/spellings.txt +0 -2
  80. data/solr/config/stopwords.txt +0 -58
  81. data/solr/config/stopwords_en.txt +0 -58
  82. data/solr/config/synonyms.txt +0 -31
  83. data/solr/config/xslt/example.xsl +0 -132
  84. data/solr/config/xslt/example_atom.xsl +0 -67
  85. data/solr/config/xslt/example_rss.xsl +0 -66
  86. data/solr/config/xslt/luke.xsl +0 -337
  87. data/spec/controllers/importer_documentation_controller_spec.rb +0 -14
  88. data/spec/dummy/.gitignore +0 -23
  89. data/spec/dummy/Gemfile +0 -57
  90. data/spec/dummy/README.md +0 -24
  91. data/spec/dummy/Rakefile +0 -6
  92. data/spec/dummy/app/assets/config/manifest.js +0 -3
  93. data/spec/dummy/app/assets/csv/import_manifest.csv +0 -1
  94. data/spec/dummy/app/assets/images/.keep +0 -0
  95. data/spec/dummy/app/assets/javascripts/application.js +0 -15
  96. data/spec/dummy/app/assets/javascripts/cable.js +0 -13
  97. data/spec/dummy/app/assets/javascripts/channels/.keep +0 -0
  98. data/spec/dummy/app/assets/markdown/importer_guide.md +0 -256
  99. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  100. data/spec/dummy/app/channels/application_cable/channel.rb +0 -4
  101. data/spec/dummy/app/channels/application_cable/connection.rb +0 -4
  102. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  103. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  104. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  105. data/spec/dummy/app/jobs/application_job.rb +0 -2
  106. data/spec/dummy/app/mailers/application_mailer.rb +0 -4
  107. data/spec/dummy/app/models/application_record.rb +0 -3
  108. data/spec/dummy/app/models/concerns/.keep +0 -0
  109. data/spec/dummy/app/models/user.rb +0 -2
  110. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  111. data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
  112. data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
  113. data/spec/dummy/bin/bundle +0 -3
  114. data/spec/dummy/bin/rails +0 -9
  115. data/spec/dummy/bin/rake +0 -9
  116. data/spec/dummy/bin/setup +0 -38
  117. data/spec/dummy/bin/spring +0 -17
  118. data/spec/dummy/bin/update +0 -29
  119. data/spec/dummy/bin/yarn +0 -11
  120. data/spec/dummy/config/application.rb +0 -18
  121. data/spec/dummy/config/boot.rb +0 -3
  122. data/spec/dummy/config/cable.yml +0 -10
  123. data/spec/dummy/config/database.yml +0 -25
  124. data/spec/dummy/config/environment.rb +0 -5
  125. data/spec/dummy/config/environments/development.rb +0 -54
  126. data/spec/dummy/config/environments/production.rb +0 -91
  127. data/spec/dummy/config/environments/test.rb +0 -42
  128. data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -8
  129. data/spec/dummy/config/initializers/assets.rb +0 -14
  130. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  131. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -5
  132. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  133. data/spec/dummy/config/initializers/inflections.rb +0 -16
  134. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  135. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  136. data/spec/dummy/config/locales/en.yml +0 -33
  137. data/spec/dummy/config/puma.rb +0 -56
  138. data/spec/dummy/config/routes.rb +0 -4
  139. data/spec/dummy/config/secrets.yml +0 -32
  140. data/spec/dummy/config/spring.rb +0 -6
  141. data/spec/dummy/config.ru +0 -5
  142. data/spec/dummy/db/migrate/20190911165049_create_users.rb +0 -8
  143. data/spec/dummy/db/schema.rb +0 -55
  144. data/spec/dummy/db/seeds.rb +0 -7
  145. data/spec/dummy/lib/assets/.keep +0 -0
  146. data/spec/dummy/lib/tasks/.keep +0 -0
  147. data/spec/dummy/log/.keep +0 -0
  148. data/spec/dummy/package.json +0 -5
  149. data/spec/dummy/public/404.html +0 -67
  150. data/spec/dummy/public/422.html +0 -67
  151. data/spec/dummy/public/500.html +0 -66
  152. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  153. data/spec/dummy/public/apple-touch-icon.png +0 -0
  154. data/spec/dummy/public/favicon.ico +0 -0
  155. data/spec/dummy/public/robots.txt +0 -1
  156. data/spec/dummy/test/application_system_test_case.rb +0 -5
  157. data/spec/dummy/test/controllers/.keep +0 -0
  158. data/spec/dummy/test/fixtures/.keep +0 -0
  159. data/spec/dummy/test/fixtures/files/.keep +0 -0
  160. data/spec/dummy/test/fixtures/users.yml +0 -11
  161. data/spec/dummy/test/helpers/.keep +0 -0
  162. data/spec/dummy/test/integration/.keep +0 -0
  163. data/spec/dummy/test/mailers/.keep +0 -0
  164. data/spec/dummy/test/models/.keep +0 -0
  165. data/spec/dummy/test/models/user_test.rb +0 -7
  166. data/spec/dummy/test/system/.keep +0 -0
  167. data/spec/dummy/test/test_helper.rb +0 -10
  168. data/spec/dummy/vendor/.keep +0 -0
  169. data/spec/fixtures/bad_example.csv +0 -2
  170. data/spec/fixtures/dog.jpg +0 -0
  171. data/spec/fixtures/example.csv +0 -4
  172. data/spec/fixtures/hyrax/example.csv +0 -3
  173. data/spec/fixtures/images/animals/cat.png +0 -0
  174. data/spec/fixtures/images/zizia.png +0 -0
  175. data/spec/fixtures/zizia.png +0 -0
  176. data/spec/integration/csv_import_detail_spec.rb +0 -48
  177. data/spec/integration/import_csv_spec.rb +0 -27
  178. data/spec/integration/import_hyrax_csv.rb +0 -71
  179. data/spec/models/csv_import_spec.rb +0 -18
  180. data/spec/spec_helper.rb +0 -31
  181. data/spec/support/hyrax/basic_metadata.rb +0 -30
  182. data/spec/support/hyrax/core_metadata.rb +0 -15
  183. data/spec/support/shared_contexts/with_work_type.rb +0 -101
  184. data/spec/uploaders/csv_manifest_uploader_spec.rb +0 -30
  185. data/spec/views/zizia/importer_documentation/guide.html.erb_spec.rb +0 -13
  186. data/spec/zizia/csv_format_validator_spec.rb +0 -38
  187. data/spec/zizia/csv_parser_spec.rb +0 -73
  188. data/spec/zizia/csv_template_spec.rb +0 -15
  189. data/spec/zizia/hash_mapper_spec.rb +0 -8
  190. data/spec/zizia/hyrax_basic_metadata_mapper_spec.rb +0 -190
  191. data/spec/zizia/hyrax_record_importer_spec.rb +0 -176
  192. data/spec/zizia/importer_spec.rb +0 -46
  193. data/spec/zizia/input_record_spec.rb +0 -71
  194. data/spec/zizia/record_importer_spec.rb +0 -53
  195. data/spec/zizia/title_validator_spec.rb +0 -23
  196. data/spec/zizia/validator_spec.rb +0 -9
  197. data/spec/zizia/version_spec.rb +0 -7
  198. data/spec/zizia_spec.rb +0 -20
  199. data/zizia.gemspec +0 -42
@@ -1,66 +0,0 @@
1
- <?xml version='1.0' encoding='UTF-8'?>
2
-
3
- <!--
4
- * Licensed to the Apache Software Foundation (ASF) under one or more
5
- * contributor license agreements. See the NOTICE file distributed with
6
- * this work for additional information regarding copyright ownership.
7
- * The ASF licenses this file to You under the Apache License, Version 2.0
8
- * (the "License"); you may not use this file except in compliance with
9
- * the License. You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- -->
19
-
20
- <!--
21
- Simple transform of Solr query results to RSS
22
- -->
23
-
24
- <xsl:stylesheet version='1.0'
25
- xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
26
-
27
- <xsl:output
28
- method="xml"
29
- encoding="utf-8"
30
- media-type="text/xml; charset=UTF-8"
31
- />
32
- <xsl:template match='/'>
33
- <rss version="2.0">
34
- <channel>
35
- <title>Example Solr RSS 2.0 Feed</title>
36
- <link>http://localhost:8983/solr</link>
37
- <description>
38
- This has been formatted by the sample "example_rss.xsl" transform -
39
- use your own XSLT to get a nicer RSS feed.
40
- </description>
41
- <language>en-us</language>
42
- <docs>http://localhost:8983/solr</docs>
43
- <xsl:apply-templates select="response/result/doc"/>
44
- </channel>
45
- </rss>
46
- </xsl:template>
47
-
48
- <!-- search results xslt -->
49
- <xsl:template match="doc">
50
- <xsl:variable name="id" select="str[@name='id']"/>
51
- <xsl:variable name="timestamp" select="date[@name='timestamp']"/>
52
- <item>
53
- <title><xsl:value-of select="str[@name='name']"/></title>
54
- <link>
55
- http://localhost:8983/solr/select?q=id:<xsl:value-of select="$id"/>
56
- </link>
57
- <description>
58
- <xsl:value-of select="arr[@name='features']"/>
59
- </description>
60
- <pubDate><xsl:value-of select="$timestamp"/></pubDate>
61
- <guid>
62
- http://localhost:8983/solr/select?q=id:<xsl:value-of select="$id"/>
63
- </guid>
64
- </item>
65
- </xsl:template>
66
- </xsl:stylesheet>
@@ -1,337 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!--
3
- Licensed to the Apache Software Foundation (ASF) under one or more
4
- contributor license agreements. See the NOTICE file distributed with
5
- this work for additional information regarding copyright ownership.
6
- The ASF licenses this file to You under the Apache License, Version 2.0
7
- (the "License"); you may not use this file except in compliance with
8
- the License. You may obtain a copy of the License at
9
-
10
- http://www.apache.org/licenses/LICENSE-2.0
11
-
12
- Unless required by applicable law or agreed to in writing, software
13
- distributed under the License is distributed on an "AS IS" BASIS,
14
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- See the License for the specific language governing permissions and
16
- limitations under the License.
17
- -->
18
-
19
-
20
- <!--
21
- Display the luke request handler with graphs
22
- -->
23
- <xsl:stylesheet
24
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
25
- xmlns="http://www.w3.org/1999/xhtml"
26
- version="1.0"
27
- >
28
- <xsl:output
29
- method="html"
30
- encoding="UTF-8"
31
- media-type="text/html; charset=UTF-8"
32
- doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
33
- doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
34
- />
35
-
36
- <xsl:variable name="title">Solr Luke Request Handler Response</xsl:variable>
37
-
38
- <xsl:template match="/">
39
- <html xmlns="http://www.w3.org/1999/xhtml">
40
- <head>
41
- <link rel="stylesheet" type="text/css" href="solr-admin.css"/>
42
- <link rel="icon" href="favicon.ico" type="image/ico"/>
43
- <link rel="shortcut icon" href="favicon.ico" type="image/ico"/>
44
- <title>
45
- <xsl:value-of select="$title"/>
46
- </title>
47
- <xsl:call-template name="css"/>
48
-
49
- </head>
50
- <body>
51
- <h1>
52
- <xsl:value-of select="$title"/>
53
- </h1>
54
- <div class="doc">
55
- <ul>
56
- <xsl:if test="response/lst[@name='index']">
57
- <li>
58
- <a href="#index">Index Statistics</a>
59
- </li>
60
- </xsl:if>
61
- <xsl:if test="response/lst[@name='fields']">
62
- <li>
63
- <a href="#fields">Field Statistics</a>
64
- <ul>
65
- <xsl:for-each select="response/lst[@name='fields']/lst">
66
- <li>
67
- <a href="#{@name}">
68
- <xsl:value-of select="@name"/>
69
- </a>
70
- </li>
71
- </xsl:for-each>
72
- </ul>
73
- </li>
74
- </xsl:if>
75
- <xsl:if test="response/lst[@name='doc']">
76
- <li>
77
- <a href="#doc">Document statistics</a>
78
- </li>
79
- </xsl:if>
80
- </ul>
81
- </div>
82
- <xsl:if test="response/lst[@name='index']">
83
- <h2><a name="index"/>Index Statistics</h2>
84
- <xsl:apply-templates select="response/lst[@name='index']"/>
85
- </xsl:if>
86
- <xsl:if test="response/lst[@name='fields']">
87
- <h2><a name="fields"/>Field Statistics</h2>
88
- <xsl:apply-templates select="response/lst[@name='fields']"/>
89
- </xsl:if>
90
- <xsl:if test="response/lst[@name='doc']">
91
- <h2><a name="doc"/>Document statistics</h2>
92
- <xsl:apply-templates select="response/lst[@name='doc']"/>
93
- </xsl:if>
94
- </body>
95
- </html>
96
- </xsl:template>
97
-
98
- <xsl:template match="lst">
99
- <xsl:if test="parent::lst">
100
- <tr>
101
- <td colspan="2">
102
- <div class="doc">
103
- <xsl:call-template name="list"/>
104
- </div>
105
- </td>
106
- </tr>
107
- </xsl:if>
108
- <xsl:if test="not(parent::lst)">
109
- <div class="doc">
110
- <xsl:call-template name="list"/>
111
- </div>
112
- </xsl:if>
113
- </xsl:template>
114
-
115
- <xsl:template name="list">
116
- <xsl:if test="count(child::*)>0">
117
- <table>
118
- <thead>
119
- <tr>
120
- <th colspan="2">
121
- <p>
122
- <a name="{@name}"/>
123
- </p>
124
- <xsl:value-of select="@name"/>
125
- </th>
126
- </tr>
127
- </thead>
128
- <tbody>
129
- <xsl:choose>
130
- <xsl:when
131
- test="@name='histogram'">
132
- <tr>
133
- <td colspan="2">
134
- <xsl:call-template name="histogram"/>
135
- </td>
136
- </tr>
137
- </xsl:when>
138
- <xsl:otherwise>
139
- <xsl:apply-templates/>
140
- </xsl:otherwise>
141
- </xsl:choose>
142
- </tbody>
143
- </table>
144
- </xsl:if>
145
- </xsl:template>
146
-
147
- <xsl:template name="histogram">
148
- <div class="doc">
149
- <xsl:call-template name="barchart">
150
- <xsl:with-param name="max_bar_width">50</xsl:with-param>
151
- <xsl:with-param name="iwidth">800</xsl:with-param>
152
- <xsl:with-param name="iheight">160</xsl:with-param>
153
- <xsl:with-param name="fill">blue</xsl:with-param>
154
- </xsl:call-template>
155
- </div>
156
- </xsl:template>
157
-
158
- <xsl:template name="barchart">
159
- <xsl:param name="max_bar_width"/>
160
- <xsl:param name="iwidth"/>
161
- <xsl:param name="iheight"/>
162
- <xsl:param name="fill"/>
163
- <xsl:variable name="max">
164
- <xsl:for-each select="int">
165
- <xsl:sort data-type="number" order="descending"/>
166
- <xsl:if test="position()=1">
167
- <xsl:value-of select="."/>
168
- </xsl:if>
169
- </xsl:for-each>
170
- </xsl:variable>
171
- <xsl:variable name="bars">
172
- <xsl:value-of select="count(int)"/>
173
- </xsl:variable>
174
- <xsl:variable name="bar_width">
175
- <xsl:choose>
176
- <xsl:when test="$max_bar_width &lt; ($iwidth div $bars)">
177
- <xsl:value-of select="$max_bar_width"/>
178
- </xsl:when>
179
- <xsl:otherwise>
180
- <xsl:value-of select="$iwidth div $bars"/>
181
- </xsl:otherwise>
182
- </xsl:choose>
183
- </xsl:variable>
184
- <table class="histogram">
185
- <tbody>
186
- <tr>
187
- <xsl:for-each select="int">
188
- <td>
189
- <xsl:value-of select="."/>
190
- <div class="histogram">
191
- <xsl:attribute name="style">background-color: <xsl:value-of select="$fill"/>; width: <xsl:value-of select="$bar_width"/>px; height: <xsl:value-of select="($iheight*number(.)) div $max"/>px;</xsl:attribute>
192
- </div>
193
- </td>
194
- </xsl:for-each>
195
- </tr>
196
- <tr>
197
- <xsl:for-each select="int">
198
- <td>
199
- <xsl:value-of select="@name"/>
200
- </td>
201
- </xsl:for-each>
202
- </tr>
203
- </tbody>
204
- </table>
205
- </xsl:template>
206
-
207
- <xsl:template name="keyvalue">
208
- <xsl:choose>
209
- <xsl:when test="@name">
210
- <tr>
211
- <td class="name">
212
- <xsl:value-of select="@name"/>
213
- </td>
214
- <td class="value">
215
- <xsl:value-of select="."/>
216
- </td>
217
- </tr>
218
- </xsl:when>
219
- <xsl:otherwise>
220
- <xsl:value-of select="."/>
221
- </xsl:otherwise>
222
- </xsl:choose>
223
- </xsl:template>
224
-
225
- <xsl:template match="int|bool|long|float|double|uuid|date">
226
- <xsl:call-template name="keyvalue"/>
227
- </xsl:template>
228
-
229
- <xsl:template match="arr">
230
- <tr>
231
- <td class="name">
232
- <xsl:value-of select="@name"/>
233
- </td>
234
- <td class="value">
235
- <ul>
236
- <xsl:for-each select="child::*">
237
- <li>
238
- <xsl:apply-templates/>
239
- </li>
240
- </xsl:for-each>
241
- </ul>
242
- </td>
243
- </tr>
244
- </xsl:template>
245
-
246
- <xsl:template match="str">
247
- <xsl:choose>
248
- <xsl:when test="@name='schema' or @name='index' or @name='flags'">
249
- <xsl:call-template name="schema"/>
250
- </xsl:when>
251
- <xsl:otherwise>
252
- <xsl:call-template name="keyvalue"/>
253
- </xsl:otherwise>
254
- </xsl:choose>
255
- </xsl:template>
256
-
257
- <xsl:template name="schema">
258
- <tr>
259
- <td class="name">
260
- <xsl:value-of select="@name"/>
261
- </td>
262
- <td class="value">
263
- <xsl:if test="contains(.,'unstored')">
264
- <xsl:value-of select="."/>
265
- </xsl:if>
266
- <xsl:if test="not(contains(.,'unstored'))">
267
- <xsl:call-template name="infochar2string">
268
- <xsl:with-param name="charList">
269
- <xsl:value-of select="."/>
270
- </xsl:with-param>
271
- </xsl:call-template>
272
- </xsl:if>
273
- </td>
274
- </tr>
275
- </xsl:template>
276
-
277
- <xsl:template name="infochar2string">
278
- <xsl:param name="i">1</xsl:param>
279
- <xsl:param name="charList"/>
280
-
281
- <xsl:variable name="char">
282
- <xsl:value-of select="substring($charList,$i,1)"/>
283
- </xsl:variable>
284
- <xsl:choose>
285
- <xsl:when test="$char='I'">
286
- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='I']"/> - </xsl:when>
287
- <xsl:when test="$char='T'">
288
- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='T']"/> - </xsl:when>
289
- <xsl:when test="$char='S'">
290
- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='S']"/> - </xsl:when>
291
- <xsl:when test="$char='M'">
292
- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='M']"/> - </xsl:when>
293
- <xsl:when test="$char='V'">
294
- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='V']"/> - </xsl:when>
295
- <xsl:when test="$char='o'">
296
- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='o']"/> - </xsl:when>
297
- <xsl:when test="$char='p'">
298
- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='p']"/> - </xsl:when>
299
- <xsl:when test="$char='O'">
300
- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='O']"/> - </xsl:when>
301
- <xsl:when test="$char='L'">
302
- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='L']"/> - </xsl:when>
303
- <xsl:when test="$char='B'">
304
- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='B']"/> - </xsl:when>
305
- <xsl:when test="$char='C'">
306
- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='C']"/> - </xsl:when>
307
- <xsl:when test="$char='f'">
308
- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='f']"/> - </xsl:when>
309
- <xsl:when test="$char='l'">
310
- <xsl:value-of select="/response/lst[@name='info']/lst/str[@name='l']"/> -
311
- </xsl:when>
312
- </xsl:choose>
313
-
314
- <xsl:if test="not($i>=string-length($charList))">
315
- <xsl:call-template name="infochar2string">
316
- <xsl:with-param name="i">
317
- <xsl:value-of select="$i+1"/>
318
- </xsl:with-param>
319
- <xsl:with-param name="charList">
320
- <xsl:value-of select="$charList"/>
321
- </xsl:with-param>
322
- </xsl:call-template>
323
- </xsl:if>
324
- </xsl:template>
325
- <xsl:template name="css">
326
- <style type="text/css">
327
- <![CDATA[
328
- td.name {font-style: italic; font-size:80%; }
329
- .doc { margin: 0.5em; border: solid grey 1px; }
330
- .exp { display: none; font-family: monospace; white-space: pre; }
331
- div.histogram { background: none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;}
332
- table.histogram { width: auto; vertical-align: bottom; }
333
- table.histogram td, table.histogram th { text-align: center; vertical-align: bottom; border-bottom: 1px solid #ff9933; width: auto; }
334
- ]]>
335
- </style>
336
- </xsl:template>
337
- </xsl:stylesheet>
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
- require 'spec_helper'
3
-
4
- RSpec.describe Zizia::ImporterDocumentationController, type: :controller do
5
- routes { Zizia::Engine.routes }
6
-
7
- describe "GET csv" do
8
- it "provides a csv download" do
9
- get :csv
10
- expect(response.headers['Content-Type']).to eq('text/csv; charset=utf-8')
11
- expect(response.headers['Content-Disposition']).to eq('attachment; filename="import_manifest.csv"')
12
- end
13
- end
14
- end
@@ -1,23 +0,0 @@
1
- # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
- #
3
- # If you find yourself ignoring temporary files generated by your text editor
4
- # or operating system, you probably want to add a global ignore instead:
5
- # git config --global core.excludesfile '~/.gitignore_global'
6
-
7
- # Ignore bundler config.
8
- /.bundle
9
-
10
- # Ignore the default SQLite database.
11
- /db/*.sqlite3
12
- /db/*.sqlite3-journal
13
-
14
- # Ignore all logfiles and tempfiles.
15
- /log/*
16
- /tmp/*
17
- !/log/.keep
18
- !/tmp/.keep
19
-
20
- /node_modules
21
- /yarn-error.log
22
-
23
- .byebug_history
data/spec/dummy/Gemfile DELETED
@@ -1,57 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- git_source(:github) do |repo_name|
4
- repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
5
- "https://github.com/#{repo_name}.git"
6
- end
7
-
8
-
9
- # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
10
- gem 'rails', '~> 5.1.7'
11
- # Use sqlite3 as the database for Active Record
12
- gem "sqlite3", "~> 1.3.0"
13
- # Use Puma as the app server
14
- gem 'puma', '~> 3.7'
15
- # Use SCSS for stylesheets
16
- gem 'sass-rails', '~> 5.0'
17
- # Use Uglifier as compressor for JavaScript assets
18
- gem 'uglifier', '>= 1.3.0'
19
- # See https://github.com/rails/execjs#readme for more supported runtimes
20
- # gem 'therubyracer', platforms: :ruby
21
-
22
- # Use CoffeeScript for .coffee assets and views
23
- gem 'coffee-rails', '~> 4.2'
24
- # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
25
- gem 'turbolinks', '~> 5'
26
- # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
27
- gem 'jbuilder', '~> 2.5'
28
- # Use Redis adapter to run Action Cable in production
29
- # gem 'redis', '~> 4.0'
30
- # Use ActiveModel has_secure_password
31
- # gem 'bcrypt', '~> 3.1.7'
32
-
33
- # Use Capistrano for deployment
34
- # gem 'capistrano-rails', group: :development
35
-
36
-
37
- group :development, :test do
38
- # Call 'byebug' anywhere in the code to stop execution and get a debugger console
39
- gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
40
- # Adds support for Capybara system testing and selenium driver
41
- gem 'capybara', '>= 2.15'
42
- gem 'selenium-webdriver'
43
- end
44
-
45
- group :development do
46
- # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
47
- gem 'web-console', '>= 3.3.0'
48
- gem 'listen', '>= 3.0.5', '< 3.2'
49
- # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
50
- gem 'spring'
51
- gem 'spring-watcher-listen', '~> 2.0.0'
52
- end
53
-
54
- # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
55
- gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
56
-
57
- gem 'hyrax', '2.5.1'
data/spec/dummy/README.md DELETED
@@ -1,24 +0,0 @@
1
- # README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
data/spec/dummy/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require_relative 'config/application'
5
-
6
- Rails.application.load_tasks
@@ -1,3 +0,0 @@
1
- //= link_tree ../images
2
- //= link_directory ../javascripts .js
3
- //= link_directory ../stylesheets .css
@@ -1 +0,0 @@
1
- Title,Creator,Keyword,Rights Statement,Contributor,Abstract or Summary,License,Publisher,Date Created,Subject,Language,Identifier,Location,Related URL,Source,Resource Type,Visibility,Files
File without changes
@@ -1,15 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
5
- // vendor/assets/javascripts directory can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
- //
10
- // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require rails-ujs
14
- //= require turbolinks
15
- //= require_tree .
@@ -1,13 +0,0 @@
1
- // Action Cable provides the framework to deal with WebSockets in Rails.
2
- // You can generate new channels where WebSocket features live using the `rails generate channel` command.
3
- //
4
- //= require action_cable
5
- //= require_self
6
- //= require_tree ./channels
7
-
8
- (function() {
9
- this.App || (this.App = {});
10
-
11
- App.cable = ActionCable.createConsumer();
12
-
13
- }).call(this);
File without changes