aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/search/courses.php
diff options
context:
space:
mode:
authorPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
committerPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
commit4459dd7917f4d1c34f40bb68f0e991e9c3d53e4c (patch)
tree5c07151ae61276d334e88f6309c30d439a85c12e /app/controllers/search/courses.php
parentda0022e5c1abbf9825ae76debaabdff7e8623bb4 (diff)
parent97a188592c679890a25c37ab78463add76a52ff7 (diff)
Merge branch 'main' into issue-3911issue-3911
Diffstat (limited to 'app/controllers/search/courses.php')
-rw-r--r--app/controllers/search/courses.php27
1 files changed, 4 insertions, 23 deletions
diff --git a/app/controllers/search/courses.php b/app/controllers/search/courses.php
index 6ae9d6a..a6a4d27 100644
--- a/app/controllers/search/courses.php
+++ b/app/controllers/search/courses.php
@@ -40,6 +40,7 @@ class Search_CoursesController extends AuthenticatedController
public function index_action()
{
$nodeClass = '';
+ $title = _('Vorlesungsverzeichnis');
if (Request::option('type', 'semtree') === 'semtree') {
Navigation::activateItem('/search/courses/semtree');
$nodeClass = StudipStudyArea::class;
@@ -52,22 +53,12 @@ class Search_CoursesController extends AuthenticatedController
$this->treeTitle = _('Einrichtungen');
$this->breadcrumbIcon = 'institute';
$this->editUrl = $this->url_for('rangetree/edit');
+ $title = _('Einrichtungsverzeichnis');
}
$this->startId = Request::option('node_id', $nodeClass . '_root');
$this->setupSidebar();
- }
-
- public function export_results_action()
- {
- $sem_browse_obj = new SemBrowse();
- $tmpfile = basename($sem_browse_obj->create_result_xls());
- if ($tmpfile) {
- $this->redirect(FileManager::getDownloadURLForTemporaryFile(
- $tmpfile, _('ErgebnisVeranstaltungssuche.xls'), 4));
- } else {
- $this->render_nothing();
- }
+ PageLayout::setTitle($title);
}
private function setupSidebar()
@@ -110,17 +101,7 @@ class Search_CoursesController extends AuthenticatedController
}
$sidebar->addWidget(new VueWidget('search-widget'));
+ $sidebar->addWidget(new VueWidget('views-widget'));
$sidebar->addWidget(new VueWidget('export-widget'));
-
- $views = new ViewsWidget();
- $views->addLink(
- _('Als Liste'),
- $this->url_for('search/courses', array_merge($params, ['show_as' => 'list']))
- )->setActive($this->show_as === 'list');
- $views->addLink(
- _('Als Tabelle'),
- $this->url_for('search/courses', array_merge($params, ['show_as' => 'table']))
- )->setActive($this->show_as === 'table');
- $sidebar->addWidget($views);
}
}