Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit carrel home page template #73

Closed
ericleasemorgan opened this issue Jun 4, 2020 · 2 comments
Closed

edit carrel home page template #73

ericleasemorgan opened this issue Jun 4, 2020 · 2 comments
Assignees
Labels
good first issue Good for newcomers testing/learning There's something to test, learn or demonstrate

Comments

@ericleasemorgan
Copy link
Owner

Edit carrel home page template

The home page of each study carrel is driven by a template file:

https://github.com/ericleasemorgan/reader/blob/master/etc/about.htm

The template is filled with tokens and each token is delimited by a pair of hash marks (##). For example, ##SUMOFWORDS## denotes the total number of words in a carrel.

Since we already know a lot about our data set, the generic template file can be edited to reflect our particular data set, and it can be re-written so it is more formal. For example, remove the bogus notes (things like "[0]"), or add from whence the carrel's data came. In short, copy edit about.htm.

To fix this issue, one does not need to write any software, just edit, test, and repeat. Here's a suggested process:

  1. connect to the cluster - ssh 149.165.170.42
  2. duplicate the template - cp /export/reader/etc/about.htm /export/reader/etc/x-about.htm
  3. edit the template - [for this step, use whatever editor you desire]
  4. using a given test carrel, recreate an about page - cd /export/reader/carrels/tiny-carrel; ../../bin/carrel2about.py > ./index.htm
  5. wait for the process to finish, which is about 20 seconds
  6. evaluate the results by perusing the carrel's home page - http://cord.distantreader.org/carrels/tiny-carrel/
  7. if not satisfied, then go to Step add CDS branding to distantreader.org #3
  8. done

In the end, let Eric know of your progress.

@nkmeyers nkmeyers added good first issue Good for newcomers testing/learning There's something to test, learn or demonstrate labels Jun 5, 2020
@ericleasemorgan
Copy link
Owner Author

Here's are two additional enhancements to this issue, as per Natalie:

On https://cord.distantreader.org/carrels/ update the link from
distantreader logo etc so the user "stays" in
cord.distantreader.org instead of getting punted out to
distantreader.org ?

And figure out another UI way for the user to get back to cord
"carrels" instead of getting punted over to distantreader.org
after clicking into a cord carrel page from
https://cord.distantreader.org/carrels/?

@ericleasemorgan
Copy link
Owner Author

I did much of this work weeks ago. Closing.

@ericleasemorgan ericleasemorgan moved this from To do to Done in Project CORD #5 (done) Jun 26, 2020
@ericleasemorgan ericleasemorgan self-assigned this Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers testing/learning There's something to test, learn or demonstrate
Projects
No open projects
Development

No branches or pull requests

2 participants