mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Update notes for 2017-03-39
This commit is contained in:
@ -211,8 +211,22 @@ $ ./fix-metadata-values.py -i ccafs-flagships-feb7.csv -f cg.subject.ccafs -t co
|
||||
- Also, I generated a list of all CCAFS flagships because there are a dozen or so more than there should be:
|
||||
|
||||
```
|
||||
dspacetest=# dspacetest=# \copy (select distinct text_value, count(*) from metadatavalue where resource_type_id=2 and metadata_field_id=210 group by text_value order by count desc) to /tmp/ccafs.csv with csv;
|
||||
dspace=# \copy (select distinct text_value, count(*) from metadatavalue where resource_type_id=2 and metadata_field_id=210 group by text_value order by count desc) to /tmp/ccafs.csv with csv;
|
||||
```
|
||||
|
||||
- I sent a list to CCAFS people so they can tell me if some should be deleted or moved, etc
|
||||
- Test, squash, and merge Sisay's RTB theme into `5_x-prod`: https://github.com/ilri/DSpace/pull/316
|
||||
|
||||
## 2017-03-29
|
||||
|
||||
- Dump a list of fields in the DC and CG schemas to compare with CG Core:
|
||||
|
||||
```
|
||||
dspace=# select case when metadata_schema_id=1 then 'dc' else 'cg' end as schema, element, qualifier, scope_note from metadatafieldregistry where metadata_schema_id in (1, 2);
|
||||
```
|
||||
|
||||
- Ooh, a better one!
|
||||
|
||||
```
|
||||
dspace=# select coalesce(case when metadata_schema_id=1 then 'dc.' else 'cg.' end) || concat_ws('.', element, qualifier) as field, scope_note from metadatafieldregistry where metadata_schema_id in (1, 2);
|
||||
```
|
||||
|
Reference in New Issue
Block a user