mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2016-11-17
This commit is contained in:
@ -30,7 +30,7 @@
|
||||
|
||||
|
||||
<meta itemprop="dateModified" content="2016-11-01T09:21:00+03:00" />
|
||||
<meta itemprop="wordCount" content="1596">
|
||||
<meta itemprop="wordCount" content="1889">
|
||||
|
||||
|
||||
|
||||
@ -79,6 +79,8 @@
|
||||
<nav class="nav blog-nav">
|
||||
<a class="nav-link " href="https://alanorth.github.io/cgspace-notes/">Home</a>
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
@ -464,6 +466,49 @@ Mozilla/5.0 (compatible; YandexImages/3.0; +http://yandex.com/bots)" "
|
||||
<li>We absolutely don’t use those modules, so we shouldn’t build them in the first place</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="2016-11-17">2016-11-17</h2>
|
||||
|
||||
<ul>
|
||||
<li>Generate a list of journal titles for Peter and Abenet to look through so we can make a controlled vocabulary out of them:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>dspace=# \copy (select distinct text_value, count(*) from metadatavalue where resource_type_id=2 and metadata_field_id=55 group by text_value order by count desc) to /tmp/journal-titles.csv with csv;
|
||||
COPY 2515
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Send a message to users of the CGSpace REST API to notify them of upcoming upgrade so they can test their apps against DSpace Test</li>
|
||||
<li>Test an update old, non-HTTPS links to the CCAFS website in CGSpace metadata:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>dspacetest=# update metadatavalue set text_value = regexp_replace(text_value, 'http://ccafs.cgiar.org','https://ccafs.cgiar.org') where resource_type_id=2 and text_value like '%http://ccafs.cgiar.org%';
|
||||
UPDATE 164
|
||||
dspace=# update metadatavalue set text_value = regexp_replace(text_value, 'http://ccafs.cgiar.org','https://ccafs.cgiar.org') where resource_type_id=2 and text_value like '%http://ccafs.cgiar.org%';
|
||||
UPDATE 7
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Had to run it twice to get all (not sure about “global” regex in PostgreSQL)</li>
|
||||
<li>Run the updates on CGSpace as well</li>
|
||||
<li>Run through some collections and manually regenerate some PDF thumbnails for items from before 2016 on DSpace Test to compare with CGSpace</li>
|
||||
<li>I’m debating forcing the re-generation of ALL thumbnails, since some come from DSpace 3 and 4 when the thumbnailing wasn’t as good</li>
|
||||
<li>The results were very good, I think that after we upgrade to 5.5 I will do it, perhaps one community / collection at a time:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>$ [dspace]/bin/dspace filter-media -f -i 10568/67156 -p "ImageMagick PDF Thumbnail"
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>In related news, I’m looking at thumbnails of thumbnails (the ones we uploaded manually before, and now DSpace’s media filter has made thumbnails of THEM):</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>dspace=# select text_value from metadatavalue where text_value like '%.jpg.jpg';
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>I’m not sure if there’s anything we can do, actually, because we would have to remove those from the thumbnail bundles, and replace them with the regular JPGs from the content bundle, and then remove them from the assetstore…</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user