Skip to content
Snippets Groups Projects
Commit b3c78946 authored by André Lahmann's avatar André Lahmann
Browse files

refs #7693:

* fixed wrong translation strings in acquisition form and action
parent 0c5cecff
Branches
Tags
No related merge requests found
...@@ -60,8 +60,8 @@ class MyResearchController extends \VuFind\Controller\MyResearchController ...@@ -60,8 +60,8 @@ class MyResearchController extends \VuFind\Controller\MyResearchController
private function _getSubjectList() private function _getSubjectList()
{ {
if (count($this->_subjectlist) <= 0) { if (count($this->_subjectlist) <= 0) {
$this->_subjectlist = (isset($this->getConfig()->CustomSite->subject) $this->_subjectlist = (isset($this->getConfig()->CustomSite->field_of_study)
? $this->getConfig()->CustomSite->subject->toArray() : [] ? $this->getConfig()->CustomSite->field_of_study->toArray() : []
); );
} }
return $this->_subjectlist; return $this->_subjectlist;
......
...@@ -14,14 +14,13 @@ $this->layout()->breadcrumbs = '<li><a href="' . $this->url('myresearch-home') . ...@@ -14,14 +14,13 @@ $this->layout()->breadcrumbs = '<li><a href="' . $this->url('myresearch-home') .
<form class="form-horizontal" method="post" action="" name="acquisitionForm"> <form class="form-horizontal" method="post" action="" name="acquisitionForm">
<h6><?=$this->transEsc('PDA::pda_form_suggestions_limit') ?></h6> <h6><?=$this->transEsc('PDA::pda_form_suggestions_limit') ?></h6>
<div class="form-group row"> <div class="form-group row">
<label class="col-sm-3 medium-3 columns control-label" for="subject"><?=$this->transEsc('PDA::pda_form_branch_of_study_label') ?><span class="required">*</span></label> <label class="col-sm-3 medium-3 columns control-label" for="subject"><?=$this->transEsc('PDA::pda_form_field_of_study_label') ?><span class="required">*</span></label>
<div class="col-sm-9 medium-9 columns"> <div class="col-sm-9 medium-9 columns">
<select name="subject" class="form-control auto"> <select name="subject" class="form-control auto">
<option value="-1"><?=$this->transEsc('PDA::pda_form_subject_text') ?></option> <option value="-1"><?=$this->transEsc('PDA::pda_form_field_of_study_text') ?></option>
<? if (isset($subjectlist) && is_array($subjectlist)): ?> <? if (isset($subjectlist) && is_array($subjectlist)): ?>
<? foreach ($subjectlist as $value): ?> <? foreach ($subjectlist as $value): ?>
<option <option value="<?=$this->transEsc("PDA::fos_" . $value)?>" <? if (isset($values['subject']) && ($values['subject'] != '-1') && ($values['subject'] == $value)): ?> selected="selected"<? endif; ?>><?= $this->transEsc('PDA::fos_' . $value) ?></option>
value="<?= $value ?>" <? if (isset($values['subject']) && ($values['subject'] != '-1') && ($values['subject'] == $value)): ?> selected="selected"<? endif; ?>><?= $this->transEsc('PDA::subject_' . $value) ?></option>
<? endforeach; ?> <? endforeach; ?>
<? endif; ?> <? endif; ?>
</select> </select>
......
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