Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Having problems or solved a problem? Check out the Islandora google groups for a
### Q. What elements are necessary in finding aid EAD metadata?

A. Components (`c`, `c01`, `c02`, `c03`, _etc_) *MUST* have `id` attributes unique to the given XML document in order to reliably produce links and relationships. Components *MUST* have a `level` as one of:
* `subgrp`
* `series`
* `subseries`
* `file`
Expand Down
5 changes: 5 additions & 0 deletions includes/blocks.inc
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ function islandora_manuscript_container_list($object) {
'default' => array(
'select_node' => FALSE,
),
'subgrp' => array(
'valid_children' => array(
'series',
),
),
'series' => array(
'valid_children' => array(
'subseries',
Expand Down
4 changes: 2 additions & 2 deletions includes/jstreebuilder.inc
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,12 @@ class ContainerListJSTreeBuilder extends JSTreeBuilder {
/**
* Inherits.
*
* Only return results for series and subseries, and make a couple
* Only return results for subgrp, series and subseries, and make a couple
* adjustments to the data.
*/
protected function getComponentTree(DOMElement $element) {
$type = $element->getAttribute('level');
if (in_array($type, array('series', 'subseries'))) {
if (in_array($type, array('subgrp', 'series', 'subseries'))) {
$to_return = parent::getComponentTree($element);
$to_return['a_attr']['href'] = url("islandora/object/{$this->object->id}", array('fragment' => $to_return['id']));
$to_return['id'] = "container_list_{$to_return['id']}";
Expand Down
5 changes: 5 additions & 0 deletions includes/link.inc
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ function islandora_manuscript_link_to_finding_aid_form($form, &$form_state, Abst
'default' => array(
'select_node' => FALSE,
),
'subgrp' => array(
'valid_children' => array(
'series',
),
),
'series' => array(
'valid_children' => array(
'subseries',
Expand Down
2 changes: 1 addition & 1 deletion transforms/ead_to_html.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</xsl:template>

<!-- General display -->
<xsl:template match="ead:c | ead:c01 | ead:c02 | ead:c03">
<xsl:template match="ead:c | ead:c01 | ead:c02 | ead:c03 | ead:c04 | ead:c05 | ead:c06">
<fieldset>
<xsl:attribute name="class">
<xsl:text>ead-component collapsible collapsed </xsl:text>
Expand Down