<li>Export CGSpace to check for missing Initiative collection mappings</li>
<li>Start a harvest on AReS</li>
</ul>
<h2id="2023-09-03">2023-09-03</h2>
<ul>
<li>I figured out how to use Altmetric and Dimensions badges in the DSpace Angular frontend
<ul>
<li>It still feels hacky, but using <ahref="https://stackoverflow.com/questions/41936631/how-to-trigger-the-function-after-dom-markup-is-loaded-in-angular-style-applicat">AfterViewInit</a>, and importing the Altmetric <code>embed.js</code> in the component works</li>
<li>The style on mobile also needs work…</li>
<li>The <code>prepress</code> one is 300DPI and looks visually identical to the original, so I proposed that we use that one</li>
</ul>
<h2id="2023-09-08">2023-09-08</h2>
<ul>
<li>I did a review of the metadata for our items with DOIs, comparing with data from Crossref
<ul>
<li>I spot checked a handful of issue / online dates and licenses, and saw that Crossref’s dates are always more accurate than ours when they differ</li>
<li>I also filled in some missing volumes, issues, ISSNs, and extents</li>
<li>This results in 14,000 changes to existing items, which will take several days to import unfortunately</li>
<li>After eight hours the first file is only about 2/3 finished… sigh</li>
<li>Export CGSpace to check for missing Initiative collection mappings</li>
<li>Start a harvest on AReS</li>
</ul>
<h2id="2023-09-12">2023-09-12</h2>
<ul>
<li>Minor work on DSpace 7 home page</li>
<li>Minor work on CG Core types
<ul>
<li>I published a new HTML version of the updated IPtypes and archived the current version as v2.0.0 so we can still reference it</li>
</ul>
</li>
</ul>
<h2id="2023-09-13">2023-09-13</h2>
<ul>
<li>Stefano reminded me about the updated OAI MODS mappings on CGSpace so I re-applied them on DSpace Test and updated the OAI index so he could confirm
<ul>
<li>Now I’m ready to put it on CGSpace if he confirms</li>
</ul>
</li>
<li>I created a basic theme for CIP on DSpace 7
<ul>
<li>While doing that I noticed that a bunch of CIP bitstreams didn’t have the latest 500px thumbnails so I re-ran filter-media on a handful of their collections</li>
</ul>
</li>
<li>I had two occurrences of an OOM kill of the Tomcat 9 java process on DSpace 7 test tonight
<ul>
<li>Once while doing a Discovery index, the other while doing filter media</li>
<li>Discuss issues with the Altmetric API with the Altmetric support team
<ul>
<li>Apparently we can use a different API, the <ahref="https://www.altmetric.com/explorer/documentation/api">Explorer API</a>, since we already have access to the Explorer dashboard</li>
</ul>
</li>
<li>I reduced the Solr heap size on DSpace 7 from 3GB to 2GB
<ul>
<li>Apparentlty I already did this from 4GB to 3GB a few months ago</li>
<li>The Solr admin interface was showing Solr taking ~1GB of RAM so I think this should be safe</li>
</ul>
</li>
<li>Mark on DSpace Slack said he uses PM2’s <code>--max-memory-restart</code> so the processes restart when they hit the limit
<ul>
<li>Also, he said he had to reduce <code>cache:serverSide:botCache:max</code> from 1000 to 500 to cache less SSR pages in memory</li>
</ul>
</li>
<li>I decided to try deploying DSpace 7 Test on a Hetzner server with 64GB RAM, 6 CPUs, and 2x512GB NVMe SSD</li>
</ul>
<h2id="2023-09-16">2023-09-16</h2>
<ul>
<li>Export CGSpace to check for missing Initiative collection mappings</li>
<li>Start a harvest on AReS</li>
<li>Configure the privacy policy page on DSpace 7 using a themed component with the text from our DSpace 6 site</li>
<li>I realized that for all my custom Angular components I should be using <code>routerLink</code> instead of <code>href</code> when I am constructing links
<ul>
<li>The <code>routerLink</code> routes within the single page application and saves state, while the <code>href</code> reloads the page</li>
<li>Using the <code>routerLink</code> way is faster and results in less flashing and jumping in the page when navigating</li>
<li>I added an About page to DSpace 7 Test using similar logic to the privacy page</li>
</ul>
<h2id="2023-09-18">2023-09-18</h2>
<ul>
<li>I filed a GitHub issue for being unable to navigate dropdown lists using the keyboard on the dspace-angular submission form: <ahref="https://github.com/DSpace/dspace-angular/issues/2500">https://github.com/DSpace/dspace-angular/issues/2500</a></li>
<li>I filed a GitHub issue for the search filters capitalizing metadata values: <ahref="https://github.com/DSpace/dspace-angular/issues/2501">https://github.com/DSpace/dspace-angular/issues/2501</a></li>
</ul>
<h2id="2023-09-19">2023-09-19</h2>
<ul>
<li>Complete migration of DSpace 7 Test from Linode to Hetzner</li>
<li>Export some years of Solr stats from CGSpace to import on the new DSpace 7 Test:</li>
</ul>
<divclass="highlight"><pretabindex="0"style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><codeclass="language-console"data-lang="console"><spanstyle="display:flex;"><span>$ chrt -b <spanstyle="color:#ae81ff">0</span> ./run.sh -s http://localhost:8081/solr/statistics -a export -o /tmp/statistics-2020-2022.json -f <spanstyle="color:#e6db74">'time:[2020-01-01T00\:00\:00Z TO 2022-12-31T23\:59\:59Z]'</span> -k uid -S actingGroupId,actingGroupParentId,actorMemberGroupId,author_mtdt,author_mtdt_search,bitstreamCount,bitstreamId,complete_query,complete_query_search,containerBitstream,containerCollection,containerCommunity,containerItem,core_update_run_nb,countryCode_ngram,countryCode_search,cua_version,dateYear,dateYearMonth,file_id,filterquery,first_name,geoipcountrycode,geoIpCountryCode,group_id,group_map,group_name,ip_ngram,ip_search,isArchived,isInternal,iso_mtdt,iso_mtdt_search,isWithdrawn,last_name,name,ngram_query_search,ngram_simplequery_search,orphaned,parent_count,p_communities_id,p_communities_map,p_communities_name,p_group_id,p_group_map,p_group_name,range,rangeDescription,rangeDescription_ngram,rangeDescription_search,range_ngram,range_search,referrer_ngram,referrer_search,simple_query,simple_query_search,solr_update_time_stamp,storage_nb_of_bitstreams,storage_size,storage_statistics_type,subject_mtdt,subject_mtdt_search,text,userAgent_ngram,userAgent_search,version_id,workflowItemId
</span></span></code></pre></div><ul>
<li>Ben sent me an export of ILRI presentations from Slideshare and asked if we could see if any are missing on CGSpace
<ul>
<li>First I exported CGSpace and extracted the <code>cg.identifier.url</code> column so I could normalize all Slideshare URLs to use “<ahref="https://www.slideshare.net">https://www.slideshare.net</a>” instead of localized variants (es.slideshare.net, fr.slideshare.net, etc) as well as non-https links and links with query params and slashes at the end</li>
<li>This was about 250 URLs</li>
</ul>
</li>
<li>I extracted the URL field from both our list and the Slideshare list and then used <ahref="https://unix.stackexchange.com/questions/274548/join-two-files-each-with-two-columns-including-non-matching-lines">GNU <code>join</code> to print non-matched lines</a>:</li>
<li>Important to note that you must use GNU <code>sort</code> on the fiels first, as I had tried sorting in vim and it didn’t satisfy <code>join</code></li>
<li>So it seems there are 542 Slideshare presentations we are missing</li>
<li>Regarding the incorrect city in Solr statistics, I see we have 1,600,000 of them
<ul>
<li>Before filing a GitHub issue, I want to check if they maybe come from an Atmire module, as I see them clustered around two particular CUA versions:</li>
<li>I asked on Slack and someone told me that we need to edit <code>src/app/menu.resolver.ts</code> to add new drop down menus to the top navbar
<ul>
<li>It works, though is unfortunate that we can’t do it in a theme</li>
</ul>
</li>
</ul>
<h2id="2023-09-21">2023-09-21</h2>
<ul>
<li>More minor work on DSpace 7 home page and menus</li>
<li>Meeting to discuss types and DSpace 7 migration plans</li>
<li>Create a DSpace 7 theme for IITA</li>
</ul>
<h2id="2023-09-22">2023-09-22</h2>
<ul>
<li>Create a DSpace 7 theme for IWMI</li>
<li>I had some issues with pm2 on the new DSpace 7 Test
<ul>
<li>It seems to be due to mixing systemd starting versus manually starting / stopping…</li>
<li>After reading the discussion in <ahref="https://github.com/Unitech/pm2/issues/2914">this pm2 issue</a> I realize that we probably need to use <code>--no-daemon</code> to have systemd fully manage the processes without pm2 trying to save state</li>
</ul>
</li>
</ul>
<h2id="2023-09-23">2023-09-23</h2>
<ul>
<li>Export CGSpace to check for missing Initiative collection mappings</li>