paul-tqh-nguyen / arxiv_as_a_newspaper

arxiv.org portrayed as if it were a news paper.
0 stars 0 forks source link

Make the "Previous Research Field" and "Next Research Field" buttons store the current research field in the link. #33

Closed paul-tqh-nguyen closed 5 years ago

paul-tqh-nguyen commented 5 years ago

This will let us refresh the page and not lose state.

paul-tqh-nguyen commented 5 years ago

This isn't a fool-proof plan.

We can store the index of the field being shown currently, but there is no guarantee that the index will always correspond with the same research field and there's no guarantee that the research field will always exist in the DB.

The DB can change such that the number of research fields changes, so the same link will take us to a different place.

The DB can change such that a research field's name changes.

This feature would still be nice as this would work most of the time.

However, given the above and the lack of a true motivating case, we'll put it off for now.

paul-tqh-nguyen commented 5 years ago

This goal was accidentally accomplished in passing as part of https://github.com/paul-tqh-nguyen/arxiv_as_a_newspaper/commit/f4c41721ece572e2ac5a1772f6604e18028122b1.