Skip to content

Commit

Permalink
switch all MAPs to new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Riesenberg committed Apr 20, 2024
1 parent 3a45216 commit 81081d2
Show file tree
Hide file tree
Showing 9 changed files with 8,526 additions and 6,513 deletions.
10,132 changes: 5,630 additions & 4,502 deletions html/becker.html

Large diffs are not rendered by default.

4,634 changes: 2,781 additions & 1,853 deletions html/greekdancing.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion xml/becker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<exclude_for_genre_form>^p6$|^p19$|^p137$|^p99$|^p50$</exclude_for_genre_form>
</section>
<section>
<genre_form>Records_\(Documents\)</genre_form>
<genre_form>Records_(Documents)</genre_form>
<cdm_object_type>standalone_item</cdm_object_type>
<exclude_for_genre_form>^p65$|^p53$</exclude_for_genre_form>
</section>
Expand Down
2 changes: 1 addition & 1 deletion xml/greekdancing.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<section>
<genre_form>default</genre_form>
<cdm_object_type>compound_object</cdm_object_type>
<exclude_for_co>^p37$|^p29$|^p62$|^p31$</exclude_for_co>
<exclude_for_co>^p37$|^p29$|^p62$|^p31$|^p134$</exclude_for_co>
<include_for_co_items>^p88$|^p55$|^p28$|^p30$|^p90$|^p37$|^p29$|^p62$|^p31$|^p79$|^p134$</include_for_co_items>
</section>
</map_structure>
Expand Down
5 changes: 3 additions & 2 deletions xsd/xml_map.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@

<xs:simpleType name="map_structure_cdm_object_type_type">
<xs:annotation>
<xs:documentation>Note difference between cdm_object_type_type, defined in properties_files.xsd.</xs:documentation>
<xs:documentation>Only 'compound_object' or 'standalone_object' may be defined as the cdm_object_type for each MAP section.</xs:documentation>
<xs:documentation>Related: schemasProject/xsd/properties_files.xsd - cdm_object_type_type</xs:documentation>
<xs:documentation>Related: contentdm_maps/xsl/functions.xsl - xsl:function cdmm:convert_object_type_notation</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="compound_object"/>
Expand All @@ -68,7 +69,7 @@
<xs:simpleType name="p_num_regex">
<xs:restriction base="xs:string">
<!-- refer to https://regex101.com/r/OBzuEg/1 -->
<xs:pattern value="(\^p[0-9]{1,3}\$\|)*(\^p[0-9]{1,3}\$)+"/>
<xs:pattern value="(\^p[0-9]{1,3}\$\|)*(\^p[0-9]{1,3}\$)"/>
</xs:restriction>
</xs:simpleType>

Expand Down
57 changes: 0 additions & 57 deletions xsd/xml_map_0.xsd

This file was deleted.

2 changes: 1 addition & 1 deletion xsl/functions.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<!-- render_genre_form -->
<xsl:function name="cdmm:render_genre_form">
<xsl:param name="genre_form" as="xs:string"/>
<xsl:value-of select="translate($genre_form, '_\', ' ')"/>
<xsl:value-of select="translate($genre_form, '_', ' ')"/>
</xsl:function>

<!-- convert_object_type_notation -->
Expand Down
2 changes: 1 addition & 1 deletion xsl/properties_in_xml_map.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<xsl:output method="xml" indent="yes"/>

<!-- specify XML MAP filename in param -->
<xsl:param name="xml_map_filename">p16786coll3.xml</xsl:param>
<xsl:param name="xml_map_filename">greekdancing.xml</xsl:param>

<xsl:variable name="ssdc_map" select="
document(concat('../xml/', $xml_map_filename))/cdmm:xml_map"/>
Expand Down
Loading

0 comments on commit 81081d2

Please sign in to comment.