aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates
Commit message (Collapse)AuthorAgeFilesLines
...
* experimentally update semantic-ui to fomantic-ui 2.8.6Bryan Newbold2020-07-301-4/+4
| | | | | | | | | | fomatic-ui is a "community fork" which has had more active recent feature additions, though i'm not sure whether the quality has been as good as the main semantic-ui project. the proximal motivation to upgrade/switch is to get multi-bar progress bars, to display overall preservation status in a single bar as a fraction.
* update front-page countsBryan Newbold2020-07-281-3/+3
|
* switch SERP stage coloring to brown uppercaseBryan Newbold2020-07-281-13/+11
| | | | To match fatcat-scholor, where this scheme has been successful.
* error handling: use 400 page with error passed instead of flash()Bryan Newbold2020-07-281-4/+14
|
* generic API error pageBryan Newbold2020-07-281-0/+20
| | | | | | | | | | This error handler and view page currently works much better than the "flash()" infrastructure built-in to flask, which uses cookies and mostly does not work with our views and layouts. Would like to gradually migrate almost all API errors in the web interface to just raising errors that get rendered on an error page, instead of calling `abort(ae.status)`.
* search: catch ES errors and display betterBryan Newbold2020-07-283-13/+19
|
* refactor search macros into new fileBryan Newbold2020-07-284-45/+72
|
* refactor release and container searchBryan Newbold2020-07-243-23/+23
| | | | | | | | | | Based on fatcat-scholar refactoring. This doesn't include refactoring of stats, aggregates, or histograms yet, just the direct queries. Don't have any test coverage yet; intend to try elasticmock or figuring out how to ingest mock JSON results directly.
* make fulltext-only label clickableMartin Czygan2020-06-161-2/+2
|
* use ES 'best_url' in file download pagesBryan Newbold2020-06-041-2/+2
| | | | Similar to recent change for release download pages.
* re-use 'best pdf url' for release green buttonBryan Newbold2020-06-041-2/+2
| | | | | | | I thought this was the existing behavior, but it looks like we were just taking the first link from the first file. In the future may refactor this out even further.
* Merge branch 'bnewbold-search-tweaks' into 'master'bnewbold2020-04-273-92/+132
|\ | | | | | | | | tweaks to search result pages See merge request webgroup/fatcat!50
| * web search: tweak release search result styleBryan Newbold2020-04-231-25/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | This is also back-ported from covid19.fatcat.wiki, though with some more tweaks on top. The changes are: - show original title if available (usually non-English) - move release_type label to title line suffix, and only show if not a "paper" - show publication status and withdrawl as text after the journal title, not as a label
| * web search: improve indentation, fix missing div tagsBryan Newbold2020-04-232-67/+81
| | | | | | | | These are back-ported fixes from covid19.fatcat.wiki
* | web: fix ident=None broken linksBryan Newbold2020-04-233-6/+10
|/ | | | | | On web interface views for revisions, we had a bunch of broken links because the ident is "None". This commit fixes these by removing the links.
* web: small corrections to subtitle/original_nameBryan Newbold2020-03-281-2/+2
|
* Merge branch 'bnewbold-translation-view'Bryan Newbold2020-03-281-0/+3
|\
| * web: display container original titlesBryan Newbold2020-03-261-0/+3
| |
* | improve citeproc/CSL web interfaceBryan Newbold2020-03-251-2/+1
|/ | | | | | | | | | | | | | This tries to show the citeproc (bibtext, MLA, CSL-JSON) options for more releases, and not show the links when they would break. The primary motivation here is to work around two exceptions being thrown in prod every day (according to sentry): KeyError: 'role' ValueError: CLS requries some surname (family name) I'm guessing these are mostly coming from crawlers following the citeproc links on release landing pages.
* container lookup: link to issn portal searchMartin Czygan2020-03-181-4/+3
| | | | | | | | | Example: https://fatcat.wiki/container/lookup?issnl=2007-1248 - the linked https://portal.issn.org/2007-1248 yields a "page not found", while search yields results: https://portal.issn.org/api/search?search[]=MUST=allissnbis=2007-1248
* update front-page statsBryan Newbold2020-03-171-3/+3
|
* filter out shadows-only files in webfaceBryan Newbold2020-02-131-2/+3
|
* pagination: use correct endpoint in navigationMartin Czygan2020-01-182-6/+6
|
* datacite release links and metadata expansionBryan Newbold2019-12-202-9/+13
| | | | | | | Small ergonomic changes for datacite releases: - add a link to live/current datacite metadata (like we do for Crossref) - expand "extra" metadata fields under 'datacite' dict in metadata view
* initial 'Save Paper Now' web formBryan Newbold2019-12-122-1/+98
|
* fix delete release history viewBryan Newbold2019-12-091-1/+1
| | | | | | This was causing 5xx errors in production and qa. Eg, at: https://qa.fatcat.wiki/release/aaaaaaaaaaaaarceaaaaaaaaai/history
* add missing underline in deleted entity web viewBryan Newbold2019-12-091-1/+1
|
* gray out inactive navigation linksMartin Czygan2019-11-141-2/+2
| | | | | | | | As per [this issue](https://github.com/Semantic-Org/Semantic-UI/issues/1885#issuecomment-77619519), text colors are not supported in semantic ui. To not move text too much, gray out inactive links.
* move pagination into macrosMartin Czygan2019-11-143-43/+51
| | | | | | | | | Two new macros: * top_results(found) * bottom_results(found) wip: move pagination into macro
* Add basic pagination to search resultsMartin Czygan2019-11-082-3/+42
| | | | | | | | | | | | The "deep paging problem" imposes some limit, which currently is a hardcoded default value, `deep_page_limit=2000` in `do_search`. Elasticsearch can be configured, too: > Note that from + size can not be more than the index.max_result_window index setting, which defaults to 10,000. -- https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html#request-body-search-from-size
* webface: extra <br> in container lookup linksBryan Newbold2019-09-211-1/+1
|
* remove duplicate style ref in container edit viewBryan Newbold2019-09-201-5/+0
|
* add guide editing links to edit forms and signup messageBryan Newbold2019-09-184-4/+24
|
* python webface impl token generationBryan Newbold2019-09-182-1/+44
|
* slightly less annoying 'flash' message headerBryan Newbold2019-09-181-1/+1
|
* small tweaks to coverage pagesBryan Newbold2019-09-061-0/+1
|
* small fixes to release viewBryan Newbold2019-09-051-14/+24
| | | | | - full width container metadata table accordion - fix "Published in by blah" cases
* finish container coverage pageBryan Newbold2019-09-043-28/+84
| | | | Also re-worked container view sidebar a bit more.
* start container coverage pageBryan Newbold2019-09-042-1/+18
|
* webface: improve container sidebar styleBryan Newbold2019-09-041-41/+84
|
* include example releases on container landing pageBryan Newbold2019-09-033-74/+86
| | | | | Included making release search results an entity macro (in webface templates).
* do release search by container_id, not issnlBryan Newbold2019-09-031-2/+1
|
* update front-page stats (for containers number)Bryan Newbold2019-09-031-3/+3
|
* additional container webface edit fieldsBryan Newbold2019-09-031-1/+5
|
* webface include webarchive_urls for containersBryan Newbold2019-09-032-1/+6
|
* perpetual access to the scholarly recordBryan Newbold2019-08-241-1/+1
|
* fix revision JSON entity links in webface side barBryan Newbold2019-08-241-1/+15
|
* simplify url_list() template macroBryan Newbold2019-08-241-10/+4
|
* improve wayback view pageBryan Newbold2019-08-241-2/+23
|
* Read Full Text not DownloadBryan Newbold2019-08-241-2/+2
| | | | | On release views. Also don't blue-link webcapture URLs (but still a hyperlink).