mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-11-24 07:30:18 +01:00
501 lines
27 KiB
HTML
501 lines
27 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="June, 2023" />
|
||
<meta property="og:description" content="2023-06-02
|
||
|
||
Spend some time testing my post_bitstreams.py script to update thumbnails for items on CGSpace
|
||
|
||
Interestingly I found an item with a JFIF thumbnail and another with a WebP thumbnail…
|
||
|
||
|
||
Meeting with Valentina, Stefano, and Sara about MODS metadata in CGSpace
|
||
|
||
They have experience with improving the MODS interface in MELSpace’s OAI-PMH for use with AGRIS and were curious if we could do the same in CGSpace
|
||
From what I can see we need to upgrade the MODS schema from 3.1 to 3.7 and then just add a bunch of our fields to the crosswalk
|
||
|
||
|
||
" />
|
||
<meta property="og:type" content="article" />
|
||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/2023-06/" />
|
||
<meta property="article:published_time" content="2023-06-02T10:29:36+03:00" />
|
||
<meta property="article:modified_time" content="2023-07-01T17:17:31+03:00" />
|
||
|
||
|
||
|
||
<meta name="twitter:card" content="summary"/>
|
||
<meta name="twitter:title" content="June, 2023"/>
|
||
<meta name="twitter:description" content="2023-06-02
|
||
|
||
Spend some time testing my post_bitstreams.py script to update thumbnails for items on CGSpace
|
||
|
||
Interestingly I found an item with a JFIF thumbnail and another with a WebP thumbnail…
|
||
|
||
|
||
Meeting with Valentina, Stefano, and Sara about MODS metadata in CGSpace
|
||
|
||
They have experience with improving the MODS interface in MELSpace’s OAI-PMH for use with AGRIS and were curious if we could do the same in CGSpace
|
||
From what I can see we need to upgrade the MODS schema from 3.1 to 3.7 and then just add a bunch of our fields to the crosswalk
|
||
|
||
|
||
"/>
|
||
<meta name="generator" content="Hugo 0.133.1">
|
||
|
||
|
||
|
||
<script type="application/ld+json">
|
||
{
|
||
"@context": "http://schema.org",
|
||
"@type": "BlogPosting",
|
||
"headline": "June, 2023",
|
||
"url": "https://alanorth.github.io/cgspace-notes/2023-06/",
|
||
"wordCount": "1877",
|
||
"datePublished": "2023-06-02T10:29:36+03:00",
|
||
"dateModified": "2023-07-01T17:17:31+03:00",
|
||
"author": {
|
||
"@type": "Person",
|
||
"name": "Alan Orth"
|
||
},
|
||
"keywords": "Notes"
|
||
}
|
||
</script>
|
||
|
||
|
||
|
||
<link rel="canonical" href="https://alanorth.github.io/cgspace-notes/2023-06/">
|
||
|
||
<title>June, 2023 | CGSpace Notes</title>
|
||
|
||
|
||
<!-- combined, minified CSS -->
|
||
|
||
<link href="https://alanorth.github.io/cgspace-notes/css/style.c6ba80bc50669557645abe05f86b73cc5af84408ed20f1551a267bc19ece8228.css" rel="stylesheet" integrity="sha256-xrqAvFBmlVdkWr4F+GtzzFr4RAjtIPFVGiZ7wZ7Ogig=" crossorigin="anonymous">
|
||
|
||
|
||
<!-- minified Font Awesome for SVG icons -->
|
||
|
||
<script defer src="https://alanorth.github.io/cgspace-notes/js/fontawesome.min.f5072c55a0721857184db93a50561d7dc13975b4de2e19db7f81eb5f3fa57270.js" integrity="sha256-9QcsVaByGFcYTbk6UFYdfcE5dbTeLhnbf4HrXz+lcnA=" 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/2023-06/">June, 2023</a></h2>
|
||
<p class="blog-post-meta">
|
||
<time datetime="2023-06-02T10:29:36+03:00">Fri Jun 02, 2023</time>
|
||
in
|
||
<span class="fas fa-folder" aria-hidden="true"></span> <a href="/categories/notes/" rel="category tag">Notes</a>
|
||
|
||
|
||
</p>
|
||
</header>
|
||
<h2 id="2023-06-02">2023-06-02</h2>
|
||
<ul>
|
||
<li>Spend some time testing my <code>post_bitstreams.py</code> script to update thumbnails for items on CGSpace
|
||
<ul>
|
||
<li>Interestingly I found an item with a JFIF thumbnail and another with a WebP thumbnail…</li>
|
||
</ul>
|
||
</li>
|
||
<li>Meeting with Valentina, Stefano, and Sara about MODS metadata in CGSpace
|
||
<ul>
|
||
<li>They have experience with improving the MODS interface in MELSpace’s OAI-PMH for use with AGRIS and were curious if we could do the same in CGSpace</li>
|
||
<li>From what I can see we need to upgrade the MODS schema from 3.1 to 3.7 and then just add a bunch of our fields to the crosswalk</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<h2 id="2023-06-04">2023-06-04</h2>
|
||
<ul>
|
||
<li>Upgrade CGSpace to Ubuntu 22.04
|
||
<ul>
|
||
<li>The upgrade was mostly normal, but I had to unhold the openjdk package in order for <code>do-release-upgrade</code> to run:</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># apt-mark hold openjdk-8-jdk-headless:amd64 openjdk-8-jre-headless:amd64
|
||
</span></span></code></pre></div><ul>
|
||
<li>In <a href="/cgspace-notes/2022-11/">2022-11</a> an upstream Java update broke the DSpace 6 Handle server so we will have to pin this again after the upgrade to Ubuntu 22.04</li>
|
||
<li>After the upgrade I made sure CGSpace was working, then proceeded to upgrade PostgreSQL from 12 to 14, like I did on <a href="/cgspace-notes/2023-03/">DSpace Test in 2023-03</a></li>
|
||
<li>Then I had to downgrade OpenJDK to fix the Handle server using the ones I had previously downloaded for Ubuntu 20.04 because they no longer exist on Launchpad:</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># dpkg -i openjdk-8-j*8u342-b07*.deb
|
||
</span></span></code></pre></div><ul>
|
||
<li>Export CGSpace to fix missing Initiative collection mappings</li>
|
||
<li>Start a harvest on AReS</li>
|
||
<li>Work on the DSpace 7 migration a bit more
|
||
<ul>
|
||
<li>I decided to rebase and drop all the submission form edits because they conflict every time upstream changes!</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<h2 id="2023-06-06">2023-06-06</h2>
|
||
<ul>
|
||
<li>Fix some incorrect ORCID identifiers for an Alliance author on CGSpace</li>
|
||
<li>Export our list of ORCID identifiers, resolve them, and update the records in CGSpace:</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>$ cat dspace/config/controlled-vocabularies/cg-creator-identifier.xml 2022-09-22-add-orcids.csv| grep -oE <span style="color:#e6db74">'[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}'</span> | sort -u > /tmp/2023-06-06-orcids.txt
|
||
</span></span><span style="display:flex;"><span>$ ./ilri/resolve_orcids.py -i /tmp/2023-06-06-orcids.txt -o /tmp/2023-06-06-orcids-names.txt -d
|
||
</span></span><span style="display:flex;"><span>$ ./ilri/update_orcids.py -i /tmp/2023-06-06-orcids-names.txt -db dspacetest -u dspace -p <span style="color:#e6db74">'ffff'</span> -m <span style="color:#ae81ff">247</span>
|
||
</span></span></code></pre></div><ul>
|
||
<li>Start working on updating the MODS schema in CGSpace from 3.1 to 3.8 based on Stefano and Salem’s work last year</li>
|
||
</ul>
|
||
<h2 id="2023-06-08">2023-06-08</h2>
|
||
<ul>
|
||
<li>Continue working on the MODS schema mapping</li>
|
||
<li>Export CGSpace to check and update <code>dcterms.extent</code> fields
|
||
<ul>
|
||
<li>I normalized about 1,500 to use either “p. 1-6” or “5 p.” format</li>
|
||
<li>Also, I used this GREL expression to extract missing pages from the citation field: <code>cells['dcterms.bibliographicCitation[en_US]'].value.match(/.*(pp?\.\s?\d+[-–]\d+).*/)[0]</code></li>
|
||
<li>This was over 4,000 items with a format like “p. 1-6” and “pp. 1-6” in the citation</li>
|
||
<li>I used another GREL expression to extract another 5,000: <code>cells['dcterms.bibliographicCitation[en_US]'].value.match(/.*?(\d+\s+?[Pp]+\.).*/)[0]</code></li>
|
||
<li>This was for the format like “1 p.” (note we had to protect against the greedy <code>.*</code> in the beginning)</li>
|
||
</ul>
|
||
</li>
|
||
<li>I also did some work to capture a handful of missing DOIs and ISSNs, but it was only about 100 items and I will have to wait until the 10,000+ above finish importing</li>
|
||
</ul>
|
||
<h2 id="2023-06-09">2023-06-09</h2>
|
||
<ul>
|
||
<li>I see there are ~200 users in CGSpace that have registered with their CGIAR email address using a password as opposed to using Active Directory:</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> <span style="color:#f92672">*</span> <span style="color:#66d9ef">FROM</span> eperson <span style="color:#66d9ef">WHERE</span> email <span style="color:#66d9ef">LIKE</span> <span style="color:#e6db74">'%cgiar.org'</span> <span style="color:#66d9ef">AND</span> netid <span style="color:#66d9ef">IS</span> <span style="color:#66d9ef">NOT</span> <span style="color:#66d9ef">NULL</span> <span style="color:#66d9ef">AND</span> password <span style="color:#66d9ef">IS</span> <span style="color:#66d9ef">NOT</span> <span style="color:#66d9ef">NULL</span>;
|
||
</span></span></code></pre></div><ul>
|
||
<li>I am wondering if I should delete their passwords and tell them use log in using LDAP
|
||
<ul>
|
||
<li>As an initial test I will reset a few accounts including my own that have passwords and salts:</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-sql" data-lang="sql"><span style="display:flex;"><span><span style="color:#66d9ef">UPDATE</span> eperson <span style="color:#66d9ef">SET</span> password<span style="color:#f92672">=</span><span style="color:#66d9ef">DEFAULT</span>,salt<span style="color:#f92672">=</span><span style="color:#66d9ef">DEFAULT</span>,digest_algorithm<span style="color:#f92672">=</span><span style="color:#66d9ef">DEFAULT</span> <span style="color:#66d9ef">WHERE</span> netid <span style="color:#66d9ef">IN</span> (<span style="color:#e6db74">'axxxx'</span>, <span style="color:#e6db74">'axxxx'</span>, <span style="color:#e6db74">'bxxxx'</span>);
|
||
</span></span></code></pre></div><ul>
|
||
<li>I also decided to reset passwords/salts for CGIAR accounts that have not been active since 2021 (1.5 years ago):</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">UPDATE</span> eperson <span style="color:#66d9ef">SET</span> password<span style="color:#f92672">=</span><span style="color:#66d9ef">DEFAULT</span>,salt<span style="color:#f92672">=</span><span style="color:#66d9ef">DEFAULT</span>,digest_algorithm<span style="color:#f92672">=</span><span style="color:#66d9ef">DEFAULT</span> <span style="color:#66d9ef">WHERE</span> email <span style="color:#66d9ef">LIKE</span> <span style="color:#e6db74">'%cgiar.org'</span> <span style="color:#66d9ef">AND</span> netid <span style="color:#66d9ef">IS</span> <span style="color:#66d9ef">NOT</span> <span style="color:#66d9ef">NULL</span> <span style="color:#66d9ef">AND</span> password <span style="color:#66d9ef">IS</span> <span style="color:#66d9ef">NOT</span> <span style="color:#66d9ef">NULL</span> <span style="color:#66d9ef">AND</span> salt <span style="color:#66d9ef">IS</span> <span style="color:#66d9ef">NOT</span> <span style="color:#66d9ef">NULL</span> <span style="color:#66d9ef">AND</span> last_active <span style="color:#f92672"><</span> <span style="color:#e6db74">'2022-01-01'</span>::date;
|
||
</span></span></code></pre></div><ul>
|
||
<li>This was about 100 accounts…
|
||
<ul>
|
||
<li>I will wait some more time before I decide what to do about the more current ones</li>
|
||
</ul>
|
||
</li>
|
||
<li>Add a few more ORCID identifiers to my list and tag them on CGSpace</li>
|
||
</ul>
|
||
<h2 id="2023-06-10">2023-06-10</h2>
|
||
<ul>
|
||
<li>Export CGSpace to check for missing Initiative mappings
|
||
<ul>
|
||
<li>Start a harvest on AReS</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<h2 id="2023-06-11">2023-06-11</h2>
|
||
<ul>
|
||
<li>File <a href="https://github.com/DSpace/DSpace/issues/8900">an issue</a> on DSpace for the <code>Content-Disposition</code> bug causing images to get downloaded instead of opened inline</li>
|
||
</ul>
|
||
<h2 id="2023-06-12">2023-06-12</h2>
|
||
<ul>
|
||
<li>Export CGSpace to do some more work extracting volume and issue from citations for items where they are missing
|
||
<ul>
|
||
<li>I found and fixed over 7,000!</li>
|
||
<li>Then I found and extracted another 7,000 items with no extents (pages)</li>
|
||
<li>Then I replaced all occurences of en dashes for ranges in pages with regular hyphens</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<h2 id="2023-06-13">2023-06-13</h2>
|
||
<ul>
|
||
<li>Last night I finally figured out how to do basic overrides to the simple item view in Angular</li>
|
||
<li>Add a handful of new ORCID identifiers to my list and tag them on CGSpace</li>
|
||
<li>Extract a list of all the proposed actions for CG Core output types and create a <a href="https://github.com/AgriculturalSemantics/cg-core/issues/45">new issue for them on CG Core’s GitHub repository</a></li>
|
||
<li>Extract a list of all the proposed actions for CG Core output types for MARLO and create <a href="https://github.com/CCAFS/MARLO/issues/2479">a new issue for them on MARLO’s GitHub repository</a></li>
|
||
<li>Meeting with Indira, Ryan, and Abenet to discuss plans for the DSpace 7 focus group</li>
|
||
</ul>
|
||
<h2 id="2023-06-14">2023-06-14</h2>
|
||
<ul>
|
||
<li>Did some more work on the DSpace 7 Test to improve the submission forms and the look and feel</li>
|
||
<li>Extract a list of all the proposed actions for CG Core output types for MEL and create <a href="https://github.com/CodeObia/MEL/issues/11216">a new issue for them on MEL’s GitHub repository</a></li>
|
||
<li>I filed <a href="https://github.com/DSpace/dspace-angular/issues/2309">an issue about the yarn merge-i18n script</a></li>
|
||
<li>I made <a href="https://github.com/DSpace/dspace-angular/pull/2306">a pull request for some Finnish language i18n strings</a></li>
|
||
<li>I made <a href="https://github.com/DSpace/dspace-angular/pull/2306">a pull request to lint the i18n en.json5 file</a></li>
|
||
</ul>
|
||
<h2 id="2023-06-15">2023-06-15</h2>
|
||
<ul>
|
||
<li>A lot more work on DSpace 7
|
||
<ul>
|
||
<li>I tested some pull requests and worked on the style of the item view and homepage</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<h2 id="2023-06-16">2023-06-16</h2>
|
||
<ul>
|
||
<li>A lot more work on DSpace 7
|
||
<ul>
|
||
<li>I made <a href="https://github.com/DSpace/dspace-angular/pull/2316">a pull request to adjust font weight in item counts </a></li>
|
||
<li>I made <a href="https://github.com/DSpace/dspace-angular/pull/2317">a pull request to update the ESLint configuration for JSON5</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<h2 id="2023-06-17">2023-06-17</h2>
|
||
<ul>
|
||
<li>Export CGSpace to check for missing Initiative collection mappings
|
||
<ul>
|
||
<li>I also spent some time doing sanity checks on countries, regions, DOIs, and more</li>
|
||
</ul>
|
||
</li>
|
||
<li>I lowercased all our AGROVOC keywords in <code>dcterms.subject</code>:</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>dspace<span style="color:#f92672">=#</span> <span style="color:#66d9ef">BEGIN</span>;
|
||
</span></span><span style="display:flex;"><span><span style="color:#66d9ef">BEGIN</span>
|
||
</span></span><span style="display:flex;"><span>dspace<span style="color:#f92672">=*#</span> <span style="color:#66d9ef">UPDATE</span> metadatavalue <span style="color:#66d9ef">SET</span> text_value<span style="color:#f92672">=</span><span style="color:#66d9ef">LOWER</span>(text_value) <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">AND</span> metadata_field_id<span style="color:#f92672">=</span><span style="color:#ae81ff">187</span> <span style="color:#66d9ef">AND</span> text_value <span style="color:#f92672">~</span> <span style="color:#e6db74">'[[:upper:]]'</span>;
|
||
</span></span><span style="display:flex;"><span><span style="color:#66d9ef">UPDATE</span> <span style="color:#ae81ff">2392</span>
|
||
</span></span><span style="display:flex;"><span>dspace<span style="color:#f92672">=*#</span> <span style="color:#66d9ef">COMMIT</span>;
|
||
</span></span><span style="display:flex;"><span><span style="color:#66d9ef">COMMIT</span>
|
||
</span></span></code></pre></div><ul>
|
||
<li>Start a harvest on AReS</li>
|
||
</ul>
|
||
<h2 id="2023-06-19">2023-06-19</h2>
|
||
<ul>
|
||
<li>Today I started getting an error on DSpace 7 Test
|
||
<ul>
|
||
<li>The page loads, and then when it is almost done it goes blank to white with this in the console:</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>ERROR DOMException: CSSStyleSheet.cssRules getter: Not allowed to access cross-origin stylesheet
|
||
</span></span></code></pre></div><ul>
|
||
<li>I restarted Angular, but it didn’t fix it</li>
|
||
<li>The <code>yarn test:rest</code> script shows everything OK, and I haven’t changed anything recently…</li>
|
||
<li>I re-compiled the Angular UI using the default theme and it was the same…</li>
|
||
<li>I tried in Firefox Nightly and it works…
|
||
<ul>
|
||
<li>So it must be something related to the browser</li>
|
||
<li>I tried clearing all the session storage / cookies and refreshing and it worked</li>
|
||
</ul>
|
||
</li>
|
||
<li>I switched back to the CGSpace theme and it happened again
|
||
<ul>
|
||
<li>I had a hunch it might be due to the GDPR cookie plugin in my browser, so I disabled that and then refreshed and it worked… hmmm</li>
|
||
</ul>
|
||
</li>
|
||
<li>Upload thumbnails for about 42 IITA Journal Articles after resolving their DOIs and making sure they were not CC ND
|
||
<ul>
|
||
<li>I fixed a few bugs in <code>get_scihub_pdfs.py</code> in the process</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<h2 id="2023-06-21">2023-06-21</h2>
|
||
<ul>
|
||
<li>Stefano got back to me about the MODS OAI-PMH schema test on DSpace Test
|
||
<ul>
|
||
<li>He said that it’s fine if we use iso8601 encoding for dates instead of w3cdtf and asked if we can create a custom end point for AGRIS that only includes types like Journal Articles similar to how Salem did it: <a href="https://melspace.loc.codeobia.com/oai/agris?verb=ListRecords&metadataPrefix=mods">https://melspace.loc.codeobia.com/oai/agris?verb=ListRecords&metadataPrefix=mods</a></li>
|
||
<li>I updated DSpace Test with the new date format and said I’d work on the custom AGRIS set</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<h2 id="2023-06-25">2023-06-25</h2>
|
||
<ul>
|
||
<li>Export CGSpace to check for missing Initiative collection mappings</li>
|
||
<li>I wanted to start a harvest on AReS but I’ve seen the load on the server high for a few days and I’m not sure what it is
|
||
<ul>
|
||
<li>I decided to run all updates and reboot it since it’s Sunday anyway</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<h2 id="2023-06-26">2023-06-26</h2>
|
||
<ul>
|
||
<li>Since the new DSpace 7 will respect newlines in metadata fields I am curious to see how many of our abstracts have poor newlines
|
||
<ul>
|
||
<li>I exported CGSpace and used a custom text facet with this GREL expression in OpenRefine to count the number of newlines in each cell:</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>value.split('\n').length()
|
||
</span></span></code></pre></div><ul>
|
||
<li>Also useful to check for general length of the text in the cell to make sure it’s a reasonably long string
|
||
<ul>
|
||
<li>I spent some time trying to find a pattern that I could use to identify “easy” targets, but there are so many exceptions that it will have to be done manually</li>
|
||
<li>I fixed a few dozen</li>
|
||
</ul>
|
||
</li>
|
||
<li>Do a bit of work on thumbnails on CGSpace</li>
|
||
<li>I’m trying to troubleshoot the Discovery error I get on DSpace 7:</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>java.lang.NullPointerException: Cannot invoke "org.dspace.discovery.configuration.DiscoverySearchFilterFacet.getIndexFieldName()" because the return value of "org.dspace.content.authority.DSpaceControlledVocabularyIndex.getFacetConfig()" is null
|
||
</span></span></code></pre></div><ul>
|
||
<li>I reverted to the default <code>submission-forms.xml</code> and the <code>getFacetConfig()</code> error goes away…</li>
|
||
<li>Kill some long-held locks on CGSpace PostgreSQL, as some users are complaining of slowness in archiving</li>
|
||
<li>I did some testing of the LDAP login issue related to groupmaps
|
||
<ul>
|
||
<li>It does seem to be a regression from the <a href="https://github.com/DSpace/DSpace/pull/8814">LDAP auth patch</a> from last month, so I <a href="https://github.com/DSpace/DSpace/issues/8920">filed an issue</a></li>
|
||
</ul>
|
||
</li>
|
||
<li>I spent some time on working on Angular and I figured out how to add a custom Angular component to show the UN SDG Goal icons on DSpace 7</li>
|
||
</ul>
|
||
<h2 id="2023-06-27">2023-06-27</h2>
|
||
<ul>
|
||
<li>I debugged the NullPointerException and somehow it disappeared
|
||
<ul>
|
||
<li>It seems to be related to the external controlled vocabularies in the submission form</li>
|
||
<li>I removed them all, then added them all back, and now the issue is solved… hmmmm</li>
|
||
<li>Oh now, now they are gone again, sigh…</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<h2 id="2023-06-28">2023-06-28</h2>
|
||
<ul>
|
||
<li>Spent a lot of time debugging the browse indexes
|
||
<ul>
|
||
<li>Looking at the <a href="https://api7.dspace.org/server/api/discover/browses">DSpace 7 demo API</a> I see the four default browse indexes from <code>dspace.cfg</code> and the one default <code>srsc</code> one that gets automatically enabled from the <code><vocabulary>srsc</vocabulary></code> in the <code>submission-forms.xml</code></li>
|
||
<li>The same API call on my test DSpace 7 configuration results in the HTTP 500 I’ve been seeing for some time, and I am pretty sure it’s due to the automagic configuration of hierarchical browses based on the submission form</li>
|
||
<li>Yes, if I remove them all from my submission form then this works: http://localhost:8080/server/api/discover/browses</li>
|
||
<li>I went through each of our vocabularies and tested them one by one:
|
||
<ul>
|
||
<li>dcterms-subject: OK</li>
|
||
<li>dc-contributor-author: NO</li>
|
||
<li>cg-creator-identifier: NO</li>
|
||
<li>cg-contributor-affiliation: OK (and with <code>facetType: "affiliation"</code> in API response?!)</li>
|
||
<li>cg-contributor-donor: OK (<code>facetType: "sponsorship"</code>)</li>
|
||
<li>cg-journal: NO</li>
|
||
<li>cg-coverage-subregion: NO</li>
|
||
<li>cg-species-breed: NO</li>
|
||
</ul>
|
||
</li>
|
||
<li>Now I need to figure out what it is about those five that causes them to not work!</li>
|
||
<li>Ah, after debugging with someone on the DSpace Slack, I realized that DSpace expects these vocabularies to have corresponding indexes configured in <code>discovery.xml</code>, and they must be added as search filters AND sidebar facets.</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
<h2 id="2023-06-29">2023-06-29</h2>
|
||
<ul>
|
||
<li>I noticed there is now a <a href="https://github.com/DSpace/DSpace/issues/8557#issuecomment-1595340249">patched version of the Handle JAR for DSpace 6.x</a>
|
||
<ul>
|
||
<li>This fixes the <a href="https://groups.google.com/g/dspace-tech/c/PqjfA5mqG4w/m/FhxI5oXhFwAJ?pli=1">issue in OpenJDK 1.8.0_352</a>, so we can remove the apt pin on JDK now</li>
|
||
<li>I deployed it on CGSpace and it’s working!</li>
|
||
</ul>
|
||
</li>
|
||
<li>I lowercased all our AGROVOC terms because I noticed a few that were not:</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>dspace=# BEGIN;
|
||
</span></span><span style="display:flex;"><span>BEGIN
|
||
</span></span><span style="display:flex;"><span>dspace=*# UPDATE metadatavalue SET text_value=LOWER(text_value) WHERE dspace_object_id IN (SELECT uuid FROM item) AND metadata_field_id=187 AND text_value ~ '[[:upper:]]';
|
||
</span></span><span style="display:flex;"><span>UPDATE 53
|
||
</span></span><span style="display:flex;"><span>dspace=*# COMMIT;
|
||
</span></span></code></pre></div><ul>
|
||
<li>After more discussion about the NullPointerException related to browse options, I filed <a href="https://github.com/DSpace/DSpace/issues/8927">an issue</a></li>
|
||
</ul>
|
||
<h2 id="2023-06-30">2023-06-30</h2>
|
||
<ul>
|
||
<li>I added another custom component to display CGIAR Impact Area icons in the DSpace 7 test</li>
|
||
</ul>
|
||
<!-- 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/2024-09/">September, 2024</a></li>
|
||
|
||
<li><a href="/cgspace-notes/2024-08/">August, 2024</a></li>
|
||
|
||
<li><a href="/cgspace-notes/2024-07/">July, 2024</a></li>
|
||
|
||
<li><a href="/cgspace-notes/2024-06/">June, 2024</a></li>
|
||
|
||
<li><a href="/cgspace-notes/2024-05/">May, 2024</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>
|