- edit forms for editor and submitter: add new keywords with language

- Publish\IndexController.php: case sensitive relatedIdentifierTypes for later DOI creation
This commit is contained in:
Arno Kaimbacher 2021-06-15 14:39:37 +02:00
parent 27d95ddd70
commit 8e7960aa8e
3 changed files with 10 additions and 1 deletions

View File

@ -61,7 +61,8 @@ class IndexController extends Controller
->pluck('help_text', 'metadata_element'); ->pluck('help_text', 'metadata_element');
$projects = Project::pluck('label', 'id'); $projects = Project::pluck('label', 'id');
$relatedIdentifierTypes = ["doi", "handle", "isbn", "issn", "url", "urn"]; // $relatedIdentifierTypes = ["doi", "handle", "isbn", "issn", "url", "urn"];
$relatedIdentifierTypes = ["DOI", "Handle", "ISBN", "ISSN", "URL", "URN"];
$relatedIdentifierTypes = array_combine($relatedIdentifierTypes, $relatedIdentifierTypes); $relatedIdentifierTypes = array_combine($relatedIdentifierTypes, $relatedIdentifierTypes);
$relationTypes = ["IsSupplementTo", "IsSupplementedBy", "IsContinuedBy", "Continues", $relationTypes = ["IsSupplementTo", "IsSupplementedBy", "IsContinuedBy", "Continues",

View File

@ -538,6 +538,7 @@
<tr> <tr>
<th style="width: 20px;">Keyword</th> <th style="width: 20px;">Keyword</th>
<th>Type</th> <th>Type</th>
<th>Language</th>
<th style="width: 130px;"></th> <th style="width: 130px;"></th>
</tr> </tr>
</thead> </thead>
@ -564,6 +565,9 @@
<input v-bind:name="'subjects[' + index +'][type]'" readonly class="form-control" <input v-bind:name="'subjects[' + index +'][type]'" readonly class="form-control"
placeholder="[KEYWORD TYPE]" v-model="item.type" v-validate="'required'" /> placeholder="[KEYWORD TYPE]" v-model="item.type" v-validate="'required'" />
</td> </td>
<td>
<input v-bind:name="'subjects[' + index +'][language]'" readonly class="form-control" v-model="item.language" v-validate="'required'" />
</td>
<td> <td>
<button v-if="item.id == undefined" class="pure-button button-small is-warning" <button v-if="item.id == undefined" class="pure-button button-small is-warning"
@click.prevent="removeKeyword(index)"> @click.prevent="removeKeyword(index)">

View File

@ -534,6 +534,7 @@
<tr> <tr>
<th style="width: 20px;">Keyword</th> <th style="width: 20px;">Keyword</th>
<th>Type</th> <th>Type</th>
<th>Language</th>
<th style="width: 130px;"></th> <th style="width: 130px;"></th>
</tr> </tr>
</thead> </thead>
@ -560,6 +561,9 @@
<input v-bind:name="'subjects[' + index +'][type]'" readonly class="form-control" <input v-bind:name="'subjects[' + index +'][type]'" readonly class="form-control"
placeholder="[KEYWORD TYPE]" v-model="item.type" v-validate="'required'" /> placeholder="[KEYWORD TYPE]" v-model="item.type" v-validate="'required'" />
</td> </td>
<td>
<input v-bind:name="'subjects[' + index +'][language]'" readonly class="form-control" v-model="item.language" v-validate="'required'" />
</td>
<td> <td>
<button v-if="item.id == undefined" class="pure-button button-small is-warning" <button v-if="item.id == undefined" class="pure-button button-small is-warning"
@click.prevent="removeKeyword(index)"> @click.prevent="removeKeyword(index)">