mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2017-07-05
This commit is contained in:
@ -27,7 +27,7 @@ We can use PostgreSQL’s extended output format (-x) plus sed to format the
|
||||
|
||||
|
||||
<meta property="article:published_time" content="2017-07-01T18:03:52+03:00"/>
|
||||
<meta property="article:modified_time" content="2017-07-04T13:49:16+03:00"/>
|
||||
<meta property="article:modified_time" content="2017-07-04T23:39:47+03:00"/>
|
||||
|
||||
|
||||
|
||||
@ -73,9 +73,9 @@ We can use PostgreSQL’s extended output format (-x) plus sed to format the
|
||||
"@type": "BlogPosting",
|
||||
"headline": "July, 2017",
|
||||
"url": "https://alanorth.github.io/cgspace-notes/2017-07/",
|
||||
"wordCount": "252",
|
||||
"wordCount": "323",
|
||||
"datePublished": "2017-07-01T18:03:52+03:00",
|
||||
"dateModified": "2017-07-04T13:49:16+03:00",
|
||||
"dateModified": "2017-07-04T23:39:47+03:00",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Alan Orth"
|
||||
@ -154,7 +154,7 @@ We can use PostgreSQL’s extended output format (-x) plus sed to format the
|
||||
|
||||
<p></p>
|
||||
|
||||
<pre><code>$ psql dspacenew -x -c 'select element, qualifier, scope_note from metadatafieldregistry where metadata_schema_id=5 order by element, qualifier;' | sed -r 's:^-\[ RECORD (.*) \]-+$:</dc-type>\n<dc-type>:;s:([^ ]*) +\| (.*): <\1>\2</\1>:;s:^$:</dc-type>:;1s:</dc-type>\n::'
|
||||
<pre><code>$ psql dspacenew -x -c 'select element, qualifier, scope_note from metadatafieldregistry where metadata_schema_id=5 order by element, qualifier;' | sed -r 's:^-\[ RECORD (.*) \]-+$:</dc-type>\n<dc-type>\n<schema>cg</schema>:;s:([^ ]*) +\| (.*): <\1>\2</\1>:;s:^$:</dc-type>:;1s:</dc-type>\n::'
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
@ -173,6 +173,16 @@ We can use PostgreSQL’s extended output format (-x) plus sed to format the
|
||||
<li>What if we modify the item submission form to use <a href="https://wiki.duraspace.org/display/DSDOC5x/Submission+User+Interface#SubmissionUserInterface-ItemtypeBasedMetadataCollection"><code>type-bind</code> fields to show/hide certain fields depending on the type</a>?</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="2017-07-05">2017-07-05</h2>
|
||||
|
||||
<ul>
|
||||
<li>Adjust WLE Research Theme to include both Phase I and II on the submission form according to editor feedback (<a href="https://github.com/ilri/DSpace/pull/330">#330</a>)</li>
|
||||
<li>Generate list of fields in the current CGSpace <code>cg</code> scheme so we can record them properly in the metadata registry:</li>
|
||||
</ul>
|
||||
|
||||
<pre><code>$ psql dspace -x -c 'select element, qualifier, scope_note from metadatafieldregistry where metadata_schema_id=2 order by element, qualifier;' | sed -r 's:^-\[ RECORD (.*) \]-+$:</dc-type>\n<dc-type>\n<schema>cg</schema>:;s:([^ ]*) +\| (.*): <\1>\2</\1>:;s:^$:</dc-type>:;1s:</dc-type>\n::' > cg-types.xml
|
||||
</code></pre>
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user