mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes
This commit is contained in:
@ -19,7 +19,7 @@ It might be this issue: https://github.com/DSpace/dspace-angular/issues/2808
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/2024-03/" />
|
||||
<meta property="article:published_time" content="2024-03-01T09:55:00+03:00" />
|
||||
<meta property="article:modified_time" content="2024-03-11T21:58:15+03:00" />
|
||||
<meta property="article:modified_time" content="2024-03-14T09:29:05+03:00" />
|
||||
|
||||
|
||||
|
||||
@ -44,9 +44,9 @@ It might be this issue: https://github.com/DSpace/dspace-angular/issues/2808
|
||||
"@type": "BlogPosting",
|
||||
"headline": "March, 2024",
|
||||
"url": "https://alanorth.github.io/cgspace-notes/2024-03/",
|
||||
"wordCount": "627",
|
||||
"wordCount": "923",
|
||||
"datePublished": "2024-03-01T09:55:00+03:00",
|
||||
"dateModified": "2024-03-11T21:58:15+03:00",
|
||||
"dateModified": "2024-03-14T09:29:05+03:00",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Alan Orth"
|
||||
@ -236,7 +236,56 @@ It might be this issue: https://github.com/DSpace/dspace-angular/issues/2808
|
||||
</li>
|
||||
</ul>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-sql" data-lang="sql"><span style="display:flex;"><span><span style="color:#66d9ef">SELECT</span> ds6_item2itemhandle(dspace_object_id) <span style="color:#66d9ef">AS</span> handle <span style="color:#66d9ef">FROM</span> metadatavalue <span style="color:#66d9ef">WHERE</span> dspace_object_id <span style="color:#66d9ef">IN</span> (<span style="color:#66d9ef">SELECT</span> uuid <span style="color:#66d9ef">FROM</span> item <span style="color:#66d9ef">WHERE</span> <span style="color:#66d9ef">NOT</span> discoverable) <span style="color:#66d9ef">AND</span> metadata_field_id<span style="color:#f92672">=</span><span style="color:#ae81ff">28</span> <span style="color:#66d9ef">AND</span> text_value <span style="color:#66d9ef">LIKE</span> <span style="color:#e6db74">'Submitted by Alliance TIP Submit%'</span>;
|
||||
</span></span></code></pre></div><!-- raw HTML omitted -->
|
||||
</span></span></code></pre></div><h2 id="2024-03-14">2024-03-14</h2>
|
||||
<ul>
|
||||
<li>Looking in to reports of rate limiting of Altmetric’s bot on CGSpace
|
||||
<ul>
|
||||
<li>I don’t see any HTTP 429 responses for their user agents in any of our logs…</li>
|
||||
<li>I tried myself on an item page and never hit a limit…</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>$ <span style="color:#66d9ef">for</span> num in <span style="color:#f92672">{</span>1..60<span style="color:#f92672">}</span>; <span style="color:#66d9ef">do</span> echo -n <span style="color:#e6db74">"Request </span><span style="color:#e6db74">${</span>num<span style="color:#e6db74">}</span><span style="color:#e6db74">: "</span>; curl -s -o /dev/null -w <span style="color:#e6db74">"%{http_code}"</span> https://dspace7test.ilri.org/items/c9b8999d-3001-42ba-a267-14f4bfa90b53 <span style="color:#f92672">&&</span> echo; <span style="color:#66d9ef">done</span>
|
||||
</span></span><span style="display:flex;"><span>Request 1: 200
|
||||
</span></span><span style="display:flex;"><span>Request 2: 200
|
||||
</span></span><span style="display:flex;"><span>Request 3: 200
|
||||
</span></span><span style="display:flex;"><span>Request 4: 200
|
||||
</span></span><span style="display:flex;"><span>...
|
||||
</span></span><span style="display:flex;"><span>Request 60: 200
|
||||
</span></span></code></pre></div><ul>
|
||||
<li>All responses were HTTP 200…</li>
|
||||
<li>In any case, I whitelisted their production IPs and told them to try again</li>
|
||||
<li>I imported 468 of IFPRI’s 2023 records that were confirmed to not be duplicates to CGSpace
|
||||
<ul>
|
||||
<li>I also spent some time merging metadata from 415 of the remaining 432 duplicates with the metadata for the existing items on CGSpace</li>
|
||||
<li>This was a bit of dirty work using csvkit, xsv, and OpenRefine</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<h2 id="2024-03-17">2024-03-17</h2>
|
||||
<ul>
|
||||
<li>There are 17 records from IFPRI’s 2023 batch that are remaining from the 432 that I identified as already being on CGSpace
|
||||
<ul>
|
||||
<li>These are different in that they are duplicates on CGSpace as well, so the csvjoin failed and the metadata got messed up in my migration</li>
|
||||
<li>I looked closer and whittled this down to 14 actual records, and spent some time working on them</li>
|
||||
<li>I isolated 12 of these items that existed on CGSpace and added publication ranks, project identifiers, and provenance links</li>
|
||||
<li>Now there only remain two confusing records about the Inkomati catchment</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<h2 id="2024-03-18">2024-03-18</h2>
|
||||
<ul>
|
||||
<li>Checking to see how many IFPRI records we have migrated so far:</li>
|
||||
</ul>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>$ csvgrep -c <span style="color:#e6db74">'dc.description.provenance[en_US]'</span> -m <span style="color:#e6db74">'Original URL from IFPRI CONTENTdm'</span> cgspace.csv <span style="color:#ae81ff">\
|
||||
</span></span></span><span style="display:flex;"><span><span style="color:#ae81ff"></span> | csvcut -c 'id,dc.title[en_US],dc.identifier.uri[en_US],dc.description.provenance[en_US],dcterms.type[en_US]' \
|
||||
</span></span><span style="display:flex;"><span> | tee /tmp/ifpri-records.csv \
|
||||
</span></span><span style="display:flex;"><span> | csvstat --count
|
||||
</span></span><span style="display:flex;"><span>898
|
||||
</span></span></code></pre></div><ul>
|
||||
<li>I finalized the remaining two on Inkomati catchment and now we are at 900!</li>
|
||||
</ul>
|
||||
<!-- raw HTML omitted -->
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user