Commit 0a5a0b1b119ccd733b853f29d21145c7147f63a4

Authored by Paulo Graça
1 parent 9733122eda
Exists in master

PG: change examples text

Showing 2 changed files with 26 additions and 26 deletions   Show diff stats
Readme.md
... ... @@ -8,15 +8,15 @@ Something like this:
8 8 ```
9 9 | ORCID | Name | ResearcherID | Scoups author ID |
10 10 | ------------------- | --------------------- | ------------- | ------------------------ |
11   -| 0000-0001-5000-0736 | Martim Chichorro | J-3782-2013 | 11540746200 |
12   -| 0000-0001-5000-8754 | Paulo Nossa | | 23490244800 |
13   -| 0000-0001-5003-7264 | Mafalda Guimarães | | |
14   -| 0000-0001-5004-6101 | Maria Luisa Morgado | | 55916371200||55955252400 |
15   -| 0000-0001-5004-7518 | William Martinez | | |
16   -| 0000-0001-5005-120X | João Lopes | | 23019476500 |
17   -| 0000-0001-5005-2405 | Emanuel Gamelas | | |
18   -| 0000-0001-5005-3598 | Sergio Miguel Leandro | M-4254-2013 | 6603233719 |
19   -| 0000-0001-5006-3008 | Carla Oliveira | | 55972889000 |
  11 +| 0000-0001-5006-0738 | Martim | J-3442-2183 | 11540149010 |
  12 +| 0000-0001-5005-8758 | Paulo | | 27412014820 |
  13 +| 0000-0001-5005-7265 | Mafalda | | |
  14 +| 0000-0001-5005-610X | Maria | | 55966341300||51951231450 |
  15 +| 0000-0001-5004-8517 | William | | |
  16 +| 0000-0001-5005-1201 | João | | 21019375500 |
  17 +| 0000-0001-5005-2404 | Emanuel | | |
  18 +| 0000-0001-5005-3594 | Sergio | M-2054-4313 | 6288906719 |
  19 +| 0000-0001-5006-3006 | Carla | | 55970003233 |
20 20 ```
21 21  
22 22 ## Instalation
... ... @@ -38,15 +38,15 @@ bash get_orcid_data.sh --file /path/to/orcid_list.txt >> /path/to/output_data.cs
38 38  
39 39 output_data.csv result:
40 40 ```
41   -"0000-0001-5000-0736","Martim Chichorro","J-3782-2013","11540746200"
42   -"0000-0001-5000-8754","Paulo Nossa","","23490244800"
43   -"0000-0001-5003-7264","Mafalda Guimarães","",""
44   -"0000-0001-5004-6101","Maria Luisa Morgado","","55916371200||55955252400"
45   -"0000-0001-5004-7518","William Martinez","",""
46   -"0000-0001-5005-120X","João Lopes","","23019476500"
47   -"0000-0001-5005-2405","Emanuel Gamelas","",""
48   -"0000-0001-5005-3598","Sergio Miguel Leandro","M-4254-2013","6603233719"
49   -"0000-0001-5006-3008","Carla Oliveira","","55972889000"
  41 +"0000-0001-5006-0738","Martim","J-3442-2183","11540149010"
  42 +"0000-0001-5005-8758","Paulo","",27412014820"
  43 +"0000-0001-5005-7265","Mafalda","",""
  44 +"0000-0001-5005-610X","Maria","",55966341300||51951231450"
  45 +"0000-0001-5004-8517","William","",""
  46 +"0000-0001-5005-1201","João","","21019375500"
  47 +"0000-0001-5005-2404","Emanuel","",""
  48 +"0000-0001-5005-3594","Sergio","M-2054-4313","6288906719"
  49 +"0000-0001-5006-3006","Carla","","55970003233"
50 50 ```
51 51  
52 52 ## Other uses
... ...
get_orcid_data.sh
... ... @@ -30,16 +30,16 @@ Examples:
30 30 1. Download an orcid and process it.
31 31  
32 32 $(basename $0) --file /path/to/file.txt
33   - OrcID=0000-0002-9081-2728
34   - Name=Joao Mendes Moreira
35   - ResearcherID=L-3960-2013
  33 + OrcID=0000-0002-1001-100X
  34 + Name=Joao
  35 + ResearcherID=L-1000-2000
36 36  
37 37 2. Orcid by argument.
38 38  
39   - $(basename $0) --orcid "0000-0002-9081-2728"
40   - OrcID=0000-0002-9081-2728
41   - Name=Joao Mendes Moreira
42   - ResearcherID=L-3960-2013
  39 + $(basename $0) --orcid "0000-0002-1001-100X"
  40 + OrcID=0000-0002-1001-100X
  41 + Name=Joao
  42 + ResearcherID=L-1000-2000
43 43  
44 44 EOF
45 45 }
... ... @@ -96,7 +96,7 @@ function download_orcid {
96 96  
97 97 echo $1
98 98  
99   -if [ -z "$source" ]; then
  99 +if [ "$NO_PROCESS" ] && [ -z "$source" ]; then
100 100 echo "--inputfile or --orcid is required."
101 101 usage
102 102 exit 0
... ...