From 8649f2f573d42fb2e8e1cc931263da456232a0d6 Mon Sep 17 00:00:00 2001 From: buttle Date: Tue, 25 May 2021 17:50:00 +0200 Subject: [PATCH] adds more document chapters --- config/module.config.php | 33 ++++++++++++++++++++++++++ src/Form/TechDocumentBlockForm.php | 34 ++++++++++++++++++++++++++- src/Site/BlockLayout/TechDocument.php | 16 ++++++++++--- 3 files changed, 79 insertions(+), 4 deletions(-) diff --git a/config/module.config.php b/config/module.config.php index 9607054..c580f2c 100644 --- a/config/module.config.php +++ b/config/module.config.php @@ -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:', ] ] ]; diff --git a/src/Form/TechDocumentBlockForm.php b/src/Form/TechDocumentBlockForm.php index 6bf577a..7f39148 100644 --- a/src/Form/TechDocumentBlockForm.php +++ b/src/Form/TechDocumentBlockForm.php @@ -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', + ], + ]); } } diff --git a/src/Site/BlockLayout/TechDocument.php b/src/Site/BlockLayout/TechDocument.php index f6721e6..ae6d2f6 100644 --- a/src/Site/BlockLayout/TechDocument.php +++ b/src/Site/BlockLayout/TechDocument.php @@ -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 .= '

' . $view->translate('Options'). '

'; + $html .= '

Options (save as you go)

'; $html .= '
'; $html .= $view->formCollection($form); $html .= '
';