mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2016-04-19
This commit is contained in:
@ -226,3 +226,27 @@ javax.ws.rs.WebApplicationException
|
||||
|
||||
- Everything else in the system looked normal (50GB disk space available, nothing weird in dmesg, etc)
|
||||
- After restarting Tomcat a few more of these errors were logged but the application was up
|
||||
|
||||
## 2016-04-19
|
||||
|
||||
- Get handles for items that are using a given metadata field, ie `dc.Species.animal` (105):
|
||||
|
||||
```
|
||||
# select handle from item, handle where handle.resource_id = item.item_id AND item.item_id in (select resource_id from metadatavalue where resource_type_id=2 and metadata_field_id=105);
|
||||
handle
|
||||
-------------
|
||||
10568/10298
|
||||
10568/16413
|
||||
10568/16774
|
||||
10568/34487
|
||||
```
|
||||
|
||||
- Delete metadata values for `dc.GRP` and `dc.icsubject.icrafsubject`:
|
||||
|
||||
```
|
||||
# delete from metadatavalue where resource_type_id=2 and metadata_field_id=96;
|
||||
# delete from metadatavalue where resource_type_id=2 and metadata_field_id=83;
|
||||
```
|
||||
|
||||
- They are old ICRAF fields and we haven't used them since 2011 or so
|
||||
- Also delete them from the metadata registry
|
||||
|
Reference in New Issue
Block a user