summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/entity_helpers.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #53 from EdwardBetts/spellingbnewbold2020-03-271-1/+1
|\ | | | | Correct spelling mistakes
| * Correct spelling mistakesEdward Betts2020-03-271-1/+1
| |
* | Merge branch 'bnewbold-400-bad-revisions' into 'master'Martin Czygan2020-03-261-2/+12
|\ \ | | | | | | | | | | | | catch ApiValueError in some generic API calls See merge request webgroup/fatcat!35
| * | catch ApiValueError in some generic API callsBryan Newbold2020-03-251-2/+12
| |/ | | | | | | | | | | | | | | | | | | | | | | | | The motivation for this change is to handle bogus revision IDs in URLs, which were causing 500 errors not 400 errors. Eg: https://qa.fatcat.wiki/file/rev/5d5d5162-b676-4f0a-968f-e19dadeaf96e%2B2019-11-27%2B13:49:51%2B0%2B6 I have no idea where these URLs are actually coming from, but they should be 4xx not 5xx. Investigating made me realize there is a whole category of ApiValueError exceptions we were not catching and should have been.
* / improve citeproc/CSL web interfaceBryan Newbold2020-03-251-1/+6
|/ | | | | | | | | | | | | | 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.
* clarify shadow filter codeBryan Newbold2020-02-131-1/+1
|
* filter out shadows-only files in webfaceBryan Newbold2020-02-131-0/+4
|
* improve previous commit (JATS abstract hack)Bryan Newbold2019-12-031-4/+6
|
* hack: remove enclosing JATS XML tags around abstractsBryan Newbold2019-12-031-1/+7
| | | | | | The more complete fix is to actually render the JATS to HTML and display that. This is just to fix a nit with the most common case of XML tags in abstracts.
* refactor all python source for client lib nameBryan Newbold2019-09-051-1/+1
|
* include example releases on container landing pageBryan Newbold2019-09-031-7/+8
| | | | | Included making release search results an entity macro (in webface templates).
* improve wayback view pageBryan Newbold2019-08-241-1/+1
|
* default container stats by ident, not issnlBryan Newbold2019-08-121-1/+1
|
* refactor all entities to new UI styleBryan Newbold2019-06-131-1/+1
|
* implement major refactor for other entity typesBryan Newbold2019-06-131-14/+121
|
* revision links from editgroup, and typofixBryan Newbold2019-06-131-0/+1
|
* container revision viewBryan Newbold2019-06-131-0/+10
|
* web entity helpers (for refactored views)Bryan Newbold2019-06-121-0/+41