From efa9440450106f753b7c368e878a4dcf3d569bb3 Mon Sep 17 00:00:00 2001 From: ronste Date: Thu, 19 Oct 2023 09:50:39 +0000 Subject: [PATCH 1/2] add givenName, familyName, Bio multiligual option --- convert.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/convert.php b/convert.php index 2046d2c..ebefe4e 100644 --- a/convert.php +++ b/convert.php @@ -398,9 +398,12 @@ fwrite ($xmlfile,"\t\t\t\t\t\r\n"); fwrite ($xmlfile,"\t\t\t\t\t\t\r\n"); + fwrite ($xmlfile, searchLocalisations('authorFirstname'.$i, $article, 6, 'givenname')); + if (!empty($article['authorLastname'.$i])){ fwrite ($xmlfile,"\t\t\t\t\t\t\r\n"); } + fwrite ($xmlfile, searchLocalisations('authorLastname'.$i, $article, 6, 'familyname')); if (!empty($article['authorAffiliation'.$i])){ fwrite ($xmlfile,"\t\t\t\t\t\t\r\n"); @@ -424,7 +427,8 @@ if (!empty($article['authorBio'.$i])){ fwrite ($xmlfile,"\t\t\t\t\t\t\r\n"); } - + fwrite ($xmlfile, searchLocalisations('authorBio'.$i, $article, 6, 'biography')); + fwrite ($xmlfile,"\t\t\t\t\t\r\n"); From ceae8d1aff9aa70b8af3b331e6959941621daa97 Mon Sep 17 00:00:00 2001 From: ronste Date: Thu, 19 Oct 2023 10:06:06 +0000 Subject: [PATCH 2/2] update Readme --- README.md | 84 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 44 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index 63f1f6d..18720d5 100644 --- a/README.md +++ b/README.md @@ -39,32 +39,32 @@ Only validate by adding -v: 5. The script will create one XML per year. ## Article -| Field | Description | Required| -|----------|:--------:|:--------:| -| prefix | "The", "A" | | -| title | Article title | x | -| subTitle | Article subtitle | | -| abstract| Article abstract | | -| articleSeq | Article sequence inside an issue, first article '1' | x | -| pages| For example "23-45" | | -| language| Article language "en", "fi", "sv", "de", "fr" | x | -| keywords| Word 1; Word 2; Word3 | | -| disciplines| History; Political science; Astronomy | | -| articleCopyrightYear| 2005 | | -| articleCopyrightHolder| "John Doe" | | -| articleLicenseUrl| http://creativecommons.org/licenses/by/4.0 | | -| doi| "10.1234/art.182" | | +| Field | Description | Required| Multilingual Support| +|----------|:--------:|:--------:|:--------:| +| prefix | "The", "A" | | x | | +| title | Article title | x | x | +| subTitle | Article subtitle | | x | +| abstract| Article abstract | | x | +| articleSeq | Article sequence inside an issue, first article '1' | x | | +| pages| For example "23-45" | | | +| language| Article language "en", "fi", "sv", "de", "fr" | x | | +| keywords| Word 1; Word 2; Word3 | | x | +| disciplines| History; Political science; Astronomy | | x | +| articleCopyrightYear| 2005 | | | +| articleCopyrightHolder| "John Doe" | | | +| articleLicenseUrl| http://creativecommons.org/licenses/by/4.0 | | | +| doi| "10.1234/art.182" | | | ## Issue -| Field | Description | Required| -|----------|:--------:|:--------:| -| issueDatepublished | Issue publication date, yyyy-mm-dd. Note! has to be unique for each individual issue. | x | -| issueVolume | Issue volume | | -| issueNumber | Issue number | | -| issueYear | Issue year | x | -| issueTitle | Issue title | | -| sectionTitle | Section title, eg. "Articles" | x | -| sectionAbbrev | Section abbreviation, eg. "ART" | x | +| Field | Description | Required| Multilingual Support| +|----------|:--------:|:--------:|:--------:| +| issueDatepublished | Issue publication date, yyyy-mm-dd. Note! has to be unique for each individual issue. | x | | +| issueVolume | Issue volume | | | +| issueNumber | Issue number | | | +| issueYear | Issue year | x | | +| issueTitle | Issue title | | x | +| sectionTitle | Section title, eg. "Articles" | x | x | +| sectionAbbrev | Section abbreviation, eg. "ART" | x | | ## Multiplied fields An article can have multiple authors or full text files. Every article has to have at least one author and one file. @@ -72,24 +72,24 @@ An article can have multiple authors or full text files. Every article has to ha If an article has for example three authors, the excel file should include columns for each author with the number behind the column name changing. The first name of the third author will be saved to a field called *authorFirstname3*. ### Authors -| Field | Description | Required| -|----------|:--------:|:--------:| -| authorFirstname1| Given name | x | -| authorMiddlename1| Middle name | | -| authorLastname1| Family name | | -| authorEmail1| Email | | -| authorAffiliation1| Affiliation | | -| country1| "FI", "SE", "DK", "CA", "US" | | -| orcid1| Orcid ID, should include "https://". Note that adding Orcid ID's this way is not recommended by Orcid. | | -| authorBio1| Biography | | +| Field | Description | Required| Multilingual Support| +|----------|:--------:|:--------:|:--------:| +| authorFirstname1| Given name | x | x | +| authorMiddlename1| Middle name | | | +| authorLastname1| Family name | | x | +| authorEmail1| Email | | | +| authorAffiliation1| Affiliation | | x | +| country1| "FI", "SE", "DK", "CA", "US" | | | +| orcid1| Orcid ID, should include "https://". Note that adding Orcid ID's this way is not recommended by Orcid. | | | +| authorBio1| Biography | | x | ### Files -| Field | Description | Required| -|----------|:--------:|:--------:| -| file1| Name of the file, "article1.pdf" or url for remote galley| x | -| fileLabel1| Usually "PDF"| x | -| fileGenre1| Usually "Article Text"| x | -| fileLocale1| "en", "fi" etc. | x | +| Field | Description | Required| Multilingual Support| +|----------|:--------:|:--------:|:--------:| +| file1| Name of the file, "article1.pdf" or url for remote galley| x | | +| fileLabel1| Usually "PDF"| x | x | +| fileGenre1| Usually "Article Text"| x | | +| fileLocale1| "en", "fi" etc. | x | | ## Importing multilingual data @@ -104,6 +104,10 @@ en - English sv - Swedish fr - French de - German +ru - Russian +no - Norwegian +da - Danish +es - Spanish ## Licence The conversion tool is distributed under the GNU GPL v3.