adds more document chapters
This commit is contained in:
parent
52aa513390
commit
8649f2f573
|
@ -49,6 +49,39 @@ Transport: (movable or fixed)
|
|||
Status: (stable, unstable, living, dead(fixed or decaying), inert)
|
||||
Lifespan:
|
||||
Life cycle:',
|
||||
'digitization' => 'Digitization status: (2D picture, 2D drawing, 2D + video, 2D + multispectral, 3D photogrammetry, 3D structured light, other)
|
||||
Digitization Protocols:
|
||||
Creators of digitization files:
|
||||
Contributors for the digitization:
|
||||
Rights:
|
||||
Tags:',
|
||||
'storage' => 'What are the inert parts of the work:
|
||||
How to box them and what care needs to happen to maintain the materials in good condition:
|
||||
What are the living organisms that form the work: (what kingdom, order etc. -
|
||||
https://www.catalogueoflife.org/data/search?facet=rank&facet=issue&facet=status&facet=nomStatus&facet=nameType&facet=field&limit=50&offset=0&sortBy=taxonomic)
|
||||
How to store them:
|
||||
Bio-safety level requirements: (touch friendly, safety distance, double containment, triple containment, specific licenses, reports)
|
||||
Do they need to be revived for installation:
|
||||
Do they need to be kept alive between installation events:
|
||||
How do they interact:
|
||||
Documentation on the work ( video, photos, texts, etc.)
|
||||
History of exhibitions + documentation: ( video, photos, texts, etc.)
|
||||
Publications of the work: (articles, catalogues, etc.)',
|
||||
'installation' => 'Assemblage requirements:
|
||||
Dimensions:
|
||||
Light requirements: (natural light, artificial light, grow light, light cycles, ambient light or spotlight)
|
||||
Humidity requirements: (humid environment, dry environment, not applicable)
|
||||
Temperature requirements: (constant temperature, temperature cycle, not applicable)
|
||||
Maintenance requirements: (cycles, laboratory availability/requirements, water requirements, feeding requirements, cleaning requirements)
|
||||
Time frame limitations: (days, weeks, months, years)
|
||||
Bio-safety level requirements: (touch friendly, safety distance required, double containment required, triple containment required, specific licenses required, reports or declarations required)
|
||||
Live material source: (international company, home laboratory, specific laboratory, local, wild)
|
||||
Technical equipment requirements: (incubators, batteries, power source, agitators, timers, magnetic stirrers, etc.)
|
||||
Audiovisual equipment requirements: (projectors, screens, players, speakers, PA, etc.)
|
||||
#### What is the minimum set of conditions necessary to meet for installation and/or display:
|
||||
Can it be shown as in a documentary form (video, images, text): specify
|
||||
Can it be shown as a posthumous display:
|
||||
Can it be shown as a living installation:',
|
||||
]
|
||||
]
|
||||
];
|
||||
|
|
|
@ -21,6 +21,38 @@ class TechDocumentBlockForm extends Form
|
|||
'rows' => '10',
|
||||
],
|
||||
]);
|
||||
|
||||
$this->add([
|
||||
'name' => 'o:block[__blockIndex__][o:data][digitization]',
|
||||
'type' => Element\Textarea::class,
|
||||
'options' => [
|
||||
'label' => 'Digitization',
|
||||
'info' => 'https://www.markdownguide.org/cheat-sheet',
|
||||
],
|
||||
'attributes' => [
|
||||
'rows' => '10',
|
||||
],
|
||||
]);
|
||||
$this->add([
|
||||
'name' => 'o:block[__blockIndex__][o:data][storage]',
|
||||
'type' => Element\Textarea::class,
|
||||
'options' => [
|
||||
'label' => 'Storage',
|
||||
'info' => 'https://www.markdownguide.org/cheat-sheet',
|
||||
],
|
||||
'attributes' => [
|
||||
'rows' => '10',
|
||||
],
|
||||
]);
|
||||
$this->add([
|
||||
'name' => 'o:block[__blockIndex__][o:data][installation]',
|
||||
'type' => Element\Textarea::class,
|
||||
'options' => [
|
||||
'label' => 'Installation',
|
||||
'info' => 'https://www.markdownguide.org/cheat-sheet',
|
||||
],
|
||||
'attributes' => [
|
||||
'rows' => '10',
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ class TechDocument extends AbstractBlockLayout
|
|||
}
|
||||
|
||||
public function getLabel() {
|
||||
return 'Techical document';
|
||||
return 'Technical document';
|
||||
}
|
||||
|
||||
|
||||
|
@ -60,10 +60,17 @@ class TechDocument extends AbstractBlockLayout
|
|||
$site_title = $block->getPage()->getSite()->getTitle();
|
||||
|
||||
$parsedown = new Parsedown();
|
||||
# logo -> link to site page
|
||||
$text = "# ".$site_title." ".$dir."\n";
|
||||
$text .= "## Arc-hive technical documentation\n";
|
||||
$text .= "## Technical documentation\n";
|
||||
$text .= "### Characteristics\n";
|
||||
$text .= $data['characteristics'];
|
||||
$text .= "\n\n### Digitization\n";
|
||||
$text .= $data['digitization'];
|
||||
$text .= "\n\n### Storage\n";
|
||||
$text .= $data['storage'];
|
||||
$text .= "\n\n### Installation\n";
|
||||
$text .= $data['installation'];
|
||||
|
||||
$html = $parsedown->setBreaksEnabled(true)->text($text);
|
||||
$mpdf = new \Mpdf\Mpdf();
|
||||
|
@ -82,11 +89,14 @@ class TechDocument extends AbstractBlockLayout
|
|||
: $this->defaultSettings;
|
||||
$form->setData([
|
||||
'o:block[__blockIndex__][o:data][characteristics]' => $data['characteristics'],
|
||||
'o:block[__blockIndex__][o:data][digitization]' => $data['digitization'],
|
||||
'o:block[__blockIndex__][o:data][storage]' => $data['storage'],
|
||||
'o:block[__blockIndex__][o:data][installation]' => $data['installation'],
|
||||
]);
|
||||
$form->prepare();
|
||||
|
||||
$html = '';
|
||||
$html .= '<a href="#" class="collapse" aria-label="collapse"><h4>' . $view->translate('Options'). '</h4></a>';
|
||||
$html .= '<a href="#" class="collapse" aria-label="collapse"><h4>Options (save as you go)</h4></a>';
|
||||
$html .= '<div class="collapsible" style="padding-top:6px;">';
|
||||
$html .= $view->formCollection($form);
|
||||
$html .= '</div>';
|
||||
|
|
Loading…
Reference in New Issue