Skip to content
Snippets Groups Projects
Commit a34c626d authored by Viktoria Wiebe's avatar Viktoria Wiebe Committed by Elmar Ludwig
Browse files

fixes biest #359 - show library add item descritpion according to config

Closes #359

Merge request studip/studip!326
parent bb88c942
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,8 @@ if ($folder_id) { ...@@ -17,7 +17,8 @@ if ($folder_id) {
<div class="files_source_selector" data-folder_id="<?= htmlReady($folder_id) ?>" <? if ($hidden) echo ' style="display: none;"'; ?>> <div class="files_source_selector" data-folder_id="<?= htmlReady($folder_id) ?>" <? if ($hidden) echo ' style="display: none;"'; ?>>
<h2 class="dialog-subtitle"><?= _('Quelle auswählen') ?></h2> <h2 class="dialog-subtitle"><?= _('Quelle auswählen') ?></h2>
<div class="file_select_possibilities"> <div class="file_select_possibilities">
<? if (($range instanceof Course) && !$range->getSemClass()['studygroup_mode'] && $GLOBALS['perm']->have_studip_perm('tutor', $range->id) && $GLOBALS['LIBRARY_CATALOGS'] && $show_library_functions) : ?> <? if ($range instanceof Course && !$range->getSemClass()['studygroup_mode'] && $GLOBALS['perm']->have_studip_perm('tutor', $range->id)
&& $GLOBALS['LIBRARY_CATALOGS'] && $show_library_functions && $library_search_description) : ?>
<div> <div>
<a class="important-item" data-dialog="size=medium-43" <a class="important-item" data-dialog="size=medium-43"
href="<?= $controller->link_for('file/add_from_library/' . $folder_id)?>"> href="<?= $controller->link_for('file/add_from_library/' . $folder_id)?>">
...@@ -45,16 +46,21 @@ if ($folder_id) { ...@@ -45,16 +46,21 @@ if ($folder_id) {
<?= Icon::create('files')->asImg(50) ?> <?= Icon::create('files')->asImg(50) ?>
<?= _('Persönlicher Dateibereich') ?> <?= _('Persönlicher Dateibereich') ?>
</a> </a>
<a href="<?= $controller->link_for('file/choose_file_from_course/' . htmlReady($folder_id), array_merge($options, ['from_plugin' => ""])) ?>" data-dialog> <a href="<?= $controller->link_for('file/choose_file_from_course/' . $folder_id, array_merge($options, ['from_plugin' => ""])) ?>" data-dialog>
<?= Icon::create('seminar')->asImg(50) ?> <?= Icon::create('seminar')->asImg(50) ?>
<?= _('Meine Veranstaltungen') ?> <?= _('Meine Veranstaltungen') ?>
</a> </a>
<? if (($range instanceof Course) && $GLOBALS['perm']->have_studip_perm('tutor', $range->id) && $show_library_functions) : ?> <? if ($range instanceof Course && $GLOBALS['perm']->have_studip_perm('tutor', $range->id) && $show_library_functions) : ?>
<a href="<?= $controller->link_for('library_file/select_type/' . htmlReady($folder_id)) ?>" <a href="<?= $controller->link_for('library_file/select_type/' . $folder_id) ?>" data-dialog="size=auto">
data-dialog="size=auto">
<?= Icon::create('literature')->asImg(50) ?> <?= Icon::create('literature')->asImg(50) ?>
<?= _('Literatur') ?> <?= _('Literatur') ?>
</a> </a>
<? if ($GLOBALS['LIBRARY_CATALOGS'] && !$range->getSemClass()['studygroup_mode'] && !$library_search_description) : ?>
<a href="<?= $controller->link_for('file/add_from_library/' . $folder_id) ?>" data-dialog="size=medium-43">
<?= Icon::create('literature')->asImg(50) ?>
<?= _('Originaldokument aus Bibliothek') ?>
</a>
<? endif ?>
<? endif ?> <? endif ?>
<? if (Config::get()->OERCAMPUS_ENABLED && $GLOBALS['perm']->have_perm(Config::get()->OERCAMPUS_PUBLIC_STATUS)) : ?> <? if (Config::get()->OERCAMPUS_ENABLED && $GLOBALS['perm']->have_perm(Config::get()->OERCAMPUS_PUBLIC_STATUS)) : ?>
<a href="<?= $controller->link_for('oer/addfile/choose_file', array_merge($options, ['from_plugin' => ""])) ?>" <a href="<?= $controller->link_for('oer/addfile/choose_file', array_merge($options, ['from_plugin' => ""])) ?>"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment