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

Add Frieze.js #1259

Merged
merged 3 commits into from Aug 4, 2018

Conversation

Projects
None yet
3 participants
@owcz
Copy link
Contributor

owcz commented Mar 12, 2017

Art magazine https://frieze.com/

@owcz

This comment has been minimized.

Copy link
Contributor Author

owcz commented Jul 8, 2018

ready for review

  • removed Framework per #1277
  • now expands on EM
  • multi support for homepage, categories, search
Detect blogposts
@owcz -- much preferred to get item type right in `detectWeb`. Among other things, otherwise tests fail.
@adam3smith
Copy link
Collaborator

adam3smith left a comment

Looks good in general -- see if my question about not excluding /event and /media items from multiples makes sense.



function detectWeb(doc, url) {
if (url.includes("/article/") { // does not handle /event/ or /media/ pages, which EM alone can handle

This comment has been minimized.

@adam3smith

adam3smith Jul 26, 2018

Collaborator

For those /event and media pages, you should be able to exclude them from the EM fixes you make in scrape, right? That way they'd work correctly when imported as part of search results (currently that'd e.g. all turn them into blogposts)

This comment has been minimized.

@owcz

owcz Jul 28, 2018

Author Contributor

The event/media pages are basically listings, so I didn't think anyone would want to cite them like we wouldn't handle classified ads in a newspaper (hence why I excluded them from the multis)
Let me know if you'd still want them

let href = rows[i].href;
let title = ZU.trimInternal(rows[i].textContent);
if (!href || !title) continue;
if (/\/(event|media)\//.test(href)) continue; // scrap items that link to /event/ or /media/ pages

This comment has been minimized.

@adam3smith

adam3smith Jul 26, 2018

Collaborator

if what I say above is right, you could then remove this restriction.

@adam3smith adam3smith removed the on hold label Aug 4, 2018

@adam3smith adam3smith merged commit c2b6d8f into zotero:master Aug 4, 2018

1 check failed

continuous-integration/travis-ci/pr The Travis CI build failed
Details
@adam3smith

This comment has been minimized.

Copy link
Collaborator

adam3smith commented Aug 4, 2018

Thanks!
(I'm not sure what the deal is with the failing tests: it complains about a deleted file that's no in deleted.txt -- but we're not actually deleting anything here)

@owcz owcz deleted the owcz:frieze branch Aug 4, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.