summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/entity_helpers.py
Commit message (Collapse)AuthorAgeFilesLines
* web: expand release creators in more situationsBryan Newbold2021-04-191-1/+1
|
* routes: handle case of viewing deleted entity in editgroup contextBryan Newbold2020-07-301-1/+26
| | | | | | Eg, consider deleting an entity. When viewing the editgroup, want to be able to click the deleted entity and see the "deleted entity" page instead of a generic 404.
* move container _stats enrichment to routesBryan Newbold2020-07-301-8/+1
| | | | | These were being added to many views which didn't need them (eg, metadata, editing views)
* web: move random article enrichment to special caseBryan Newbold2020-07-301-4/+2
| | | | | Instead of always enriching container entities with random articles, only do so for the primary container view.
* use ES 'best_url' in file download pagesBryan Newbold2020-06-041-0/+2
| | | | Similar to recent change for release download pages.
* web: small corrections to subtitle/original_nameBryan Newbold2020-03-281-0/+2
|
* Merge branch 'bnewbold-translation-view'Bryan Newbold2020-03-281-0/+4
|\
| * web: use more idiomatic type checkBryan Newbold2020-03-281-1/+1
| | | | | | | | Thanks to Martin for suggestion
| * web: copy extra.subtitle to subtitle for release viewBryan Newbold2020-03-261-0/+4
| | | | | | | | | | The release view will display subtitles, but it needs to be in the correct "location".
* | 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