mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-12-18 19:22:18 +01:00
375 lines
16 KiB
HTML
375 lines
16 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" >
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
|
|
<meta property="og:title" content="January, 2021" />
|
|
<meta property="og:description" content="2021-01-03
|
|
|
|
Peter notified me that some filters on AReS were broken again
|
|
|
|
It’s the same issue with the field names getting .keyword appended to the end that I already filed an issue on OpenRXV about last month
|
|
I fixed the broken filters (careful to not edit any others, lest they break too!)
|
|
|
|
|
|
Fix an issue with start page number for the DSpace REST API and statistics API in OpenRXV
|
|
|
|
The start page had been “1” in the UI, but in the backend they were doing some gymnastics to adjust to the zero-based offset/limit/page of the DSpace REST API and the statistics API
|
|
I adjusted it to default to 0 and added a note to the admin screen
|
|
I realized that this issue was actually causing the first page of 100 statistics to be missing…
|
|
For example, this item has 51 views on CGSpace, but 0 on AReS
|
|
|
|
|
|
" />
|
|
<meta property="og:type" content="article" />
|
|
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/2021-01/" />
|
|
<meta property="article:published_time" content="2021-01-03T10:13:54+02:00" />
|
|
<meta property="article:modified_time" content="2021-01-05T19:56:15+02:00" />
|
|
|
|
|
|
|
|
<meta name="twitter:card" content="summary"/>
|
|
<meta name="twitter:title" content="January, 2021"/>
|
|
<meta name="twitter:description" content="2021-01-03
|
|
|
|
Peter notified me that some filters on AReS were broken again
|
|
|
|
It’s the same issue with the field names getting .keyword appended to the end that I already filed an issue on OpenRXV about last month
|
|
I fixed the broken filters (careful to not edit any others, lest they break too!)
|
|
|
|
|
|
Fix an issue with start page number for the DSpace REST API and statistics API in OpenRXV
|
|
|
|
The start page had been “1” in the UI, but in the backend they were doing some gymnastics to adjust to the zero-based offset/limit/page of the DSpace REST API and the statistics API
|
|
I adjusted it to default to 0 and added a note to the admin screen
|
|
I realized that this issue was actually causing the first page of 100 statistics to be missing…
|
|
For example, this item has 51 views on CGSpace, but 0 on AReS
|
|
|
|
|
|
"/>
|
|
<meta name="generator" content="Hugo 0.80.0" />
|
|
|
|
|
|
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "http://schema.org",
|
|
"@type": "BlogPosting",
|
|
"headline": "January, 2021",
|
|
"url": "https://alanorth.github.io/cgspace-notes/2021-01/",
|
|
"wordCount": "1025",
|
|
"datePublished": "2021-01-03T10:13:54+02:00",
|
|
"dateModified": "2021-01-05T19:56:15+02:00",
|
|
"author": {
|
|
"@type": "Person",
|
|
"name": "Alan Orth"
|
|
},
|
|
"keywords": "Notes"
|
|
}
|
|
</script>
|
|
|
|
|
|
|
|
<link rel="canonical" href="https://alanorth.github.io/cgspace-notes/2021-01/">
|
|
|
|
<title>January, 2021 | CGSpace Notes</title>
|
|
|
|
|
|
<!-- combined, minified CSS -->
|
|
|
|
<link href="https://alanorth.github.io/cgspace-notes/css/style.16633182cd803b52b9bf9e29ea1ef4b2e3d460deee0ded49466d7e16e449c158.css" rel="stylesheet" integrity="sha256-FmMxgs2AO1K5v54p6h70suPUYN7uDe1JRm1+FuRJwVg=" crossorigin="anonymous">
|
|
|
|
|
|
<!-- minified Font Awesome for SVG icons -->
|
|
|
|
<script defer src="https://alanorth.github.io/cgspace-notes/js/fontawesome.min.4ed405d7c7002b970d34cbe6026ff44a556b0808cb98a9db4008752110ed964b.js" integrity="sha256-TtQF18cAK5cNNMvmAm/0SlVrCAjLmKnbQAh1IRDtlks=" crossorigin="anonymous"></script>
|
|
|
|
<!-- RSS 2.0 feed -->
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
<div class="blog-masthead">
|
|
<div class="container">
|
|
<nav class="nav blog-nav">
|
|
<a class="nav-link " href="https://alanorth.github.io/cgspace-notes/">Home</a>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<header class="blog-header">
|
|
<div class="container">
|
|
<h1 class="blog-title" dir="auto"><a href="https://alanorth.github.io/cgspace-notes/" rel="home">CGSpace Notes</a></h1>
|
|
<p class="lead blog-description" dir="auto">Documenting day-to-day work on the <a href="https://cgspace.cgiar.org">CGSpace</a> repository.</p>
|
|
</div>
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-sm-8 blog-main">
|
|
|
|
|
|
|
|
|
|
<article class="blog-post">
|
|
<header>
|
|
<h2 class="blog-post-title" dir="auto"><a href="https://alanorth.github.io/cgspace-notes/2021-01/">January, 2021</a></h2>
|
|
<p class="blog-post-meta">
|
|
<time datetime="2021-01-03T10:13:54+02:00">Sun Jan 03, 2021</time>
|
|
in
|
|
<span class="fas fa-folder" aria-hidden="true"></span> <a href="/cgspace-notes/categories/notes/" rel="category tag">Notes</a>
|
|
|
|
|
|
</p>
|
|
</header>
|
|
<h2 id="2021-01-03">2021-01-03</h2>
|
|
<ul>
|
|
<li>Peter notified me that some filters on AReS were broken again
|
|
<ul>
|
|
<li>It’s the same issue with the field names getting <code>.keyword</code> appended to the end that I already <a href="https://github.com/ilri/OpenRXV/issues/66">filed an issue on OpenRXV about last month</a></li>
|
|
<li>I fixed the broken filters (careful to not edit any others, lest they break too!)</li>
|
|
</ul>
|
|
</li>
|
|
<li>Fix an issue with start page number for the DSpace REST API and statistics API in OpenRXV
|
|
<ul>
|
|
<li>The start page had been “1” in the UI, but in the backend they were doing some gymnastics to adjust to the zero-based offset/limit/page of the DSpace REST API and the statistics API</li>
|
|
<li>I adjusted it to default to 0 and added a note to the admin screen</li>
|
|
<li>I realized that this issue was actually causing the first page of 100 statistics to be missing…</li>
|
|
<li>For example, <a href="https://cgspace.cgiar.org/handle/10568/66839">this item</a> has 51 views on CGSpace, but 0 on AReS</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Start a re-index on AReS
|
|
<ul>
|
|
<li>First delete the old Elasticsearch temp index:</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<pre><code class="language-console" data-lang="console">$ curl -XDELETE 'http://localhost:9200/openrxv-items-temp'
|
|
# start indexing in AReS
|
|
</code></pre><ul>
|
|
<li>Then, the next morning when it’s done, check the results of the harvesting, backup the current <code>openrxv-items</code> index, and clone the <code>openrxv-items-temp</code> index to <code>openrxv-items</code>:</li>
|
|
</ul>
|
|
<pre><code class="language-console" data-lang="console">$ curl -s 'http://localhost:9200/openrxv-items-temp/_count?q=*&pretty'
|
|
{
|
|
"count" : 100278,
|
|
"_shards" : {
|
|
"total" : 1,
|
|
"successful" : 1,
|
|
"skipped" : 0,
|
|
"failed" : 0
|
|
}
|
|
}
|
|
$ curl -X PUT "localhost:9200/openrxv-items/_settings" -H 'Content-Type: application/json' -d'{"settings": {"index.blocks.write": true}}'
|
|
$ curl -s -X POST http://localhost:9200/openrxv-items/_clone/openrxv-items-2021-01-04
|
|
$ curl -XDELETE 'http://localhost:9200/openrxv-items'
|
|
$ curl -X PUT "localhost:9200/openrxv-items-temp/_settings" -H 'Content-Type: application/json' -d'{"settings": {"index.blocks.write": true}}'
|
|
$ curl -s -X POST http://localhost:9200/openrxv-items-temp/_clone/openrxv-items
|
|
$ curl -XDELETE 'http://localhost:9200/openrxv-items-temp'
|
|
$ curl -XDELETE 'http://localhost:9200/openrxv-items-2021-01-04'
|
|
</code></pre><h2 id="2021-01-04">2021-01-04</h2>
|
|
<ul>
|
|
<li>There is one item that appears twice in AReS: <a href="https://cgspace.cgiar.org/handle/10568/66839">10568/66839</a>
|
|
<ul>
|
|
<li>If I use the Handle filter I see it twice… whereas other items don’t appear twice</li>
|
|
<li>I filed a bug on OpenRXV: <a href="https://github.com/ilri/OpenRXV/issues/67">https://github.com/ilri/OpenRXV/issues/67</a></li>
|
|
</ul>
|
|
</li>
|
|
<li>Help Peter troubleshoot an issue with Altmetric badges on AReS
|
|
<ul>
|
|
<li>He generated a report of our repository from Altmetric and noticed that many were missing scores despite having scores on CGSpace item pages</li>
|
|
<li>AReS harvest Altmetric scores using the Handle prefix (10568) in batch, while CGSpace uses the DOI if it is found, and falls back to using the Handle</li>
|
|
<li>I think it’s due to the fact that some items were never tweeted, so Altmetric never made the link between the DOI and the Handle</li>
|
|
<li>I did some tweets of five items and within an hour or so the DOI API link registers the associated Handle, and within an hour or so the Handle API link is live with the same score</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h2 id="2021-01-05">2021-01-05</h2>
|
|
<ul>
|
|
<li>A user sent me <a href="https://github.com/ilri/dspace-statistics-api/issues/12">feedback about the dspace-statistics-api</a>
|
|
<ul>
|
|
<li>He noticed that the indexer fails if there are unmigrated legacy records in Solr</li>
|
|
<li>I added a UUID filter to the queries in the indexer</li>
|
|
</ul>
|
|
</li>
|
|
<li>I generated a CSV of titles and Handles for 2019 and 2020 items for Peter to Tweet
|
|
<ul>
|
|
<li>We need to make sure that Altmetric has linked them all with their DOIs</li>
|
|
<li>I wrote a quick and dirty script called <a href="https://gist.github.com/alanorth/281b7624301049e8fa91742b9b8c51b9">doi-to-handle.py</a> to read the DOIs from a text file, query the database, and save the handles and titles to a CSV</li>
|
|
</ul>
|
|
</li>
|
|
<li>Help Udana export IWMI records from AReS
|
|
<ul>
|
|
<li>He wanted me to give him CSV export permissions on CGSpace, but I told him that this requires super admin so I’m not comfortable with it</li>
|
|
</ul>
|
|
</li>
|
|
<li>Import one item to CGSpace for Peter</li>
|
|
</ul>
|
|
<h2 id="2021-01-07">2021-01-07</h2>
|
|
<ul>
|
|
<li>Import twenty CABI book chapters for Abenet</li>
|
|
<li>Udana and some editors from IWMI are still having problems editing metadata during the workflow step
|
|
<ul>
|
|
<li>It is the same issue Peter reported last month, that values he edits are not saved when the item gets archived</li>
|
|
<li>I added myself the the edit and approval steps of <a href="https://dspacetest.cgiar.org/handle/10568/81589">the collection</a> on DSpace Test and asked Udana to submit an item there for me to test</li>
|
|
</ul>
|
|
</li>
|
|
<li>Atmire got back to me about the duplicate data in Solr
|
|
<ul>
|
|
<li>They want to arrange a time for us to do the stats processing so they can monitor it</li>
|
|
<li>I proposed that I set everything up with a fresh Solr snapshot from CGSpace and then let them start the stats process</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h2 id="2021-01-10">2021-01-10</h2>
|
|
<ul>
|
|
<li>Dominique from IWMI asked about API access to the IWMI collections
|
|
<ul>
|
|
<li>A partner of theirs called AMCOW is interested in harvesting their publications</li>
|
|
<li>I told her that they can use the REST API or OAI to get them from the <a href="https://cgspace.cgiar.org/handle/10568/36185">IWMI Journal Articles collection</a>:
|
|
<ul>
|
|
<li>CGSpace REST API: <a href="https://cgspace.cgiar.org/rest/collections/c2618391-184e-4091-8a93-280fdf01238b/items">https://cgspace.cgiar.org/rest/collections/c2618391-184e-4091-8a93-280fdf01238b/items</a></li>
|
|
<li>CGSpace OAI API: <a href="https://cgspace.cgiar.org/oai/request?verb=ListRecords&metadataPrefix=oai_dc&set=col_10568_36185">https://cgspace.cgiar.org/oai/request?verb=ListRecords&metadataPrefix=oai_dc&set=col_10568_36185</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>Udana submitted an item to <a href="https://dspacetest.cgiar.org/handle/10568/81589">the collection</a> on DSpace Test that I discussed last week
|
|
<ul>
|
|
<li>I was able to take the task, add a new AGROVOC subject, approve the task, and commit it to archive</li>
|
|
<li>The final item had my new AGROVOC subject, so I don’t see the issue</li>
|
|
<li>Perhaps the issue only occurs when we replace an existing field? Or only on IWMI fields? I don’t know…</li>
|
|
<li>Also there is this warning that occurs in the DSpace log during editing (and many other operations):</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<pre><code class="language-console" data-lang="console">2021-01-10 10:03:27,692 WARN com.atmire.metadataquality.batchedit.BatchEditConsumer @ BatchEditConsumer should not have been given this kind of Subject in an event, skipping: org.dspace.event.Event(eventType=MODIFY, SubjectType=ITEM, SubjectID=1e8fb96c-b994-4fe2-8f0c-0a98ab138be0, ObjectType=(Unknown), ObjectID=null, TimeStamp=1610269383279, dispatcher=1544803905, detail=[null], transactionID="TX35636856957739531161091194485578658698")
|
|
</code></pre><ul>
|
|
<li>I filed <a href="https://tracker.atmire.com/tickets-cgiar-ilri/view-ticket?id=907">a bug on Atmire’s issue tracker</a></li>
|
|
<li>Peter asked me to move the CGIAR Gender Platform community to the top level of CGSpace, but I get an error when I use the community-filiator command:</li>
|
|
</ul>
|
|
<pre><code class="language-console" data-lang="console">$ dspace community-filiator --remove --parent=10568/66598 --child=10568/106605
|
|
Loading @mire database changes for module MQM
|
|
Changes have been processed
|
|
Exception: null
|
|
java.lang.UnsupportedOperationException
|
|
at java.util.AbstractList.remove(AbstractList.java:161)
|
|
at java.util.AbstractList$Itr.remove(AbstractList.java:374)
|
|
at java.util.AbstractCollection.remove(AbstractCollection.java:293)
|
|
at org.dspace.administer.CommunityFiliator.defiliate(CommunityFiliator.java:264)
|
|
at org.dspace.administer.CommunityFiliator.main(CommunityFiliator.java:164)
|
|
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
|
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
|
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
|
at java.lang.reflect.Method.invoke(Method.java:498)
|
|
at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
|
|
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
|
|
</code></pre><ul>
|
|
<li>There is apparently <a href="https://jira.lyrasis.org/browse/DS-3914">a bug</a> in DSpace 6.x that makes community-filiator not work
|
|
<ul>
|
|
<li>There is <a href="https://github.com/DSpace/DSpace/pull/2178">a patch</a> for the as-of-yet unreleased DSpace 6.4 so I will try that</li>
|
|
</ul>
|
|
</li>
|
|
<li>Udana had asked about exporting IWMI’s community on CGSpace, but we don’t want to give him super admin permissions to do that
|
|
<ul>
|
|
<li>I suggested that he use AReS, but there are some fields missing because we don’t harvest them all</li>
|
|
<li>I added a few more fields to the configuration and will start a fresh harvest.</li>
|
|
</ul>
|
|
</li>
|
|
<li>Start a re-index on AReS
|
|
<ul>
|
|
<li>First delete the old Elasticsearch temp index:</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<pre><code class="language-console" data-lang="console">$ curl -XDELETE 'http://localhost:9200/openrxv-items-temp'
|
|
# start indexing in AReS
|
|
</code></pre><!-- raw HTML omitted -->
|
|
|
|
|
|
|
|
|
|
|
|
</article>
|
|
|
|
|
|
|
|
</div> <!-- /.blog-main -->
|
|
|
|
<aside class="col-sm-3 ml-auto blog-sidebar">
|
|
|
|
|
|
|
|
<section class="sidebar-module">
|
|
<h4>Recent Posts</h4>
|
|
<ol class="list-unstyled">
|
|
|
|
|
|
<li><a href="/cgspace-notes/2021-01/">January, 2021</a></li>
|
|
|
|
<li><a href="/cgspace-notes/2020-12/">December, 2020</a></li>
|
|
|
|
<li><a href="/cgspace-notes/cgspace-dspace6-upgrade/">CGSpace DSpace 6 Upgrade</a></li>
|
|
|
|
<li><a href="/cgspace-notes/2020-11/">November, 2020</a></li>
|
|
|
|
<li><a href="/cgspace-notes/2020-10/">October, 2020</a></li>
|
|
|
|
</ol>
|
|
</section>
|
|
|
|
|
|
|
|
|
|
<section class="sidebar-module">
|
|
<h4>Links</h4>
|
|
<ol class="list-unstyled">
|
|
|
|
<li><a href="https://cgspace.cgiar.org">CGSpace</a></li>
|
|
|
|
<li><a href="https://dspacetest.cgiar.org">DSpace Test</a></li>
|
|
|
|
<li><a href="https://github.com/ilri/DSpace">CGSpace @ GitHub</a></li>
|
|
|
|
</ol>
|
|
</section>
|
|
|
|
</aside>
|
|
|
|
|
|
</div> <!-- /.row -->
|
|
</div> <!-- /.container -->
|
|
|
|
|
|
|
|
<footer class="blog-footer">
|
|
<p dir="auto">
|
|
|
|
Blog template created by <a href="https://twitter.com/mdo">@mdo</a>, ported to Hugo by <a href='https://twitter.com/mralanorth'>@mralanorth</a>.
|
|
|
|
</p>
|
|
<p>
|
|
<a href="#">Back to top</a>
|
|
</p>
|
|
</footer>
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|