adds texts blocks. adds logo to pdf

This commit is contained in:
buttle 2021-05-31 10:43:40 +02:00
parent 8649f2f573
commit bb27d7b6c4
3 changed files with 51 additions and 1 deletions

View File

@ -49,12 +49,14 @@ Transport: (movable or fixed)
Status: (stable, unstable, living, dead(fixed or decaying), inert) Status: (stable, unstable, living, dead(fixed or decaying), inert)
Lifespan: Lifespan:
Life cycle:', Life cycle:',
'digitization' => 'Digitization status: (2D picture, 2D drawing, 2D + video, 2D + multispectral, 3D photogrammetry, 3D structured light, other) 'digitization' => 'Digitization status: (2D picture, 2D drawing, 2D + video, 2D + multispectral, 3D photogrammetry, 3D structured light, other)
Digitization Protocols: Digitization Protocols:
Creators of digitization files: Creators of digitization files:
Contributors for the digitization: Contributors for the digitization:
Rights: Rights:
Tags:', Tags:',
'storage' => 'What are the inert parts of the work: '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: 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. - What are the living organisms that form the work: (what kingdom, order etc. -
@ -67,6 +69,7 @@ How do they interact:
Documentation on the work ( video, photos, texts, etc.) Documentation on the work ( video, photos, texts, etc.)
History of exhibitions + documentation: ( video, photos, texts, etc.) History of exhibitions + documentation: ( video, photos, texts, etc.)
Publications of the work: (articles, catalogues, etc.)', Publications of the work: (articles, catalogues, etc.)',
'installation' => 'Assemblage requirements: 'installation' => 'Assemblage requirements:
Dimensions: Dimensions:
Light requirements: (natural light, artificial light, grow light, light cycles, ambient light or spotlight) Light requirements: (natural light, artificial light, grow light, light cycles, ambient light or spotlight)
@ -82,6 +85,24 @@ Audiovisual equipment requirements: (projectors, screens, players, speakers, PA,
Can it be shown as in a documentary form (video, images, text): specify 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 posthumous display:
Can it be shown as a living installation:', Can it be shown as a living installation:',
'shipping' => 'Shipping requirements for inert parts:
Crate number:
Crate(s) dimensions: (Length, Breadth, Height)
Crate(s) weight:
Crate(s) volume: (in cm3)
Shipping requirements for living materials:
Live material source: (international company, home laboratory, specific laboratory, local, wild):
Does it need special packaging and/or temperature requirements:',
'longtermcare' => 'Live material source: (international company, home laboratory, specific laboratory, local, wild):
Does it need special packaging and/or temperature requirements:
Bio-safety level requirements: (touch friendly, safety distance required, double containment required, triple containment required, specific licenses required, reports or declarations required)
Time frame limitations: (days, weeks, months, years)
What can be done to replace the living organisms:
Does it need a hardware update/maintenance:
Does it need software update/maintenance:',
] ]
] ]
]; ];

View File

@ -49,6 +49,28 @@ class TechDocumentBlockForm extends Form
'options' => [ 'options' => [
'label' => 'Installation', 'label' => 'Installation',
'info' => 'https://www.markdownguide.org/cheat-sheet', 'info' => 'https://www.markdownguide.org/cheat-sheet',
],
'attributes' => [
'rows' => '10',
],
]);
$this->add([
'name' => 'o:block[__blockIndex__][o:data][shipping]',
'type' => Element\Textarea::class,
'options' => [
'label' => 'Shipping',
'info' => 'https://www.markdownguide.org/cheat-sheet',
],
'attributes' => [
'rows' => '10',
],
]);
$this->add([
'name' => 'o:block[__blockIndex__][o:data][longtermcare]',
'type' => Element\Textarea::class,
'options' => [
'label' => 'Long-term care',
'info' => 'https://www.markdownguide.org/cheat-sheet',
], ],
'attributes' => [ 'attributes' => [
'rows' => '10', 'rows' => '10',

View File

@ -61,7 +61,8 @@ class TechDocument extends AbstractBlockLayout
$parsedown = new Parsedown(); $parsedown = new Parsedown();
# logo -> link to site page # logo -> link to site page
$text = "# ".$site_title." ".$dir."\n"; $text = "<img src='/themes/archive/asset/img/arc-hive-logo.jpg' />\n";
$text .= "\n# ".$site_title." ".$dir."\n";
$text .= "## Technical documentation\n"; $text .= "## Technical documentation\n";
$text .= "### Characteristics\n"; $text .= "### Characteristics\n";
$text .= $data['characteristics']; $text .= $data['characteristics'];
@ -71,6 +72,10 @@ class TechDocument extends AbstractBlockLayout
$text .= $data['storage']; $text .= $data['storage'];
$text .= "\n\n### Installation\n"; $text .= "\n\n### Installation\n";
$text .= $data['installation']; $text .= $data['installation'];
$text .= "\n\n### Shipping it\n";
$text .= $data['shipping'];
$text .= "\n\n### Long-term Care: (in storage and on display)\n";
$text .= $data['longtermcare'];
$html = $parsedown->setBreaksEnabled(true)->text($text); $html = $parsedown->setBreaksEnabled(true)->text($text);
$mpdf = new \Mpdf\Mpdf(); $mpdf = new \Mpdf\Mpdf();
@ -92,6 +97,8 @@ class TechDocument extends AbstractBlockLayout
'o:block[__blockIndex__][o:data][digitization]' => $data['digitization'], 'o:block[__blockIndex__][o:data][digitization]' => $data['digitization'],
'o:block[__blockIndex__][o:data][storage]' => $data['storage'], 'o:block[__blockIndex__][o:data][storage]' => $data['storage'],
'o:block[__blockIndex__][o:data][installation]' => $data['installation'], 'o:block[__blockIndex__][o:data][installation]' => $data['installation'],
'o:block[__blockIndex__][o:data][shipping]' => $data['shipping'],
'o:block[__blockIndex__][o:data][longtermcare]' => $data['longtermcare'],
]); ]);
$form->prepare(); $form->prepare();