mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2022-03-04
This commit is contained in:
@ -36,7 +36,7 @@ I sent Atmire the dspace.log from today and told them to log into the server to
|
||||
In other news, I checked the statistics API on DSpace 6 and it’s working
|
||||
I tried to build the OAI registry on the freshly migrated DSpace 6 on DSpace Test and I get an error:
|
||||
"/>
|
||||
<meta name="generator" content="Hugo 0.92.2" />
|
||||
<meta name="generator" content="Hugo 0.93.1" />
|
||||
|
||||
|
||||
|
||||
@ -161,8 +161,8 @@ java.lang.NullPointerException
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code>$ curl http://localhost:8080/solr/oai/update -H "Content-type: text/xml" --data-binary '<delete><query>*:*</query></delete>'
|
||||
$ curl http://localhost:8080/solr/oai/update -H "Content-type: text/xml" --data-binary '<commit />'
|
||||
<pre tabindex="0"><code>$ curl http://localhost:8080/solr/oai/update -H "Content-type: text/xml" --data-binary '<delete><query>*:*</query></delete>'
|
||||
$ curl http://localhost:8080/solr/oai/update -H "Content-type: text/xml" --data-binary '<commit />'
|
||||
$ ~/dspace63/bin/dspace oai import
|
||||
OAI 2.0 manager action started
|
||||
...
|
||||
@ -279,7 +279,7 @@ sys 3m13.929s
|
||||
<li>In theory we can have different languages for metadata fields but in practice we don’t do that, so we might as well normalize everything to “en_US” (and perhaps I should make a curation task to do this)</li>
|
||||
<li>For now I will do it manually on CGSpace and DSpace Test:</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code>dspace=# UPDATE metadatavalue SET text_lang='en_US' WHERE resource_type_id=2;
|
||||
<pre tabindex="0"><code>dspace=# UPDATE metadatavalue SET text_lang='en_US' WHERE resource_type_id=2;
|
||||
UPDATE 2414738
|
||||
</code></pre><ul>
|
||||
<li>Note: DSpace Test doesn’t have the <code>resource_type_id</code> column because it’s running DSpace 6 and <a href="https://wiki.lyrasis.org/display/DSPACE/DSpace+Service+based+api">the schema changed to use an object model there</a>
|
||||
@ -288,7 +288,7 @@ UPDATE 2414738
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code>dspace=# UPDATE metadatavalue SET text_lang='en_US' WHERE dspace_object_id IN (SELECT uuid FROM item);
|
||||
<pre tabindex="0"><code>dspace=# UPDATE metadatavalue SET text_lang='en_US' WHERE dspace_object_id IN (SELECT uuid FROM item);
|
||||
</code></pre><ul>
|
||||
<li>Peter asked if it was possible to find all ILRI items that have “zoonoses” or “zoonotic” in their titles and check if they have the ILRI subject “ZOONOTIC DISEASES” (and add it if not)
|
||||
<ul>
|
||||
@ -320,7 +320,7 @@ UPDATE 2414738
|
||||
</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code>$ dspace metadata-export -i 10568/1 -f /tmp/2020-06-08-ILRI.csv
|
||||
$ csvcut -c 'id,cg.subject.ilri[en_US],dc.title[en_US]' ~/Downloads/2020-06-08-ILRI.csv > /tmp/ilri.csv
|
||||
$ csvcut -c 'id,cg.subject.ilri[en_US],dc.title[en_US]' ~/Downloads/2020-06-08-ILRI.csv > /tmp/ilri.csv
|
||||
</code></pre><ul>
|
||||
<li>Moayad asked why he’s getting HTTP 500 errors on CGSpace
|
||||
<ul>
|
||||
@ -329,7 +329,7 @@ $ csvcut -c 'id,cg.subject.ilri[en_US],dc.title[en_US]' ~/Downloads/2020-06-08-I
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code># journalctl --since=today -u tomcat7 | grep -c 'Internal Server Error'
|
||||
<pre tabindex="0"><code># journalctl --since=today -u tomcat7 | grep -c 'Internal Server Error'
|
||||
482
|
||||
</code></pre><ul>
|
||||
<li>They are all related to the REST API, like:</li>
|
||||
@ -366,12 +366,12 @@ Jun 06 08:19:54 linode18 tomcat7[6286]: at java.lang.reflect.Method.invo
|
||||
</code></pre><ul>
|
||||
<li>Looking back, I see ~800 of these errors since I changed the database configuration last week:</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code># journalctl --since=2020-06-04 --until=today -u tomcat7 | grep -c 'javax.ws.rs.WebApplicationException'
|
||||
<pre tabindex="0"><code># journalctl --since=2020-06-04 --until=today -u tomcat7 | grep -c 'javax.ws.rs.WebApplicationException'
|
||||
795
|
||||
</code></pre><ul>
|
||||
<li>And only ~280 in the entire month before that…</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code># journalctl --since=2020-05-01 --until=2020-06-04 -u tomcat7 | grep -c 'javax.ws.rs.WebApplicationException'
|
||||
<pre tabindex="0"><code># journalctl --since=2020-05-01 --until=2020-06-04 -u tomcat7 | grep -c 'javax.ws.rs.WebApplicationException'
|
||||
286
|
||||
</code></pre><ul>
|
||||
<li>So it seems to be related to the database, perhaps that there are less connections in the pool?
|
||||
@ -394,7 +394,7 @@ Jun 06 08:19:54 linode18 tomcat7[6286]: at java.lang.reflect.Method.invo
|
||||
</code></pre><ul>
|
||||
<li>Looking at the nginx access logs I see that, other than something that seems like Google Feedburner, all hosts using this user agent are all in Sweden!</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code># zcat --force /var/log/nginx/access.log /var/log/nginx/access.log.1 /var/log/nginx/access.log.*.gz | grep 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36' | grep -v '/feed' | awk '{print $1}' | sort | uniq -c | sort -n
|
||||
<pre tabindex="0"><code># zcat --force /var/log/nginx/access.log /var/log/nginx/access.log.1 /var/log/nginx/access.log.*.gz | grep 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36' | grep -v '/feed' | awk '{print $1}' | sort | uniq -c | sort -n
|
||||
1624 192.36.136.246
|
||||
1627 192.36.241.95
|
||||
1629 192.165.45.204
|
||||
@ -480,7 +480,7 @@ Total number of bot hits purged: 29025
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code>172.104.229.92 - - [13/Jun/2020:02:00:00 +0200] "GET /rest/items?expand=metadata,bitstreams,parentCommunityList&limit=50&offset=0 HTTP/1.1" 403 260 "-" "-"
|
||||
<pre tabindex="0"><code>172.104.229.92 - - [13/Jun/2020:02:00:00 +0200] "GET /rest/items?expand=metadata,bitstreams,parentCommunityList&limit=50&offset=0 HTTP/1.1" 403 260 "-" "-"
|
||||
</code></pre><ul>
|
||||
<li>I created an nginx map based on the host’s IP address that sets a temporary user agent (ua) and then changed the conditional in the REST API location block so that it checks this mapped ua instead of the default one
|
||||
<ul>
|
||||
@ -497,11 +497,11 @@ Total number of bot hits purged: 29025
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code>$ curl -s 'https://cgspace.cgiar.org/rest/handle/10568/51671?expand=collections' 'https://cgspace.cgiar.org/rest/handle/10568/89346?expand=collections' | grep -oE '10568/[0-9]+' | sort | uniq > /tmp/cip-collections.txt
|
||||
<pre tabindex="0"><code>$ curl -s 'https://cgspace.cgiar.org/rest/handle/10568/51671?expand=collections' 'https://cgspace.cgiar.org/rest/handle/10568/89346?expand=collections' | grep -oE '10568/[0-9]+' | sort | uniq > /tmp/cip-collections.txt
|
||||
</code></pre><ul>
|
||||
<li>Then I formatted it into a SQL query and exported a CSV:</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code>dspace=# \COPY (SELECT DISTINCT text_value AS author, COUNT(*) FROM metadatavalue WHERE metadata_field_id = (SELECT metadata_field_id FROM metadatafieldregistry WHERE element = 'contributor' AND qualifier = 'author') AND resource_type_id = 2 AND resource_id IN (SELECT item_id FROM collection2item WHERE collection_id IN (SELECT resource_id FROM hANDle WHERE hANDle IN ('10568/100533', '10568/100653', '10568/101955', '10568/106580', '10568/108469', '10568/51671', '10568/53085', '10568/53086', '10568/53087', '10568/53088', '10568/53089', '10568/53090', '10568/53091', '10568/53092', '10568/53093', '10568/53094', '10568/64874', '10568/69069', '10568/70150', '10568/88229', '10568/89346', '10568/89347', '10568/99301', '10568/99302', '10568/99303', '10568/99304', '10568/99428'))) GROUP BY text_value ORDER BY count DESC) TO /tmp/cip-authors.csv WITH CSV;
|
||||
<pre tabindex="0"><code>dspace=# \COPY (SELECT DISTINCT text_value AS author, COUNT(*) FROM metadatavalue WHERE metadata_field_id = (SELECT metadata_field_id FROM metadatafieldregistry WHERE element = 'contributor' AND qualifier = 'author') AND resource_type_id = 2 AND resource_id IN (SELECT item_id FROM collection2item WHERE collection_id IN (SELECT resource_id FROM hANDle WHERE hANDle IN ('10568/100533', '10568/100653', '10568/101955', '10568/106580', '10568/108469', '10568/51671', '10568/53085', '10568/53086', '10568/53087', '10568/53088', '10568/53089', '10568/53090', '10568/53091', '10568/53092', '10568/53093', '10568/53094', '10568/64874', '10568/69069', '10568/70150', '10568/88229', '10568/89346', '10568/89347', '10568/99301', '10568/99302', '10568/99303', '10568/99304', '10568/99428'))) GROUP BY text_value ORDER BY count DESC) TO /tmp/cip-authors.csv WITH CSV;
|
||||
COPY 3917
|
||||
</code></pre><h2 id="2020-06-15">2020-06-15</h2>
|
||||
<ul>
|
||||
@ -632,7 +632,7 @@ COPY 3917
|
||||
</li>
|
||||
<li>I also notice that there is a <a href="https://www.crossref.org/services/funder-registry/">CrossRef funders registry</a> with 23,000+ funders that you can <a href="https://gitlab.com/crossref/open_funder_registry">download as RDF</a> or <a href="https://www.crossref.org/education/funder-registry/accessing-the-funder-registry/">access via an API</a></li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code>$ http 'https://api.crossref.org/funders?query=Bill+and+Melinda+Gates&mailto=a.orth@cgiar.org'
|
||||
<pre tabindex="0"><code>$ http 'https://api.crossref.org/funders?query=Bill+and+Melinda+Gates&mailto=a.orth@cgiar.org'
|
||||
</code></pre><ul>
|
||||
<li>Searching for “Bill and Melinda Gates” we can see the <code>name</code> literal and a list of <code>alt-names</code> literals
|
||||
<ul>
|
||||
@ -697,14 +697,14 @@ SUSTAIN
|
||||
AGRICULTURAL INNOVATIONS
|
||||
NATIVE VARIETIES
|
||||
PHYTOPHTHORA INFESTANS
|
||||
$ ./delete-metadata-values.py -i /tmp/2020-06-30-remove-cip-subjects.csv -db dspace -u dspace -p 'fuuu' -f cg.subject.cip -m 127 -d
|
||||
$ ./delete-metadata-values.py -i /tmp/2020-06-30-remove-cip-subjects.csv -db dspace -u dspace -p 'fuuu' -f cg.subject.cip -m 127 -d
|
||||
</code></pre><ul>
|
||||
<li>She also wants to change their <code>SWEET POTATOES</code> term to <code>SWEETPOTATOES</code>, both in the CIP subject list and existing items so I updated those too:</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code>$ cat /tmp/2020-06-30-fix-cip-subjects.csv
|
||||
cg.subject.cip,correct
|
||||
SWEET POTATOES,SWEETPOTATOES
|
||||
$ ./fix-metadata-values.py -i /tmp/2020-06-30-fix-cip-subjects.csv -db dspace -u dspace -p 'fuuu' -f cg.subject.cip -t correct -m 127 -d
|
||||
$ ./fix-metadata-values.py -i /tmp/2020-06-30-fix-cip-subjects.csv -db dspace -u dspace -p 'fuuu' -f cg.subject.cip -t correct -m 127 -d
|
||||
</code></pre><ul>
|
||||
<li>She also finished doing all the corrections to authors that I had sent her last week, but many of the changes are removing Spanish accents from authors names so I asked if she’s really should she wants to do that</li>
|
||||
<li>I ran the fixes and deletes on CGSpace, but not on DSpace Test yet because those scripts need updating for DSpace 6 UUIDs</li>
|
||||
@ -712,63 +712,63 @@ $ ./fix-metadata-values.py -i /tmp/2020-06-30-fix-cip-subjects.csv -db dspace -u
|
||||
</ul>
|
||||
<pre tabindex="0"><code>$ cat 2020-06-29-fix-sponsors.csv
|
||||
dc.description.sponsorship,correct
|
||||
"Conselho Nacional de Desenvolvimento Científico e Tecnológico, Brazil","Conselho Nacional de Desenvolvimento Científico e Tecnológico"
|
||||
"Claussen Simon Stiftung","Claussen-Simon-Stiftung"
|
||||
"Fonds pour la formation á la Recherche dans l'Industrie et dans l'Agriculture, Belgium","Fonds pour la Formation à la Recherche dans l’Industrie et dans l’Agriculture"
|
||||
"Fundação de Amparo à Pesquisa do Estado de São Paulo, Brazil","Fundação de Amparo à Pesquisa do Estado de São Paulo"
|
||||
"Schlumberger Foundation Faculty for the Future","Schlumberger Foundation"
|
||||
"Wildlife Conservation Society, United States","Wildlife Conservation Society"
|
||||
"Portuguese Foundation for Science and Technology","Portuguese Science and Technology Foundation"
|
||||
"Wageningen University and Research","Wageningen University and Research Centre"
|
||||
"Leverhulme Centre for Integrative Research in Agriculture and Health","Leverhulme Centre for Integrative Research on Agriculture and Health"
|
||||
"Natural Science and Engineering Research Council of Canada","Natural Sciences and Engineering Research Council of Canada"
|
||||
"Biotechnology and Biological Sciences Research Council, United Kingdom","Biotechnology and Biological Sciences Research Council"
|
||||
"Home Grown Ceraels Authority United Kingdom","Home-Grown Cereals Authority"
|
||||
"Fiat Panis Foundation","Foundation fiat panis"
|
||||
"Defence Science and Technology Laboratory, United Kingdom","Defence Science and Technology Laboratory"
|
||||
"African Development Bank","African Development Bank Group"
|
||||
"Ministry of Health, Labour, and Welfare, Japan","Ministry of Health, Labour and Welfare"
|
||||
"World Academy of Sciences","The World Academy of Sciences"
|
||||
"Agricultural Research Council, South Africa","Agricultural Research Council"
|
||||
"Department of Homeland Security, USA","U.S. Department of Homeland Security"
|
||||
"Quadram Institute","Quadram Institute Bioscience"
|
||||
"Google.org","Google"
|
||||
"Department for Environment, Food and Rural Affairs, United Kingdom","Department for Environment, Food and Rural Affairs, UK Government"
|
||||
"National Commission for Science, Technology and Innovation, Kenya","National Commission for Science, Technology and Innovation"
|
||||
"Hainan Province Natural Science Foundation of China","Natural Science Foundation of Hainan Province"
|
||||
"German Society for International Cooperation (GIZ)","GIZ"
|
||||
"German Federal Ministry of Food and Agriculture","Federal Ministry of Food and Agriculture"
|
||||
"State Key Laboratory of Environmental Geochemistry, China","State Key Laboratory of Environmental Geochemistry"
|
||||
"QUT student scholarship","Queensland University of Technology"
|
||||
"Australia Centre for International Agricultural Research","Australian Centre for International Agricultural Research"
|
||||
"Belgian Science Policy","Belgian Federal Science Policy Office"
|
||||
"U.S. Department of Agriculture USDA","U.S. Department of Agriculture"
|
||||
"U.S.. Department of Agriculture (USDA)","U.S. Department of Agriculture"
|
||||
"Fundação de Amparo à Pesquisa do Estado de São Paulo ( FAPESP)","Fundação de Amparo à Pesquisa do Estado de São Paulo"
|
||||
"Fundação de Amparo à Pesquisa do Estado do Rio Grande do Sul, Brazil","Fundação de Amparo à Pesquisa do Estado do Rio Grande do Sul"
|
||||
"Fundação de Amparo à Pesquisa do Estado do Rio de Janeiro, Brazil","Fundação Carlos Chagas Filho de Amparo à Pesquisa do Estado do Rio de Janeiro"
|
||||
"Swedish University of Agricultural Sciences (SLU)","Swedish University of Agricultural Sciences"
|
||||
"U.S. Department of Agriculture (USDA)","U.S. Department of Agriculture"
|
||||
"Swedish International Development Cooperation Agency (Sida)","Sida"
|
||||
"Swedish International Development Agency","Sida"
|
||||
"Federal Ministry for Economic Cooperation and Development, Germany","Federal Ministry for Economic Cooperation and Development"
|
||||
"Natural Environment Research Council, United Kingdom","Natural Environment Research Council"
|
||||
"Economic and Social Research Council, United Kingdom","Economic and Social Research Council"
|
||||
"Medical Research Council, United Kingdom","Medical Research Council"
|
||||
"Federal Ministry for Education and Research, Germany","Federal Ministry for Education, Science, Research and Technology"
|
||||
"UK Government’s Department for International Development","Department for International Development, UK Government"
|
||||
"Department for International Development, United Kingdom","Department for International Development, UK Government"
|
||||
"United Nations Children's Fund","United Nations Children's Emergency Fund"
|
||||
"Swedish Research Council for Environment, Agricultural Science and Spatial Planning","Swedish Research Council for Environment, Agricultural Sciences and Spatial Planning"
|
||||
"Agence Nationale de la Recherche, France","French National Research Agency"
|
||||
"Fondation pour la recherche sur la biodiversité","Foundation for Research on Biodiversity"
|
||||
"Programa Nacional de Innovacion Agraria, Peru","Programa Nacional de Innovación Agraria, Peru"
|
||||
"United States Agency for International Development (USAID)","United States Agency for International Development"
|
||||
"West Africa Agricultural Productivity Programme","West Africa Agricultural Productivity Program"
|
||||
"West African Agricultural Productivity Project","West Africa Agricultural Productivity Program"
|
||||
"Rural Development Administration, Republic of Korea","Rural Development Administration"
|
||||
"UK’s Biotechnology and Biological Sciences Research Council (BBSRC)","Biotechnology and Biological Sciences Research Council"
|
||||
$ ./fix-metadata-values.py -i /tmp/2020-06-29-fix-sponsors.csv -db dspace -u dspace -p 'fuuu' -f dc.description.sponsorship -t correct -m 29
|
||||
"Conselho Nacional de Desenvolvimento Científico e Tecnológico, Brazil","Conselho Nacional de Desenvolvimento Científico e Tecnológico"
|
||||
"Claussen Simon Stiftung","Claussen-Simon-Stiftung"
|
||||
"Fonds pour la formation á la Recherche dans l'Industrie et dans l'Agriculture, Belgium","Fonds pour la Formation à la Recherche dans l’Industrie et dans l’Agriculture"
|
||||
"Fundação de Amparo à Pesquisa do Estado de São Paulo, Brazil","Fundação de Amparo à Pesquisa do Estado de São Paulo"
|
||||
"Schlumberger Foundation Faculty for the Future","Schlumberger Foundation"
|
||||
"Wildlife Conservation Society, United States","Wildlife Conservation Society"
|
||||
"Portuguese Foundation for Science and Technology","Portuguese Science and Technology Foundation"
|
||||
"Wageningen University and Research","Wageningen University and Research Centre"
|
||||
"Leverhulme Centre for Integrative Research in Agriculture and Health","Leverhulme Centre for Integrative Research on Agriculture and Health"
|
||||
"Natural Science and Engineering Research Council of Canada","Natural Sciences and Engineering Research Council of Canada"
|
||||
"Biotechnology and Biological Sciences Research Council, United Kingdom","Biotechnology and Biological Sciences Research Council"
|
||||
"Home Grown Ceraels Authority United Kingdom","Home-Grown Cereals Authority"
|
||||
"Fiat Panis Foundation","Foundation fiat panis"
|
||||
"Defence Science and Technology Laboratory, United Kingdom","Defence Science and Technology Laboratory"
|
||||
"African Development Bank","African Development Bank Group"
|
||||
"Ministry of Health, Labour, and Welfare, Japan","Ministry of Health, Labour and Welfare"
|
||||
"World Academy of Sciences","The World Academy of Sciences"
|
||||
"Agricultural Research Council, South Africa","Agricultural Research Council"
|
||||
"Department of Homeland Security, USA","U.S. Department of Homeland Security"
|
||||
"Quadram Institute","Quadram Institute Bioscience"
|
||||
"Google.org","Google"
|
||||
"Department for Environment, Food and Rural Affairs, United Kingdom","Department for Environment, Food and Rural Affairs, UK Government"
|
||||
"National Commission for Science, Technology and Innovation, Kenya","National Commission for Science, Technology and Innovation"
|
||||
"Hainan Province Natural Science Foundation of China","Natural Science Foundation of Hainan Province"
|
||||
"German Society for International Cooperation (GIZ)","GIZ"
|
||||
"German Federal Ministry of Food and Agriculture","Federal Ministry of Food and Agriculture"
|
||||
"State Key Laboratory of Environmental Geochemistry, China","State Key Laboratory of Environmental Geochemistry"
|
||||
"QUT student scholarship","Queensland University of Technology"
|
||||
"Australia Centre for International Agricultural Research","Australian Centre for International Agricultural Research"
|
||||
"Belgian Science Policy","Belgian Federal Science Policy Office"
|
||||
"U.S. Department of Agriculture USDA","U.S. Department of Agriculture"
|
||||
"U.S.. Department of Agriculture (USDA)","U.S. Department of Agriculture"
|
||||
"Fundação de Amparo à Pesquisa do Estado de São Paulo ( FAPESP)","Fundação de Amparo à Pesquisa do Estado de São Paulo"
|
||||
"Fundação de Amparo à Pesquisa do Estado do Rio Grande do Sul, Brazil","Fundação de Amparo à Pesquisa do Estado do Rio Grande do Sul"
|
||||
"Fundação de Amparo à Pesquisa do Estado do Rio de Janeiro, Brazil","Fundação Carlos Chagas Filho de Amparo à Pesquisa do Estado do Rio de Janeiro"
|
||||
"Swedish University of Agricultural Sciences (SLU)","Swedish University of Agricultural Sciences"
|
||||
"U.S. Department of Agriculture (USDA)","U.S. Department of Agriculture"
|
||||
"Swedish International Development Cooperation Agency (Sida)","Sida"
|
||||
"Swedish International Development Agency","Sida"
|
||||
"Federal Ministry for Economic Cooperation and Development, Germany","Federal Ministry for Economic Cooperation and Development"
|
||||
"Natural Environment Research Council, United Kingdom","Natural Environment Research Council"
|
||||
"Economic and Social Research Council, United Kingdom","Economic and Social Research Council"
|
||||
"Medical Research Council, United Kingdom","Medical Research Council"
|
||||
"Federal Ministry for Education and Research, Germany","Federal Ministry for Education, Science, Research and Technology"
|
||||
"UK Government’s Department for International Development","Department for International Development, UK Government"
|
||||
"Department for International Development, United Kingdom","Department for International Development, UK Government"
|
||||
"United Nations Children's Fund","United Nations Children's Emergency Fund"
|
||||
"Swedish Research Council for Environment, Agricultural Science and Spatial Planning","Swedish Research Council for Environment, Agricultural Sciences and Spatial Planning"
|
||||
"Agence Nationale de la Recherche, France","French National Research Agency"
|
||||
"Fondation pour la recherche sur la biodiversité","Foundation for Research on Biodiversity"
|
||||
"Programa Nacional de Innovacion Agraria, Peru","Programa Nacional de Innovación Agraria, Peru"
|
||||
"United States Agency for International Development (USAID)","United States Agency for International Development"
|
||||
"West Africa Agricultural Productivity Programme","West Africa Agricultural Productivity Program"
|
||||
"West African Agricultural Productivity Project","West Africa Agricultural Productivity Program"
|
||||
"Rural Development Administration, Republic of Korea","Rural Development Administration"
|
||||
"UK’s Biotechnology and Biological Sciences Research Council (BBSRC)","Biotechnology and Biological Sciences Research Council"
|
||||
$ ./fix-metadata-values.py -i /tmp/2020-06-29-fix-sponsors.csv -db dspace -u dspace -p 'fuuu' -f dc.description.sponsorship -t correct -m 29
|
||||
</code></pre><ul>
|
||||
<li>Then I started a full re-index at batch CPU priority:</li>
|
||||
</ul>
|
||||
@ -784,9 +784,9 @@ sys 2m56.635s
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code>$ export JAVA_OPTS="-Xmx512m -Dfile.encoding=UTF-8"
|
||||
<pre tabindex="0"><code>$ export JAVA_OPTS="-Xmx512m -Dfile.encoding=UTF-8"
|
||||
$ dspace metadata-export -i 10568/1 -f /tmp/ilri.cs
|
||||
$ csvcut -c 'id,cg.subject.ilri[],cg.subject.ilri[en_US],dc.subject[en_US]' /tmp/ilri.csv > /tmp/ilri-covid19.csv
|
||||
$ csvcut -c 'id,cg.subject.ilri[],cg.subject.ilri[en_US],dc.subject[en_US]' /tmp/ilri.csv > /tmp/ilri-covid19.csv
|
||||
</code></pre><ul>
|
||||
<li>I see that all items with “COVID19” already have “CORONAVIRUS DISEASE” so I don’t need to do anything</li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user