diff --git a/content/post/2017-07.md b/content/post/2017-07.md index f3cd7844f..91e2c7e84 100644 --- a/content/post/2017-07.md +++ b/content/post/2017-07.md @@ -18,7 +18,7 @@ tags = ["Notes"] ``` -$ psql dspacenew -x -c 'select element, qualifier, scope_note from metadatafieldregistry where metadata_schema_id=5 order by element, qualifier;' | sed -r 's:^-\[ RECORD (.*) \]-+$:\n:;s:([^ ]*) +\| (.*): <\1>\2:;s:^$::;1s:\n::' +$ psql dspacenew -x -c 'select element, qualifier, scope_note from metadatafieldregistry where metadata_schema_id=5 order by element, qualifier;' | sed -r 's:^-\[ RECORD (.*) \]-+$:\n\ncg:;s:([^ ]*) +\| (.*): <\1>\2:;s:^$::;1s:\n::' ``` - The `sed` script is from a post on the [PostgreSQL mailing list](https://www.postgresql.org/message-id/437E44A5.508%40ultimeth.com) @@ -32,3 +32,12 @@ $ psql dspacenew -x -c 'select element, qualifier, scope_note from metadatafield - Also would need to edit XMLUI item displays to incorporate this into authors list - And fuck, then anyone consuming our data via REST / OAI will not notice that we have an author outside of `dc.contributor.authors`... ugh - What if we modify the item submission form to use [`type-bind` fields to show/hide certain fields depending on the type](https://wiki.duraspace.org/display/DSDOC5x/Submission+User+Interface#SubmissionUserInterface-ItemtypeBasedMetadataCollection)? + +## 2017-07-05 + +- Adjust WLE Research Theme to include both Phase I and II on the submission form according to editor feedback ([#330](https://github.com/ilri/DSpace/pull/330)) +- Generate list of fields in the current CGSpace `cg` scheme so we can record them properly in the metadata registry: + +``` +$ psql dspace -x -c 'select element, qualifier, scope_note from metadatafieldregistry where metadata_schema_id=2 order by element, qualifier;' | sed -r 's:^-\[ RECORD (.*) \]-+$:\n\ncg:;s:([^ ]*) +\| (.*): <\1>\2:;s:^$::;1s:\n::' > cg-types.xml +``` diff --git a/public/2017-07/index.html b/public/2017-07/index.html index 6461fb32f..fe029246c 100644 --- a/public/2017-07/index.html +++ b/public/2017-07/index.html @@ -27,7 +27,7 @@ We can use PostgreSQL’s extended output format (-x) plus sed to format the - + @@ -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

-
$ 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::'
+
$ 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::'
 
+

2017-07-05

+ + + +
$ 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
+
+ diff --git a/public/sitemap.xml b/public/sitemap.xml index b5f20327e..9cea286df 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2017-07/ - 2017-07-04T13:49:16+03:00 + 2017-07-04T23:39:47+03:00 @@ -109,7 +109,7 @@ https://alanorth.github.io/cgspace-notes/ - 2017-07-04T13:49:16+03:00 + 2017-07-04T23:39:47+03:00 0 @@ -120,19 +120,19 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2017-07-04T13:49:16+03:00 + 2017-07-04T23:39:47+03:00 0 https://alanorth.github.io/cgspace-notes/post/ - 2017-07-04T13:49:16+03:00 + 2017-07-04T23:39:47+03:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2017-07-04T13:49:16+03:00 + 2017-07-04T23:39:47+03:00 0