R+D has created a parsing tool to translate csv files from our Google spreadsheet into yaml code which the website uses. The parser runs on Node.js within an NVM environment, using Node version 11.11.0. (See: https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
== Using the parser ==
* The parser is located at X:\Programming\ahs_survey_parser\
- Download each tab from the Google spreadsheet as a CSV and place in the "csv" folder.
- Run the parser using the "npm start" command (note: must be run from the ahs_survey_parser directory).
- If no errors occurred, the yaml folder should now contain the updated web code.
- Navigate to each webform to be updated and click "build" (each webform must be manually updated this way - snacks, smoothies, female history, etc.)
* https:adventisthealthstudy.org/admin/structure/webform (test site: https:s9-adventisthealthstudy.lluh.org/admin/structure/webform)
* Note: must be logged in, with appropriate permissions
- Select the "source" tab and paste updated yaml code into that window.
- Click "save" and the updated content should be immediately available.
== Build links ==
* Mixed Foods
* Sandwiches
* Mexican-style Dishes
* Pizza
* Asian Food
* Casseroles, Hotdishes, Loaves
* Pasta & Rice
* Egg-based Dishes
* Chili
* Stews
* Soups
* Vegetable Dishes
* Individual Foods
* Meats & Fish
* Meat Alternatives
* Dairy Alternatives
* Nuts/Seeds
* Vegetables
* Legumes
* Fruits
* Smoothies
* Beverages
* Additions
* Cereal
* Breads & Grains
* Snacks
* Other
* Supplements
* Eating Habits
* Medical History
* Female History
* Lifestyle Habits
* Census Data
* Removed
* Noodles & Rice - Merged into Pasta & Rice
* Cooked Mixed Vegetables - Merged into vegetable dishes
== Build links (test site)==
* Mixed Foods
* Sandwiches
* Mexican-style Dishes
* Pizza
* Asian Food
* Casseroles, Hotdishes, Loaves
* Pasta & Rice
* Egg-based Dishes
* Chili
* Stews
* Soups
* Vegetable Dishes
* Individual Foods
* Meats & Fish
* Meat Alternatives
* Dairy Alternatives
* Nuts/Seeds
* Vegetables
* Legumes
* Fruits
* Smoothies
* Beverages
* Additions
* Cereal
* Breads & Grains
* Snacks
* Other
* Supplements
* Eating Habits
* Medical History
* Female History
* Lifestyle Habits
* Census Data
* Removed
* Noodles & Rice - Merged into Pasta & Rice
* Cooked Mixed Vegetables - Merged into vegetable dishes