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

stateful URL? #10

Closed
mkoo opened this issue Oct 19, 2015 · 6 comments
Closed

stateful URL? #10

mkoo opened this issue Oct 19, 2015 · 6 comments

Comments

@mkoo
Copy link
Member

mkoo commented Oct 19, 2015

One of the useful features of the old bscit site was allowing the query to be exposed in the URL so links could be sent and embedded in external pages. Implement some similar solution?

@jdeck88
Copy link
Member

jdeck88 commented Oct 20, 2015

If you search for Annie Alexander between years 1910 and 1920 that is already a static URL like:

http://ecoreader.berkeley.edu/rest/volumes/Alexander,%20Annie%20Montague?begin_date=1920&end_date=1930&section_title=&volume_id=

which will give you a JSON response.

So, i imagine that you don't actually want to look at the JSON, but want to see HTML.

I'm also assuming that you just want to see the results and not statically link to images.

If this is all true, then i think i just need to pop in some Javascript that parses an incoming URL sends the AJAX request automatically with the incoming URL like:

http://ecoreader.berkeley.edu/?author=Alexander,%20Annie%20Montague&begin_date=1920&end_date=1930&section_title=&volume_id=

Is it necessary to coordinate this with already saved queries from the old field notebook site? that could be tricky.

John

@mkoo
Copy link
Member Author

mkoo commented Oct 20, 2015

Not necessary to coordinate with the old site (although that means more work for Archives team to update on OAC etc so perhaps I am speaking out of turn here!). However I'm not seeing the static URL when I am getting search results or cruising through pages.

I only see ecoreader.berkeley.edu/#
So updateQueryString (something something...)?

@jdeck88
Copy link
Member

jdeck88 commented Oct 20, 2015

I was thinking a "Share" Link so users can copy the correct URL.
The parameters are not instantly reflected in the URL since the javascript
is calling the various services directly and doing the rendering. This is
different than the old perl site which had the server rendering everything.

John

On Tue, Oct 20, 2015 at 8:28 AM, Michelle Koo notifications@github.com
wrote:

Not necessary to coordinate with the old site (although that means more
work for Archives team to update on OAC etc so perhaps I am speaking out of
turn here!). However I'm not seeing the static URL when I am getting search
results or cruising through pages.

I only see ecoreader.berkeley.edu/#
So updateQueryString (something something...)?


Reply to this email directly or view it on GitHub
#10 (comment).

John Deck
(541) 914-4739

@mkoo
Copy link
Member Author

mkoo commented Nov 4, 2015

Share link is perfect solution

@jdeck88
Copy link
Member

jdeck88 commented Apr 18, 2016

@jdeck88 jdeck88 closed this as completed Apr 18, 2016
@mkoo
Copy link
Member Author

mkoo commented Apr 18, 2016

Awesome!

On Mon, Apr 18, 2016 at 1:14 PM, John Deck notifications@github.com wrote:

This is now added and working, e.g. see:

http://ecoreader.berkeley.edu/?authors=Alexander%2C%20Annie%20Montague&begin_date=1920&end_date=1928&scanned_only=true


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#10 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants