mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-12-29 00:14:30 +01:00
127 lines
6.0 KiB
HTML
127 lines
6.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en-us">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="description" content="">
|
|
<meta name="keywords" content="">
|
|
<meta name="author" content="Alan Orth">
|
|
<meta name="generator" content="Hugo 0.16-DEV" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="/css/style.css" type="text/css">
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700" type="text/css">
|
|
<link rel="alternate" href="/index.xml" type="application/rss+xml" title="CGSpace Notes">
|
|
<title>CGSpace Notes</title>
|
|
</head>
|
|
<body>
|
|
|
|
<header>
|
|
<div class="container">
|
|
<a class="path" href="/cgspace-notes/">[CGSpace Notes]</a>
|
|
<span class="caret"># _</span>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
<main role="main" class="homepage">
|
|
|
|
<h1 class="site-title">
|
|
<span class="base05">[</span><span class="base08">b</span><span class="base09">a</span><span class="base0a">s</span><span class="base0b">e</span><span class="base0c">1</span><span class="base0d">6</span><span class="base05">]</span>
|
|
<span class="base05"># _</span>
|
|
</h1>
|
|
|
|
<div class="hero-logo">
|
|
<img src="/img/base16-eighties.svg">
|
|
</div>
|
|
|
|
<div style="text-align: center;">
|
|
Add your own "<code>layouts/partials/hero.html</code>" to replace this text.
|
|
</div>
|
|
|
|
|
|
<h1 class="headline">Recent Posts</h1>
|
|
|
|
<div class="article-list">
|
|
|
|
|
|
<article class="list-item" itemscope itemtype="http://schema.org/Blog">
|
|
<h2 class="headline" itemprop="headline"><a href="/cgspace-notes/2016-02/">February, 2016</a></h2>
|
|
<div class="meta">
|
|
|
|
<span class="key">published on</span>
|
|
<span class="val"><time itemprop="datePublished" datetime="2016-02-05">February 05, 2016</time></span>
|
|
|
|
</div>
|
|
<section class="summary">
|
|
2016-02-05 Looking at some DAGRIS data for Abenet Yabowork Lots of issues with spaces, newlines, etc causing the import to fail I noticed we have a very interesting list of countries on CGSpace: Not only are there 49,000 countries, we have some blanks (25)… Also, lots of things like “COTE D`LVOIRE” and “COTE D IVOIRE” 2016-02-06 Found a way to get items with null/empty metadata values from SQL First, find the metadata_field_id for the field you want from the metadatafieldregistry table: dspacetest=# select * from metadatafieldregistry; In this case our country field is 78 Now find all resources with type 2 (item) that have null/empty values for that field: dspacetest=# select resource_id from metadatavalue where resource_type_id=2 and metadata_field_id=78 and (text_value='' OR text_value IS NULL); Then you can find the handle that owns it from its resource_id: dspacetest=# select handle from item, handle where handle.resource_id = item.item_id AND item.item_id = '22678'; It’s 25 items so editing in the web UI is annoying, let’s try SQL! <a href="/cgspace-notes/2016-02/">Read More...</a>
|
|
</section>
|
|
</article>
|
|
|
|
|
|
|
|
<article class="list-item" itemscope itemtype="http://schema.org/Blog">
|
|
<h2 class="headline" itemprop="headline"><a href="/cgspace-notes/2016-01/">January, 2016</a></h2>
|
|
<div class="meta">
|
|
|
|
<span class="key">published on</span>
|
|
<span class="val"><time itemprop="datePublished" datetime="2016-01-13">January 13, 2016</time></span>
|
|
|
|
</div>
|
|
<section class="summary">
|
|
2016-01-13 Move ILRI collection 10568/12503 from 10568/27869 to 10568/27629 using the move_collections.sh script I wrote last year. I realized it is only necessary to clear the Cocoon cache after moving collections—rather than reindexing—as no metadata has changed, and therefore no search or browse indexes need to be updated. Update GitHub wiki for documentation of maintenance tasks. 2016-01-14 Update CCAFS project identifiers in input-forms.xml Run system updates and restart the server 2016-01-18 Change “Extension material” to “Extension Material” in input-forms.xml (a mistake that fell through the cracks when we fixed the others in DSpace 4 era) 2016-01-19 Work on tweaks and updates for the social sharing icons on item pages: add Delicious and Mendeley (from Academicons), make links open in new windows, and set the icon color to the theme’s primary color (#157) Tweak date-based facets to show more values in drill-down ranges (#162) Need to remember to clear the Cocoon cache after deployment or else you don’t see the new ranges immediately Set up recipe on IFTTT to tweet new items from the CGSpace Atom feed to my twitter account Altmetrics’ support for Handles is kinda weak, so they can’t associate our items with DOIs until they are tweeted or blogged, etc first. <a href="/cgspace-notes/2016-01/">Read More...</a>
|
|
</section>
|
|
</article>
|
|
|
|
|
|
|
|
<article class="list-item" itemscope itemtype="http://schema.org/Blog">
|
|
<h2 class="headline" itemprop="headline"><a href="/cgspace-notes/2015-12/">December, 2015</a></h2>
|
|
<div class="meta">
|
|
|
|
<span class="key">published on</span>
|
|
<span class="val"><time itemprop="datePublished" datetime="2015-12-02">December 02, 2015</time></span>
|
|
|
|
</div>
|
|
<section class="summary">
|
|
2015-12-02 Replace lzop with xz in log compression cron jobs on DSpace Test—it uses less space: # cd /home/dspacetest.cgiar.org/log # ls -lh dspace.log.2015-11-18* -rw-rw-r-- 1 tomcat7 tomcat7 2.0M Nov 18 23:59 dspace.log.2015-11-18 -rw-rw-r-- 1 tomcat7 tomcat7 387K Nov 18 23:59 dspace.log.2015-11-18.lzo -rw-rw-r-- 1 tomcat7 tomcat7 169K Nov 18 23:59 dspace.log.2015-11-18.xz I had used lrzip once, but it needs more memory and is harder to use as it requires the lrztar <a href="/cgspace-notes/2015-12/">Read More...</a>
|
|
</section>
|
|
</article>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h1 class="headline">Tags</h1>
|
|
|
|
<section class="tags">
|
|
|
|
<span class="tag">
|
|
<a href="/cgspace-notes/tags/notes">notes</a>
|
|
<small>(4)</small>
|
|
</span>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<footer>
|
|
<div class="container">
|
|
<span class="copyright">© 2016 CGSpace Notes - <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a></span>
|
|
</div>
|
|
</footer>
|
|
|
|
</body>
|
|
</html>
|
|
|