Skip to content
Snippets Groups Projects
Commit aab7c2b6 authored by Alexander Purr's avatar Alexander Purr Committed by Dorian Merz
Browse files

refs #20106 [fid_bbi] Digitization-on-Demand Service

* profile menu: new group and entry to DoD
* form:
** some new translations
** special styling for L-size: tables und forms behave the same
* enable external links coming from DoD-form in data-lightbox
* show DoD menu link only if acquisitions are granted
parent 65367a30
Branches
Tags
No related merge requests found
...@@ -23,4 +23,10 @@ policy_terms_text = "Für dieses Formular gelten die bereits von Ihnen bestätig ...@@ -23,4 +23,10 @@ policy_terms_text = "Für dieses Formular gelten die bereits von Ihnen bestätig
admin_section = "Kontoverwaltung" admin_section = "Kontoverwaltung"
user_edit_form_title = "Kontodaten ändern für <em>%%username%%</em> (ID %%userid%%)" user_edit_form_title = "Kontodaten ändern für <em>%%username%%</em> (ID %%userid%%)"
user_edit = "Konto %%userid%% bearbeiten" user_edit = "Konto %%userid%% bearbeiten"
user_deleted = "Gelöschtes Konto" user_deleted = "Gelöschtes Konto"
\ No newline at end of file
acquisition_digitization_info = "<p>Der Digitization-on-Demand-Service steht der Nutzer*innengruppe der Forschenden kostenlos zur Verfügung und soll deren Forschungsvorhaben im Bereich der Buch-, Bibliotheks- und Informationswissenschaft unterstützen. Es können selbstständige bibliographische Einheiten (Monographie, Zeitschriftenband, Jahrbuch, Sammelwerk) digitalisiert werden, die in einer deutschen Bibliothek aufgestellt sind. Sollte bereits ein lesbares Digitalisat vorhanden sein, wird das Werk nicht noch einmal digitalisiert. Bitte prüfen Sie vor Auslösung eines Digitalisierungsauftrags anhand des %%link%% die freie Zugänglichkeit des betreffenden Werks im Internet.</p><p>Digitalisate werden als jpg oder pdf zur Verfügung gestellt. Sollten andere Formate (z.B. TIFF) gewünscht werden, kann dies im Kommentarfeld angegeben werden. Die dadurch entstehenden Kosten werden vom Nutzenden selbst getragen.</p>"
acquisition_digitization_kvk_name = "Karlsruher Virtuellen Katalogs"
acquisition_digitization_usage = "Die besitzende Bibliothek informiert meist mithilfe von %%link%%, über die für das Digitalisat geltenden Nutzungsbedingungen. Nutzungsbedingungen, über die uns die besitzende Bibliothek bei Lieferung der Digitalisate informiert, werden in gleicher Form an Sie weitergegeben. Bitte beachten Sie, dass die <strong>kommerzielle Nutzung</strong> von Digitalisaten (etwa als Reproduktionsvorlage für Print-Publikationen) in den meisten Bibliotheken genehmigungs- und gebührenpflichtig ist. Bei Interesse an einer kommerziellen Nutzung wenden Sie sich daher unbedingt an die Bibliothek, die das Digitalisat erstellt hat, und informieren sich über die geltenden Bestimmungen."
acquisition_digitization_cc_name = "Creative Commons Lizenzen"
acquisition_digitization_cc_url = "https://creativecommons.org/licenses/?lang=de"
...@@ -15,3 +15,9 @@ label_college = "Affiliation" ...@@ -15,3 +15,9 @@ label_college = "Affiliation"
acquisition_fid_name = "FID BBI" acquisition_fid_name = "FID BBI"
policy_terms_text = "For this form, the %%policy%% and %%terms%% that you have already confirmed apply." policy_terms_text = "For this form, the %%policy%% and %%terms%% that you have already confirmed apply."
acquisition_digitization_info = "<p>The Digitization-on-Demand service is available free of charge to the user group of researchers and is intended to support their research projects regarding book studies, library and information science. Stand-alone bibliographic units (monograph, journal volume, yearbook, collective work) that are held in a German library can be digitized. If a readable digital copy already exists, the work will not be digitized again. Before initiating a digitization request, please check the %%link%% to ensure that the work in question is not already freely accessible.</p><p>Digitized files are provided as jpg or pdf. If you need other formats (e.g. TIFF), you can specify this in the comment field. The resulting costs must be carried by the user himself.</p>"
acquisition_digitization_kvk_name = "Karlsruhe Virtual Catalog"
acquisition_digitization_usage = "Generally, the owning library informs via %%link%% about the terms of use that apply to the digitized material. Any terms of use that the owning library notifies us of upon delivery of the digitized copy will be passed on to you in the same form. Please note that a commercial use of digitized materials (for example, as a template for print publications) is subject to permission and fees in most libraries. Therefore, if you are interested in <strong>commercial use</strong>, be sure to contact the library that created the digitized copy and find out about the terms and conditions that apply. "
acquisition_digitization_cc_name = "Creative Commons Licenses"
acquisition_digitization_cc_url = "https://creativecommons.org/about/cclicenses/"
...@@ -94,3 +94,10 @@ ...@@ -94,3 +94,10 @@
} }
} }
} }
#fid-acquisition-form,
#fid-acquisition-missing-record-form {
th {
width: 30%;
}
}
<!-- fid_bbi: fid - record - acquisition-digitization -->
<?php <?php
use Zend\Form\Element; use Zend\Form\Element;
...@@ -6,7 +7,6 @@ use Zend\Form\View\Helper\FormElementErrors; ...@@ -6,7 +7,6 @@ use Zend\Form\View\Helper\FormElementErrors;
use Zend\Form\View\Helper\FormLabel; use Zend\Form\View\Helper\FormLabel;
use Zend\Form\View\Helper\FormSubmit; use Zend\Form\View\Helper\FormSubmit;
$driver = $this->driver;
/** @var Form $form */ /** @var Form $form */
/** @var FormLabel $formLabel */ /** @var FormLabel $formLabel */
/** @var FormSubmit $formSubmit */ /** @var FormSubmit $formSubmit */
...@@ -28,48 +28,30 @@ $form->setAttribute('class','fid-acquisition-form'); ...@@ -28,48 +28,30 @@ $form->setAttribute('class','fid-acquisition-form');
<?= $this->form()->openTag($form) ?> <?= $this->form()->openTag($form) ?>
<div class="form-group"> <div class="form-group">
<?= $this->translate("fid::acquisition_digitization_info", [ <?= $this->translate("fid::acquisition_digitization_info", [
'%%fidname%%' => $this->translate("fid::acquisition_fid_name"), '%%link%%' => $this->externalLink(
$this->translate('kvk_url'),
$this->translate('fid::acquisition_digitization_kvk_name'),
['data-lightbox-ignore' => ''])
]); ?> ]); ?>
</div> </div>
<?=$this->render('fid/record/acquisition-address-details'); ?> <?=$this->render('fid/record/acquisition-address-details'); ?>
<?php if (isset($this->driver)): ?>
<?php $driver = $this->driver; ?>
<?php <?php
$formatter = $this->recordDataFormatter(); $formatter = $this->recordDataFormatter();
$this->coreFields = $formatter->getData($driver, $formatter->getDefaults('fid-acquisition-general')); $this->coreFields = $formatter->getData($driver, $formatter->getDefaults('fid-acquisition-general'));
?> ?>
<?=$this->render('fid/record/acquisition-record-details'); ?> <?=$this->render('fid/record/acquisition-record-details'); ?>
<? /* format */ ?> <?php endif; ?>
<?php
/** @var Element\Select $elemFormat */
$elemFormat = $form->get('format');
$elemFormat->setLabelAttributes(['class' => 'control-label']);
$elemFormat->setAttributes(['class' => 'form-control']);
?>
<div class="form-group">
<?= $this->formElementErrors($elemFormat) ?>
<?= $this->formLabel($elemFormat) ?>
<?= $this->formElement($elemFormat) ?>
</div>
<? /* comments */ ?>
<?php
/** @var Element\Textarea $elemComment */
$elemComment = $form->get('comment');
$elemComment->setLabelAttributes(['class' => 'control-label']);
$elemComment->setAttributes(['class' => 'form-control']);
?>
<div class="form-group"> <?=$this->render('fid/record/acquisition-digitization-fields'); ?>
<?= $this->formElementErrors($elemComment) ?>
<?= $this->formLabel($elemComment) ?>
<?= $this->formElement($elemComment) ?>
</div>
<?php // eula privacy policy ?> <?php // eula privacy policy ?>
<div class="form-group eula"> <div class="form-group eula">
<div> <p>
<?php <?php
$policy_link = '<a data-lightbox href="' $policy_link = '<a data-lightbox href="'
. $this->url('fid/user/policy') . $this->url('fid/user/policy')
...@@ -86,7 +68,15 @@ $elemComment->setAttributes(['class' => 'form-control']); ...@@ -86,7 +68,15 @@ $elemComment->setAttributes(['class' => 'form-control']);
'%%policy%%' => $policy_link, '%%policy%%' => $policy_link,
'%%terms%%' => $terms_link '%%terms%%' => $terms_link
])?> ])?>
</div> </p>
<p>
<?= $this->translate("fid::acquisition_digitization_usage", [
'%%link%%' => $this->externalLink(
$this->translate('fid::acquisition_digitization_cc_url'),
$this->translate('fid::acquisition_digitization_cc_name'),
['data-lightbox-ignore' => ''])
]); ?>
</p>
</div> </div>
<? /* submit button */ ?> <? /* submit button */ ?>
...@@ -100,3 +90,4 @@ $elemComment->setAttributes(['class' => 'form-control']); ...@@ -100,3 +90,4 @@ $elemComment->setAttributes(['class' => 'form-control']);
</div> </div>
<?= $this->form()->closeTag($form) ?> <?= $this->form()->closeTag($form) ?>
<!-- fid_bbi: fid - record - acquisition-digitization - END -->
...@@ -58,16 +58,26 @@ ...@@ -58,16 +58,26 @@
<?php endif; ?> <?php endif; ?>
</ul> </ul>
<h3><?=$this->translate('fid::FID_services')?></h3>
<ul class="unstyled-list">
<?php if ($this->permission()->allowDisplay('fid.Acquisitions')): ?>
<li>
<a data-lightbox href="<?=$this->url("record-fiddigitizationmissingrecord", ['id' => 'none'])?>">
<?=$this->transEsc('fid::acquisition_digitization')?>
</a>
</li>
<?php endif; ?>
<li>
<a data-lightbox href="<?=$this->url('fid/user/orders')?>">
<?=$this->transEsc('Your Orders')?>
</a>
</li>
</ul>
<?php if ($this->userlist()->getMode() !== 'disabled'): ?> <?php if ($this->userlist()->getMode() !== 'disabled'): ?>
<h3><?=$this->translate('Your Lists')?></h3> <h3><?=$this->translate('Your Lists')?></h3>
<ul class="unstyled-list"> <ul class="unstyled-list">
<li>
<a data-lightbox href="<?=$this->url('fid/user/orders')?>">
<?=$this->transEsc('Your Orders')?>
</a>
</li>
<?php if ($this->accountCapabilities()->getSavedSearchSetting() === 'enabled'): ?> <?php if ($this->accountCapabilities()->getSavedSearchSetting() === 'enabled'): ?>
<li> <li>
<a <a
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment