Skip to content

Commit

Permalink
Merge pull request #44 from mobehbooei/main
Browse files Browse the repository at this point in the history
steps.md completed
  • Loading branch information
mobehbooei authored Nov 8, 2023
2 parents ebfbb49 + 5d95117 commit d8e8925
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
6 changes: 3 additions & 3 deletions gwf_data_extract/modify_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,14 +289,14 @@ def assign_prj(in_file: str, out_file: str, doi2prj_file: str):
with open (out_file, "wb") as files :
tree.write(files, encoding='UTF-8', xml_declaration=True, method='xml')

# get_new_doi_data('DOI_extra.csv')
get_new_doi_data('DOI_extra.csv')
# get_new_doi_data('non_doi_titles.csv')
# find_doi_diffs('gwf_data_extract/doi_from_USask.csv')

# add_doi_to_xml('non_doi_titles.csv', 'data/xml/', 'data/yaml/')
add_doi_to_xml('non_doi_titles.csv', 'data/xml/', 'data/yaml/')
# add_doi_to_xml('extra_publication_cleaned.csv', 'data/xml/', 'data/yaml/')
# add_doi_to_xml('DOI_extra.csv', 'data/xml/', 'data/yaml/')

# handle_HTML_entities("data/xml/G21.xml")
# add_abstract_to_missing("data/xml/G17.xml", "data/xml/G17.xml")
assign_prj("data/xml/G16.xml", "data/xml/G16.xml", "gwf_data_extract/doi2projects.xlsx")
# assign_prj("data/xml/G16.xml", "data/xml/G16.xml", "gwf_data_extract/doi2projects.xlsx")
21 changes: 16 additions & 5 deletions gwf_data_extract/steps.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
# add new DOIs to the website
1- put all your new DOIs in a new csv file
2- from file modify_xml.py run get_new_doi_data() to get the data for these new DOIs
3- from file modify_xml.py run add_doi_to_xml() to add these new papers to xml files
1- put all your new DOIs in a new csv file
2- from file modify_xml.py run get_new_doi_data() to get the data for these new DOIs
3- from file modify_xml.py run add_doi_to_xml() to add these new papers to xml files
4- we should extract the name_variants.yaml file again by go through get_author_institute.ipynb file

# update the projects
1- update the file doi2projects.xlsx for modifining the project or add a new row for new record
2- use create_projects.ipynb to regenerate the projects' numbers (running this code will update the third column of the same file)
1- update the file doi2projects.xlsx for modifining the project or add a new row for new record
2- use create_projects.ipynb to regenerate the projects' numbers (running this code will update the third column of the same file)
3- after generating the doi2project.xlsx file use assign_prj function from modify_xml.py file to modify the xml files

# build the website
Just run this line of code in the root folder of the project

```
sudo ANTHOLOGY_PREFIX="https://gwf-uwaterloo.github.io/gwf-publications" make
```

# Update Docs folder
1- delete all the files and folders inside the docs repo
2- copy all the files and folders inside build/website/gwf-publications repo and paste it to the docs repo

0 comments on commit d8e8925

Please sign in to comment.