Revision 7363
Added by ben leinfelder about 12 years ago
src/doi_registration.sql | ||
---|---|---|
614 | 614 |
set creator = trim(creator), |
615 | 615 |
publisher = trim(publisher); |
616 | 616 |
|
617 |
-- set the publisher to the source system if it is the same as the creator |
|
618 |
update doi_registration |
|
619 |
set publisher = |
|
620 |
case |
|
621 |
when guid like 'doi:10.5063%' then |
|
622 |
'Knowledge Network for Biocomplexity (KNB)' |
|
623 |
when guid like 'doi:10.6085%' then |
|
624 |
'Partnership for Interdisciplinary Studies of Coastal Oceans (PISCO)' |
|
625 |
when guid like 'doi:10.6073%' then |
|
626 |
'Long Term Ecological Research Network (LTER)' |
|
627 |
else |
|
628 |
publisher |
|
629 |
end |
|
630 |
where publisher = creator; |
|
617 | 631 |
|
618 | 632 |
-- copy to the external file |
619 | 633 |
COPY |
Also available in: Unified diff
set publisher to the source system when publisher == creator (we want them to be different, even if just for appearances)