Skip to content

contentdm_maps_more

Benjamin Riesenberg edited this page Apr 20, 2024 · 15 revisions

more notes: contentdm_maps

🚧🚧🚧

The schemasProject and contentdm_maps repositories must be placed within the same directory in your filesystem.

| ...
| schemasProject/
| contentdm_maps/
| ...

creating metadata guidance documents

Creating metadata guidance documents for publication at uwlib-mig.github.io/contentdm_maps/ requires:

  • An XML MAP document, as defined by xsd/xml_maps.xsd
  • Default or custom metadata-creation guidance, example values, and field configuration details entered in schemasProject/properties-files, each corresponding to a metadata field which will be implemented for the collection.
  • The stylesheet xml_map_properties_files_to_html.xsl and stylesheets from contentdm_maps and webviews which it includes.

xsd/xml_maps.xsd + xml/*

...how to do!?... see also schema annotations XML MAPs with file name _[map name]-dd.xml have not yet been updated to function with the workflow described here.

XML MAP document structure

contentdm_maps metadata guidance documents may be divided into sections to provide customized guidance for a variety of categories of resource. (...gotta be the same Cdm object type...)

genre_form

  • For each category
  • Select, or add and use, an enumeration from schemasProject/xsd/genre_form.xsd to identify each distinct guidance section in your MAP
  • Indicate how ea

exclude_for_genre_form / exclude_for_co

  • Specify by 'p-number'
  • Order does not matter
  • Validated by regex
    • Required prefix for each p-number: '^'
    • Required suffix for each p-number: '$'
    • Required delimiter between each p-number: '|'

include_for_co_item

  • Specify by 'p-number'
  • Order does not matter
  • Validated by regex
    • Required prefix for each p-number: '^'
    • Required suffix for each p-number: '$'
    • Required delimiter between each p-number: '|'

xsl/properties_in_xml_map.xsl

May be helpful when editing XML map exclude_for_co, exclude_for_genre_form, and include_for_co_items element values, see guidance for XML MAPs > exclude_for_co, exclude_for_genre_form, and include_for_co_items elements.

xsl/xml_map_properties_files_to_html.xsl

Clone this wiki locally