active-fedora 11.0.0.rc1 → 11.0.0

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 (159) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.rubocop.yml +2 -7
  4. data/.rubocop_todo.yml +40 -9
  5. data/.solr_wrapper +6 -0
  6. data/README.md +1 -3
  7. data/active-fedora.gemspec +5 -9
  8. data/lib/active_fedora/associations/collection_association.rb +1 -1
  9. data/lib/active_fedora/associations/contained_finder.rb +2 -2
  10. data/lib/active_fedora/associations/has_many_association.rb +1 -1
  11. data/lib/active_fedora/associations/has_subresource_association.rb +2 -2
  12. data/lib/active_fedora/attribute_assignment.rb +0 -1
  13. data/lib/active_fedora/attributes.rb +1 -1
  14. data/lib/active_fedora/base.rb +3 -7
  15. data/lib/active_fedora/change_set.rb +6 -2
  16. data/lib/active_fedora/containers/container.rb +1 -1
  17. data/lib/active_fedora/core.rb +22 -25
  18. data/lib/active_fedora/fedora_attributes.rb +1 -1
  19. data/lib/active_fedora/file.rb +1 -1
  20. data/lib/active_fedora/indexing_service.rb +0 -4
  21. data/lib/active_fedora/orders/ordered_list.rb +2 -2
  22. data/lib/active_fedora/querying.rb +1 -1
  23. data/lib/active_fedora/railtie.rb +2 -2
  24. data/lib/active_fedora/rake_support.rb +1 -1
  25. data/lib/active_fedora/rdf.rb +0 -1
  26. data/lib/active_fedora/relation/delegation.rb +4 -0
  27. data/lib/active_fedora/solr_hit.rb +0 -4
  28. data/lib/active_fedora/solr_query_builder.rb +16 -12
  29. data/lib/active_fedora/version.rb +1 -1
  30. data/lib/active_fedora.rb +0 -10
  31. data/lib/generators/active_fedora/config/solr/templates/solr/config/solrconfig.xml +11 -0
  32. data/lib/generators/active_fedora/config/solr/templates/solr_wrapper_test.yml +1 -1
  33. data/spec/config_helper.rb +1 -1
  34. data/spec/integration/associations_spec.rb +17 -18
  35. data/spec/integration/attached_files_spec.rb +18 -8
  36. data/spec/integration/attributes_spec.rb +12 -16
  37. data/spec/integration/autosave_association_spec.rb +6 -6
  38. data/spec/integration/base_spec.rb +3 -3
  39. data/spec/integration/collection_association_spec.rb +2 -5
  40. data/spec/integration/date_time_properties_spec.rb +1 -2
  41. data/spec/integration/direct_container_spec.rb +8 -8
  42. data/spec/integration/directly_contains_one_association_spec.rb +11 -13
  43. data/spec/integration/eradicate_spec.rb +1 -1
  44. data/spec/integration/fedora_solr_sync_spec.rb +2 -2
  45. data/spec/integration/file_fixity_spec.rb +6 -8
  46. data/spec/integration/file_spec.rb +32 -34
  47. data/spec/integration/generators/solr_generator_spec.rb +7 -10
  48. data/spec/integration/has_many_associations_spec.rb +6 -8
  49. data/spec/integration/indexing_spec.rb +1 -1
  50. data/spec/integration/indirect_container_spec.rb +8 -9
  51. data/spec/integration/json_serialization_spec.rb +4 -4
  52. data/spec/integration/query_result_builder_spec.rb +9 -21
  53. data/spec/integration/rdf_nested_attributes_spec.rb +6 -6
  54. data/spec/integration/relation_delegation_spec.rb +8 -10
  55. data/spec/integration/relation_spec.rb +13 -16
  56. data/spec/integration/solr_hit_spec.rb +4 -4
  57. data/spec/integration/versionable_spec.rb +73 -327
  58. data/spec/spec_helper.rb +52 -10
  59. data/spec/unit/active_fedora_spec.rb +1 -1
  60. data/spec/unit/aggregation/list_source_spec.rb +37 -37
  61. data/spec/unit/aggregation/ordered_reader_spec.rb +4 -4
  62. data/spec/unit/association_hash_spec.rb +17 -31
  63. data/spec/unit/attached_files_spec.rb +35 -32
  64. data/spec/unit/attributes_spec.rb +25 -25
  65. data/spec/unit/base_active_model_spec.rb +8 -8
  66. data/spec/unit/base_cma_spec.rb +1 -1
  67. data/spec/unit/base_extra_spec.rb +7 -22
  68. data/spec/unit/base_spec.rb +14 -20
  69. data/spec/unit/callback_spec.rb +2 -2
  70. data/spec/unit/change_set_spec.rb +5 -5
  71. data/spec/unit/checksum_spec.rb +2 -2
  72. data/spec/unit/code_configurator_spec.rb +1 -1
  73. data/spec/unit/core_spec.rb +62 -26
  74. data/spec/unit/default_model_mapper_spec.rb +6 -6
  75. data/spec/unit/fedora_spec.rb +2 -2
  76. data/spec/unit/file_configurator_spec.rb +96 -96
  77. data/spec/unit/file_path_builder_spec.rb +1 -1
  78. data/spec/unit/file_spec.rb +61 -61
  79. data/spec/unit/files_hash_spec.rb +9 -9
  80. data/spec/unit/finder_methods_spec.rb +3 -3
  81. data/spec/unit/has_and_belongs_to_many_association_spec.rb +13 -14
  82. data/spec/unit/has_many_association_spec.rb +28 -13
  83. data/spec/unit/indexers/global_indexer_spec.rb +6 -6
  84. data/spec/unit/indexing_service_spec.rb +5 -5
  85. data/spec/unit/indexing_spec.rb +6 -6
  86. data/spec/unit/inheritance_spec.rb +11 -7
  87. data/spec/unit/loadable_from_json_spec.rb +4 -4
  88. data/spec/unit/logger_spec.rb +1 -1
  89. data/spec/unit/model_classifier_spec.rb +5 -5
  90. data/spec/unit/ordered_spec.rb +142 -142
  91. data/spec/unit/orders/list_node_spec.rb +21 -21
  92. data/spec/unit/orders/ordered_list_spec.rb +96 -96
  93. data/spec/unit/orders/reflection_spec.rb +4 -4
  94. data/spec/unit/pathing_spec.rb +4 -4
  95. data/spec/unit/persistence_spec.rb +28 -28
  96. data/spec/unit/property_spec.rb +2 -2
  97. data/spec/unit/query_spec.rb +10 -10
  98. data/spec/unit/rdf/indexing_service_spec.rb +26 -26
  99. data/spec/unit/readonly_spec.rb +5 -4
  100. data/spec/unit/reflection_spec.rb +3 -3
  101. data/spec/unit/rspec_matchers/belong_to_associated_active_fedora_object_matcher_spec.rb +9 -9
  102. data/spec/unit/rspec_matchers/have_many_associated_active_fedora_objects_matcher_spec.rb +9 -9
  103. data/spec/unit/rspec_matchers/have_predicate_matcher_spec.rb +9 -9
  104. data/spec/unit/schema_indexing_strategy_spec.rb +5 -5
  105. data/spec/unit/serializers_spec.rb +3 -4
  106. data/spec/unit/solr_config_options_spec.rb +13 -16
  107. data/spec/unit/solr_hit_spec.rb +9 -9
  108. data/spec/unit/solr_service_spec.rb +4 -10
  109. data/spec/unit/sparql_insert_spec.rb +2 -2
  110. data/spec/unit/validations_spec.rb +9 -9
  111. data/spec/unit/with_metadata/default_metadata_class_factory_spec.rb +3 -2
  112. data/spec/unit/with_metadata/metadata_node_spec.rb +3 -2
  113. metadata +17 -118
  114. data/lib/active_fedora/datastreams/nokogiri_datastreams.rb +0 -119
  115. data/lib/active_fedora/datastreams.rb +0 -6
  116. data/lib/active_fedora/nom_datastream.rb +0 -73
  117. data/lib/active_fedora/om_datastream.rb +0 -118
  118. data/lib/active_fedora/qualified_dublin_core_datastream.rb +0 -158
  119. data/lib/active_fedora/rdf/datastream_indexing.rb +0 -49
  120. data/lib/active_fedora/rdf/ntriples_rdf_datastream.rb +0 -13
  121. data/lib/active_fedora/rdf/rdf_datastream.rb +0 -173
  122. data/lib/active_fedora/rdf/rdfxml_datastream.rb +0 -13
  123. data/solr/config/_rest_managed.json +0 -3
  124. data/solr/config/admin-extra.html +0 -31
  125. data/solr/config/elevate.xml +0 -36
  126. data/solr/config/mapping-ISOLatin1Accent.txt +0 -246
  127. data/solr/config/protwords.txt +0 -21
  128. data/solr/config/schema.xml +0 -372
  129. data/solr/config/scripts.conf +0 -24
  130. data/solr/config/solrconfig.xml +0 -311
  131. data/solr/config/spellings.txt +0 -2
  132. data/solr/config/stopwords.txt +0 -58
  133. data/solr/config/stopwords_en.txt +0 -58
  134. data/solr/config/synonyms.txt +0 -31
  135. data/solr/config/xslt/example.xsl +0 -132
  136. data/solr/config/xslt/example_atom.xsl +0 -67
  137. data/solr/config/xslt/example_rss.xsl +0 -66
  138. data/solr/config/xslt/luke.xsl +0 -337
  139. data/spec/fixtures/damsObjectModel.xml +0 -38
  140. data/spec/fixtures/dublin_core_rdf_descMetadata.nt +0 -13
  141. data/spec/fixtures/mixed_rdf_descMetadata.nt +0 -7
  142. data/spec/fixtures/mods_articles/mods_article1.xml +0 -98
  143. data/spec/fixtures/solr_rdf_descMetadata.nt +0 -7
  144. data/spec/integration/complex_rdf_datastream_spec.rb +0 -227
  145. data/spec/integration/datastream_rdf_nested_attributes_spec.rb +0 -180
  146. data/spec/integration/ntriples_datastream_spec.rb +0 -215
  147. data/spec/integration/om_datastream_spec.rb +0 -78
  148. data/spec/samples/hydra-mods_article_datastream.rb +0 -515
  149. data/spec/samples/models/mods_article.rb +0 -9
  150. data/spec/samples/oral_history_sample.xml +0 -38
  151. data/spec/samples/oral_history_xml.xml +0 -35
  152. data/spec/samples/samples.rb +0 -2
  153. data/spec/unit/nom_datastream_spec.rb +0 -60
  154. data/spec/unit/ntriples_datastream_spec.rb +0 -167
  155. data/spec/unit/om_datastream_spec.rb +0 -294
  156. data/spec/unit/qualified_dublin_core_datastream_spec.rb +0 -119
  157. data/spec/unit/rdf_datastream_spec.rb +0 -84
  158. data/spec/unit/rdf_resource_datastream_spec.rb +0 -208
  159. data/spec/unit/rdfxml_datastream_spec.rb +0 -106
@@ -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,38 +0,0 @@
1
- <rdf:RDF
2
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
3
- xmlns:dams="http://library.ucsd.edu/ontology/dams#"
4
- xmlns:mads="http://www.loc.gov/mads/rdf/v1#"
5
- xmlns:damsid="http://library.ucsd.edu/ark:/20775/">
6
- <dams:Object rdf:about="http://library.ucsd.edu/ark:/20775/">
7
- <dams:title rdf:parseType="Resource">
8
- <rdf:value>example title</rdf:value>
9
- <dams:relatedTitle rdf:parseType="Resource">
10
- <rdf:value xml:lang="fr">example translated relatedTitle</rdf:value>
11
- <dams:type>translated</dams:type>
12
- </dams:relatedTitle>
13
- </dams:title>
14
-
15
- <dams:date rdf:parseType="Resource">
16
- <dams:beginDate>2012-11-27</dams:beginDate>
17
- <dams:endDate>2012-11-30</dams:endDate>
18
- <rdf:value>2012-11-29</rdf:value>
19
- </dams:date>
20
-
21
- <dams:language rdf:resource="http://library.ucsd.edu/ark:/20775/bb12345678"/>
22
- <dams:typeOfResource>image</dams:typeOfResource>
23
- <dams:otherResource>
24
- <dams:RelatedResource>
25
- <dams:type>online exhibit</dams:type>
26
- <dams:description>foo</dams:description>
27
- <dams:uri>http://library.ucsd.edu/test/foo/</dams:uri>
28
- </dams:RelatedResource>
29
- </dams:otherResource>
30
- <dams:relationship>
31
- <dams:Relationship>
32
- <dams:role rdf:resource="http://library.ucsd.edu/ark:/20775/bd55639754"/>
33
- <dams:name rdf:resource="http://library.ucsd.edu/ark:/20775/bb08080808"/>
34
- </dams:Relationship>
35
- </dams:relationship>
36
- <dams:assembledCollection rdf:resource="http://library.ucsd.edu/ark:/20775/bb03030303"/>
37
- </dams:Object>
38
- </rdf:RDF>
@@ -1,13 +0,0 @@
1
- <http://id.psu.edu/object42> <http://purl.org/dc/terms/description> "This is a work by JD in the field of biology." .
2
- <http://id.psu.edu/object42> <http://purl.org/dc/terms/publisher> "Penn State" .
3
- <http://id.psu.edu/object42> <http://purl.org/dc/terms/contributor> "Department of Bioinformatics" .
4
- <http://id.psu.edu/object42> <http://purl.org/dc/terms/created> "2010-12-31"^^<http://www.w3.org/2001/XMLSchema#date> .
5
- <http://id.psu.edu/object42> <http://purl.org/dc/terms/title> "Title of work" .
6
- <http://id.psu.edu/object42> <http://purl.org/dc/terms/subject> "Biology" .
7
- <http://id.psu.edu/object42> <http://purl.org/dc/terms/language> "en" .
8
- <http://id.psu.edu/object42> <http://purl.org/dc/terms/date> "2009-12-31"^^<http://www.w3.org/2001/XMLSchema#date> .
9
- <http://id.psu.edu/object42> <http://purl.org/dc/terms/rights> "insert rights statement here" .
10
- <http://id.psu.edu/object42> <http://purl.org/dc/terms/type> <http://purl.org/dc/dcmitype/Image> .
11
- <http://id.psu.edu/object42> <http://purl.org/dc/terms/format> "image/jpeg" .
12
- <http://id.psu.edu/object42> <http://purl.org/dc/terms/creator> "John Doe" .
13
- <http://id.psu.edu/object42> <http://purl.org/dc/terms/identifier> "old:identifier:7779" .
@@ -1,7 +0,0 @@
1
- <http://localhost:8983/fedora/rest/test/test:1> <http://purl.org/dc/terms/created> "2010-12-31"^^<http://www.w3.org/2001/XMLSchema#date> .
2
- <http://localhost:8983/fedora/rest/test/test:1> <http://purl.org/dc/terms/title> "Title of work" .
3
- <http://localhost:8983/fedora/rest/test/test:1> <http://purl.org/dc/terms/publisher> "Penn State" .
4
- <http://localhost:8983/fedora/rest/test/test:1> <http://xmlns.com/foaf/0.1/based_near> "New York, NY, US" .
5
- <http://localhost:8983/fedora/rest/test/test:1> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://google.com/> .
6
- <http://localhost:8983/fedora/rest/test/test:1/content> <http://purl.org/dc/terms/title> "Title of datastream" .
7
-
@@ -1,98 +0,0 @@
1
- <mods version="3.0" xsi:schemaLocation="http://www.loc.gov/mods/v3
2
- http://www.loc.gov/standards/mods/v3/mods-3-0.xsd" xmlns="http://www.loc.gov/mods/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3
-
4
- <titleInfo>
5
- <nonSort>THE</nonSort>
6
- <title>ARTICLE TITLE</title>
7
- <subTitle>SUBTITLE</subTitle>
8
- </titleInfo>
9
- <titleInfo type="alternative">
10
- <title>VARYING FORM OF TITLE</title>
11
- </titleInfo>
12
-
13
- <name type="personal">
14
- <namePart type="family">FAMILY NAME</namePart>
15
- <namePart type="given">GIVEN NAMES</namePart>
16
- <namePart type="termsOfAddress">DR.</namePart>
17
- <displayForm>NAME AS IT APPEARS</displayForm>
18
- <affiliation>FACULTY, UNIVERSITY</affiliation>
19
- <role>
20
- <roleTerm authority="marcrelator" type="text">Creator</roleTerm>
21
- </role>
22
- </name>
23
- <name type="personal">
24
- <namePart type="family">Lacks</namePart>
25
- <namePart type="given">Henrietta</namePart>
26
- <displayForm>HeLa</displayForm>
27
- <affiliation>Baltimore</affiliation>
28
- <role>
29
- <roleTerm authority="marcrelator" type="text">Contributor</roleTerm>
30
- </role>
31
- </name>
32
- <name type="corporate">
33
- <namePart>NSF</namePart>
34
- <role>
35
- <roleTerm authority="marcrelator" type="text">Funder</roleTerm>
36
- </role>
37
- </name>
38
- <name type="conference">
39
- <namePart>some conference</namePart>
40
- <role>
41
- <roleTerm authority="marcrelator" type="text">Host</roleTerm>
42
- </role>
43
- </name>
44
-
45
- <typeOfResource>text</typeOfResource>
46
- <genre authority="local">journal article</genre>
47
-
48
- <abstract>ABSTRACT</abstract>
49
- <subject>
50
- <topic>TOPIC 1</topic>
51
- <topic>TOPIC 2</topic>
52
- </subject>
53
- <subject authority="AUTHORITY SOURCE (RFCD, LCSH)">
54
- <topic>CONTROLLED TERM</topic>
55
- </subject>
56
-
57
- <language>
58
- <languageTerm authority="iso639-2b" type="code">en-aus </languageTerm>
59
- </language>
60
-
61
- <physicalDescription>
62
- <internetMediaType>application/pdf</internetMediaType>
63
- <extent>36 p.</extent>
64
- </physicalDescription>
65
-
66
- <relatedItem type="host">
67
- <titleInfo>
68
- <title>TITLE OF HOST JOURNAL</title>
69
- </titleInfo>
70
- <originInfo>
71
- <publisher>PUBLISHER</publisher>
72
- <dateIssued>DATE</dateIssued>
73
- </originInfo>
74
- <identifier type="issn">0013-8908</identifier>
75
- <part>
76
- <detail type="volume">
77
- <number>2</number>
78
- </detail>
79
- <detail type="level">
80
- <number>2</number>
81
- </detail>
82
- <extent unit="pages">
83
- <start>195</start>
84
- <end>230</end>
85
- </extent>
86
- <date>FEB. 2007</date>
87
- </part>
88
- </relatedItem>
89
-
90
- <identifier type="uri">http://URL.edu.au/</identifier>
91
- <identifier type="doi">doi:10.1006/jmbi.1995.0238</identifier>
92
- <location>
93
- <url>http://URL.edu.au/</url>
94
- </location>
95
- <accessCondition type="restrictionOnAccess">EMBARGO NOTE</accessCondition>
96
- <accessCondition type="use and reproduction">OPEN ACCESS</accessCondition>
97
-
98
- </mods>
@@ -1,7 +0,0 @@
1
- <http://localhost:8983/fedora/rest/test/test:1> <http://purl.org/dc/terms/created> "2009-10-10"^^<http://www.w3.org/2001/XMLSchema#date> .
2
- <http://localhost:8983/fedora/rest/test/test:1> <http://purl.org/dc/terms/title> "fake-title" .
3
- <http://localhost:8983/fedora/rest/test/test:1> <http://purl.org/dc/terms/publisher> "publisher1" .
4
- <http://localhost:8983/fedora/rest/test/test:1> <http://xmlns.com/foaf/0.1/based_near> "coverage1" .
5
- <http://localhost:8983/fedora/rest/test/test:1> <http://xmlns.com/foaf/0.1/based_near> "coverage2" .
6
- <http://localhost:8983/fedora/rest/test/test:1> <http://www.w3.org/2000/01/rdf-schema#seeAlso> <http://example.org/> .
7
-