Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 2.52 KB

README.md

File metadata and controls

22 lines (16 loc) · 2.52 KB

jpca_rights_statement

An ArchivesSpace plugin to support JPCA-style EAD exports.

Rights Statements

  • Within <archdesc>, exports <userestrict> holding a <head>, <note>, and <list><item><date/></item></list> matching a resource-level rights statement. Unpublished notes will be exported with an audience of "internal." Rights statements are not exported by ASpace by default.
  • Within <c>, exports <userestrict> holding a <head>, <note>, and <list><item><date/></item></list> matching an archival object-level rights statement. Unpublished notes will be exported with an audience of "internal." Rights statements are not exported by ASpace by default.
Description ASpace Default (simplified example) JPCA Override (simplified example)
Resource-level rights statement with a published note. not exported <userestrict id="aspace_[identifier]" type="[rights_type]"><head>Rights Statement</head><note type="[note_type]"><p>[note_content]</p></note><list><item><date normal="[start_date]" type="start" /></item></list></userestrict>
Component-level rights statement with a published note. not exported <userestrict id="aspace_[identifier]" type="[rights_type]"><head>Rights Statement</head><note type="[note_type]"><p>[note_content]</p></note><list><item><date normal="[start_date]" type="start" /></item></list></userestrict>
Resource-level rights statement with an unpublished note. not exported <userestrict id="aspace_[identifier]" type="[rights_type]"><head>Rights Statement</head><note audience="internal" type="[note_type]"><p>[note_content]</p></note><list><item><date normal="[start_date]" type="start" /></item></list></userestrict>
Component-level rights statement with an unpublished note. not exported <userestrict id="aspace_[identifier]" type="[rights_type]"><head>Rights Statement</head><note audience="internal" type="[note_type]"><p>[note_content]</p></note><list><item><date normal="[start_date]" type="start" /></item></list></userestrict>

Tests

Run the backend tests from the application root directory with:

./build/run backend:test:plugin -Dexample='JPCA EAD export mappings'