Skip to content

Commit

Permalink
Merge pull request #1466 from projectblacklight/missing-elements
Browse files Browse the repository at this point in the history
Adds missing elements
  • Loading branch information
lfarrell authored Dec 11, 2023
2 parents 88e596a + 86675bb commit 91b5efd
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/generators/arclight/templates/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ class CatalogController < ApplicationController
config.add_background_field 'accruals', field: 'accruals_html_tesm', helper_method: :render_html_tags
config.add_background_field 'phystech', field: 'phystech_html_tesm', helper_method: :render_html_tags
config.add_background_field 'physloc', field: 'physloc_html_tesm', helper_method: :render_html_tags
config.add_background_field 'materialspec', field: 'materialspec_tesim', helper_method: :render_html_tags
config.add_background_field 'fileplan', field: 'fileplan_html_tesim', helper_method: :render_html_tags
config.add_background_field 'descrules', field: 'descrules_ssm', helper_method: :render_html_tags

# Collection Show Page - Related Section
Expand All @@ -287,6 +289,7 @@ class CatalogController < ApplicationController
config.add_related_field 'otherfindaid', field: 'otherfindaid_html_tesm', helper_method: :render_html_tags
config.add_related_field 'altformavail', field: 'altformavail_html_tesm', helper_method: :render_html_tags
config.add_related_field 'originalsloc', field: 'originalsloc_html_tesm', helper_method: :render_html_tags
config.add_related_field 'odd', field: 'odd_html_tesim', helper_method: :render_html_tags

# Collection Show Page - Indexed Terms Section
config.add_indexed_terms_field 'access_subjects', field: 'access_subjects_ssim', link_to_facet: true, separator_options: {
Expand Down Expand Up @@ -323,13 +326,19 @@ class CatalogController < ApplicationController
config.add_component_field 'extent', field: 'extent_ssm'
config.add_component_field 'scopecontent', field: 'scopecontent_html_tesm', helper_method: :render_html_tags
config.add_component_field 'acqinfo', field: 'acqinfo_ssim', helper_method: :render_html_tags
config.add_component_field 'bioghist', field: 'bioghist_html_tesm', helper_method: :render_html_tags
config.add_component_field 'appraisal', field: 'appraisal_html_tesm', helper_method: :render_html_tags
config.add_component_field 'custodhist', field: 'custodhist_html_tesm', helper_method: :render_html_tags
config.add_component_field 'processinfo', field: 'processinfo_html_tesm', helper_method: :render_html_tags
config.add_component_field 'arrangement', field: 'arrangement_html_tesm', helper_method: :render_html_tags
config.add_component_field 'accruals', field: 'accruals_html_tesm', helper_method: :render_html_tags
config.add_component_field 'phystech', field: 'phystech_html_tesm', helper_method: :render_html_tags
config.add_component_field 'materialspec', field: 'materialspec_tesim', helper_method: :render_html_tags
config.add_component_field 'physloc', field: 'physloc_html_tesm', helper_method: :render_html_tags
config.add_component_field 'fileplan', field: 'fileplan_html_tesim', helper_method: :render_html_tags
config.add_component_field 'altformavail', field: 'altformavail_html_tesim', helper_method: :render_html_tags
config.add_component_field 'otherfindaid', field: 'otherfindaid_html_tesm', helper_method: :render_html_tags
config.add_component_field 'odd', field: 'odd_html_tesim', helper_method: :render_html_tags

# Component Show Page - Indexed Terms Section
config.add_component_indexed_terms_field 'access_subjects', field: 'access_subjects_ssim', link_to_facet: true, separator_options: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ en:
otherfindaid: Other finding aids
altformavail: Alternative form available
originalsloc: Location of originals
materialspec: Material specific details
fileplan: File plan
odd: Other descriptive data

access_subjects: Subjects
names_coll: Names
Expand Down
6 changes: 6 additions & 0 deletions spec/fixtures/ead/nlm/alphaomegaalpha.xml
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,12 @@
operation of Alpha Omega Alpha. Not all records are necessarily official documents
but provide important background context.</p>
</scopecontent>
<bioghist id="aspace_ff0f536406ce214f5u38e1f7c798d76e">
<head>Historical Note</head>
<p>
The Society started keeping consistent adminstrative records in 1975, the same year that E. L. Doctorow published <emph render="italic">Ragtime</emph>.
</p>
</bioghist>
<accessrestrict id="aspace_7bbec2cdc1e6e0cb7b2ff1acb7c9e364">
<head>Conditions Governing Access</head>
<p>RESTRICTED: Access to these folders requires prior written approval. To request access,
Expand Down
8 changes: 8 additions & 0 deletions spec/fixtures/ead/sample/deeply-nested-components.xml
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,14 @@
<unittitle>History</unittitle>
<container id="aspace_3041649c800dc2e4f9be4811394656c5" label="Box" type="box">16</container>
</did>
<altformavail id="aspace_9afbfea15746adffb0da0f4f61c1e1be">
<head>Online Streaming in Media Collections Online</head>
<p>
<extref xlink:href="https://media.dlib.indiana.edu/media_objects/pv63gh62z">
https://media.dlib.indiana.edu/media_objects/pv63gh62z
</extref>
</p>
</altformavail>
</c06>
<c06 id="aspace_d1c270314f9ca687b5fd961f6c36c4fa" level="file">
<did>
Expand Down
17 changes: 17 additions & 0 deletions spec/fixtures/ead/sul-spec/pc0170.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
<physdesc altrender="whole">
<extent altrender="materialtype spaceoccupied">27534 computer file(s) (tiff)</extent>
</physdesc>
<materialspec>Some images are transparencies designed for use with an overhead projector.</materialspec>
<unitdate normal="1978/2003" type="inclusive">1978-2003</unitdate>
</did>
<c02 audience="internal" id="aspace_6a6648be46e57d220d1f4f6d07316570" level="subseries">
Expand All @@ -115,6 +116,22 @@
<head>Conditions Governing Access</head>
<p>Restricted 60 years from date of creation.</p>
</accessrestrict>
<fileplan>
<list type="ordered">
<defitem>
<label>1</label>
<item>Creative Services</item>
</defitem>
<defitem>
<label>2</label>
<item>University Graphics</item>
</defitem>
<defitem>
<label>3</label>
<item>Digital Media Team</item>
</defitem>
</list>
</fileplan>
</c02>
</c01>
<c01 audience="internal" id="aspace_3ae9806cb62aaa689044200960f0dc3c" level="series">
Expand Down

0 comments on commit 91b5efd

Please sign in to comment.