Mengatasi Error DOI The value of element surname is not valid
Posted: 29 Oct 2021, 07:02
Mengatasi Error DOI ketika submit XML di Crossreff dengan error seperti ini : The value '' of element 'surname' is not valid
Penyebabnya adalah kita tidak memasukkan nama family name untuk masing-masing author / penulis bahkan jika penulisnya hanya 1 kata saja, tetap harus dimasukkan. Solusinya ada 2 :
menjadi
Kemudian save
Contoh Kode Error Crossref :
Penyebabnya adalah kita tidak memasukkan nama family name untuk masing-masing author / penulis bahkan jika penulisnya hanya 1 kata saja, tetap harus dimasukkan. Solusinya ada 2 :
- 1. Memasukan surname / family name / nama belakang ke masing2 author
- 2. mengganti kode pada file di folder OJS berikut pada baris kode 122 plugins/importexport/crossref/filter/ArticleCrossrefXmlFilter.inc.php
Code: Select all
if (isset($familyNames[$locale]) && isset($givenNames[$locale])) {
Code: Select all
if (!empty($familyNames[$locale]) && !empty($givenNames[$locale])) {
Contoh Kode Error Crossref :
Code: Select all
<msg>Error: cvc-pattern-valid: Value '' is not facet-valid with respect to pattern '[^\d\?]*[^\?\s]+[^\d]*' for type '#AnonType_surname'.
Error: cvc-type.3.1.3: The value '' of element 'surname' is not valid.
Error: cvc-pattern-valid: Value '' is not facet-valid with respect to pattern '[^\d\?]*[^\?\s]+[^\d]*' for type '#AnonType_surname'.
Error: cvc-type.3.1.3: The value '' of element 'surname' is not valid.
Error: cvc-pattern-valid: Value '' is not facet-valid with respect to pattern '[^\d\?]*[^\?\s]+[^\d]*' for type '#AnonType_surname'.
Error: cvc-type.3.1.3: The value '' of element 'surname' is not valid.
Error: cvc-pattern-valid: Value '' is not facet-valid with respect to pattern '[^\d\?]*[^\?\s]+[^\d]*' for type '#AnonType_surname'.
Error: cvc-type.3.1.3: The value '' of element 'surname' is not valid.
Error: cvc-pattern-valid: Value '' is not facet-valid with respect to pattern '[^\d\?]*[^\?\s]+[^\d]*' for type '#AnonType_surname'.
Error: cvc-type.3.1.3: The value '' of element 'surname' is not valid.
Error: cvc-pattern-valid: Value '' is not facet-valid with respect to pattern '[^\d\?]*[^\?\s]+[^\d]*' for type '#AnonType_surname'.
Error: cvc-type.3.1.3: The value '' of element 'surname' is not valid.
Error: cvc-pattern-valid: Value '' is not facet-valid with respect to pattern '[^\d\?]*[^\?\s]+[^\d]*' for type '#AnonType_surname'.
Error: cvc-type.3.1.3: The value '' of element 'surname' is not valid.
Error: cvc-pattern-valid: Value '' is not facet-valid with respect to pattern '[^\d\?]*[^\?\s]+[^\d]*' for type '#AnonType_surname'.
Error: cvc-type.3.1.3: The value '' of element 'surname' is not valid.
Error: cvc-pattern-valid: Value '' is not facet-valid with respect to pattern '[^\d\?]*[^\?\s]+[^\d]*' for type '#AnonType_surname'.
Error: cvc-type.3.1.3: The value '' of element 'surname' is not valid.
</msg>