-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
R. S. Doiel
committed
Oct 30, 2024
1 parent
702a881
commit 13f5a6c
Showing
22 changed files
with
116 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
sqlite3 reports.ds/collection.db 'delete from reports'; | ||
rm htdocs/rpt/*.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"version":"1.1.1","languages":{"en-US":{"hash":"en-US_7f93172229187","wasm":"en-US","page_count":13}}} | ||
{"version":"1.1.1","languages":{"en-US":{"hash":"en-US_93c527e8577f4","wasm":"en-US","page_count":13}}} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
select json_object( | ||
'family_name', src->'family_name', | ||
'given_name', src->'given_name', | ||
'cl_people_id', ifnull(src->'clpid', ''), | ||
'thesis_id', ifnull(src->'thesis_id', ''), | ||
'advisor_id', ifnull(src->'advisors_id', ''), | ||
'authors_id', ifnull(src->'authors_id', ''), | ||
'archivesspace_id', ifnull(src->'archivesspace_id', ''), | ||
'directory_id', ifnull(src->'directory_user_id', ''), | ||
'viaf_id', src->'viaf', | ||
'lcnaf', src->'lcnaf', | ||
'isni', src->'isni', | ||
'wikidata', src->'wikidata', | ||
'snac', src->'snac', | ||
'orcid', src->'orcid', | ||
'image', '', | ||
'educated_at', ifnull(src->'educated_at', ''), | ||
'caltech', ifnull(src->'caltech', ''), | ||
'jpl', ifnull(src->'jpl', ''), | ||
'faculty', ifnull(src->'faculty', ''), | ||
'staff', ifnull(src->'staff', ''), | ||
'alumn', ifnull(src->'alumn', ''), | ||
'status', ifnull(src->'status', ''), | ||
'directory_person_type', ifnull(src->'directory_person_type', ''), | ||
'title', ifnull(src->'title', ''), | ||
'bio', ifnull(src->'bio', ''), | ||
'division', ifnull(src->'division', ''), | ||
'authors_count', '', | ||
'thesis_count', '', | ||
'data_count', '', | ||
'advisor_count', '', | ||
'editor_count', '', | ||
'updated', src->'updated', | ||
'include_in_feeds', ifnull(src->'include_in_feeds', '') | ||
) as src | ||
from people | ||
order by src->'family_name', src->'given_name' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,48 @@ | ||
#!/bin/bash | ||
# | ||
|
||
dsquery -csv "family_name,given_name,cl_people_id,thesis_id,advisor_id,authors_id,archivesspace_id,directory_id,viaf_id,lcnaf,isni,wikidata,snac,orcid,image,educated_at,caltech,jpl,faculty,alumn,status,directory_person_type,title,bio,division,authors_count,thesis_count,data_count,advisor_count,editor_count,updated,include_in_feeds" people.ds "select json_object( 'family_name', src->'family_name', 'given_name', src->'given_name', 'cl_people_id', ifnull(src->'clpid', ''), 'thesis_id', ifnull(src->'thesis_id', ''), 'advisor_id', ifnull(src->'advisor_id', ''), 'authors_id', ifnull(src->'authors_id', ''), 'archivesspace_id', ifnull(src->'archivesspace_id', ''), 'directory_id', ifnull(src->'directory_user_id', ''), 'viaf_id', src->'viaf', 'lcnaf', src->'lcnaf', 'isni', src->'isni', 'wikidata', src->'wikidata', 'snac', src->'snac', 'orcid', src->'orcid', 'image', '', 'educated_at', ifnull(src->'educated_at', ''), 'caltech', ifnull(src->'caltech', ''), 'jpl', ifnull(src->'jpl', ''), 'faculty', ifnull(src->'faculty', ''), 'staff', ifnull(src->'staff', ''), 'alumn', ifnull(src->'alumn', ''), 'status', ifnull(src->'status', ''), 'directory_person_type', ifnull(src->'directory_person_type', ''), 'title', ifnull(src->'title', ''), 'bio', ifnull(src->'bio', ''), 'division', ifnull(src->'division', ''), 'authors_count', '', 'thesis_count', '', 'data_count', '', 'advisor_count', '', 'editor_count', '', 'updated', src->'updated', 'include_in_feeds', ifnull(src->'include_in_feeds', '')) as src from people order by src->'family_name', src->'given_name'" | ||
### cat <<SQL>people_rpt.sql | ||
### select json_object( | ||
### 'family_name', src->'family_name', | ||
### 'given_name', src->'given_name', | ||
### 'cl_people_id', ifnull(src->'clpid', ''), | ||
### 'thesis_id', ifnull(src->'thesis_id', ''), | ||
### 'advisor_id', ifnull(src->'advisors_id', ''), | ||
### 'authors_id', ifnull(src->'authors_id', ''), | ||
### 'archivesspace_id', ifnull(src->'archivesspace_id', ''), | ||
### 'directory_id', ifnull(src->'directory_user_id', ''), | ||
### 'viaf_id', src->'viaf', | ||
### 'lcnaf', src->'lcnaf', | ||
### 'isni', src->'isni', | ||
### 'wikidata', src->'wikidata', | ||
### 'snac', src->'snac', | ||
### 'orcid', src->'orcid', | ||
### 'image', '', | ||
### 'educated_at', ifnull(src->'educated_at', ''), | ||
### 'caltech', ifnull(src->'caltech', ''), | ||
### 'jpl', ifnull(src->'jpl', ''), | ||
### 'faculty', ifnull(src->'faculty', ''), | ||
### 'staff', ifnull(src->'staff', ''), | ||
### 'alumn', ifnull(src->'alumn', ''), | ||
### 'status', ifnull(src->'status', ''), | ||
### 'directory_person_type', | ||
### ifnull(src->'directory_person_type', ''), | ||
### 'title', ifnull(src->'title', ''), | ||
### 'bio', ifnull(src->'bio', ''), | ||
### 'division', ifnull(src->'division', ''), | ||
### 'authors_count', '', | ||
### 'thesis_count', '', | ||
### 'data_count', '', | ||
### 'advisor_count', '', | ||
### 'editor_count', '', | ||
### 'updated', src->'updated', | ||
### 'include_in_feeds', ifnull(src->'include_in_feeds', '')) as src | ||
### from people | ||
### order by src->'family_name', src->'given_name'"; | ||
### | ||
### SQL | ||
|
||
dsquery \ | ||
-csv "family_name,given_name,cl_people_id,thesis_id,advisor_id,authors_id,archivesspace_id,directory_id,viaf_id,lcnaf,isni,wikidata,snac,orcid,image,educated_at,caltech,jpl,faculty,alumn,status,directory_person_type,title,bio,division,authors_count,thesis_count,data_count,advisor_count,editor_count,updated,include_in_feeds" \ | ||
-sql people_rpt.sql \ | ||
people.ds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters