Commit graph

202 commits

Author SHA1 Message Date
Edward Betts f322a6f47f New function to get English label for entity 2019-10-09 16:25:17 +01:00
Edward Betts 6a6b5ad373 Refactor: move more catalog code to module 2019-10-09 16:15:21 +01:00
Edward Betts 8cbd0f246f Refactor: move catalog parse code to module 2019-10-09 16:11:43 +01:00
Edward Betts a5e5fa20df Refactor: move some oauth code to module 2019-10-09 16:09:52 +01:00
Edward Betts 85329eab0d Refactor. New wikibase module. 2019-10-09 15:30:48 +01:00
Edward Betts b697be2306 Move three more queries into templates. 2019-10-09 15:27:35 +01:00
Edward Betts a5dfbd040a Move two queries into templates. 2019-10-09 14:38:10 +01:00
Edward Betts d928c46c1d Support item variable not called item. 2019-10-09 14:28:08 +01:00
Edward Betts 2466446644 Link to browse index and property pages. 2019-10-09 13:30:15 +01:00
Edward Betts 76cd8cefba Include property name in the browse page title 2019-10-09 13:29:43 +01:00
Edward Betts 45b9ec23ea Remove debugging output. 2019-10-08 11:44:27 +01:00
Edward Betts f2a264054c fix error when no useful label 2019-10-08 11:43:05 +01:00
Edward Betts bb68a46f59 There can be more than 50 people. 2019-10-08 11:40:48 +01:00
Edward Betts 077cdcfeb2 Show people with the birth/death on item page 2019-10-08 11:11:15 +01:00
Edward Betts 96a03a0abe Search for wikibase for unused depicts. 2019-10-07 21:45:21 +01:00
Edward Betts 888610f5fe Add refresh option to get_entity_with_cache. 2019-10-07 14:23:57 +01:00
Edward Betts 62aff85ae6 Show existing depicts on item page. 2019-10-07 14:12:30 +01:00
Edward Betts 9867e90769 Link to painting item page. 2019-10-07 13:25:10 +01:00
Edward Betts 35c6296210 Reverse order of edit list. 2019-10-07 12:23:13 +01:00
Edward Betts bbd20e6c43 Warn user when no matching depicts items. 2019-10-07 11:46:42 +01:00
Edward Betts a4b10945ce Parse catalog HTML as bytes 2019-10-07 10:39:26 +01:00
Edward Betts 807353303e Catch and ignore ConnectionError for catalog page. 2019-10-07 10:39:15 +01:00
Edward Betts 9688331190 Add option to return wikibase entities as dict. 2019-10-07 10:38:26 +01:00
Edward Betts 5def7e80ad Increase timeout for talking to wikibase. 2019-10-07 10:37:47 +01:00
Edward Betts 52ecfedbfc Disable certificate verification for relaxed SSL. 2019-10-07 10:36:47 +01:00
Edward Betts 5c263c7ef7 Show options as buttons instead of links. 2019-10-07 10:36:27 +01:00
Edward Betts 9e8342b0ec Pick a new random painting
Make sure that a randomly chosen painting hasn't been shown before and
has no depicts statements.
2019-10-07 10:34:53 +01:00
Edward Betts ec4cb0e987 Fix broken save. 2019-10-04 17:00:25 +01:00
Edward Betts 0a6f6308c1 More checks before save. 2019-10-04 16:56:06 +01:00
Edward Betts 924b7a0818 Don't find more if disabled. 2019-10-04 13:37:40 +01:00
Edward Betts 7ca90b2006 Basic user setting 2019-10-04 12:16:16 +01:00
Edward Betts 478d9c6806 Bug fix. 2019-10-04 12:05:27 +01:00
Edward Betts d8c279001e Create depicts object during save, if needed. 2019-10-04 12:02:45 +01:00
Edward Betts c79427f794 Restore dates to browse page. 2019-09-30 19:57:17 +01:00
Edward Betts c096a8fa6e artist name can but None 2019-09-30 19:53:36 +01:00
Edward Betts bb6096927b Fix for items without a label 2019-09-30 14:23:32 +01:00
Edward Betts af4bdb956b Improvements to browse page 2019-09-30 14:23:19 +01:00
Edward Betts 47f31811f9 Only don't show empty catalog description 2019-09-30 12:57:16 +01:00
Edward Betts 0c0858c4ee Bug fix. 2019-09-30 12:52:53 +01:00
Edward Betts faf70a8811 Get description from catalog page. 2019-09-30 12:49:28 +01:00
Edward Betts 514c55cd6e Add language information to label on item page. 2019-09-30 10:19:12 +01:00
Edward Betts 6eb79ccfd5 add timeout to catalog pages 2019-09-29 21:46:39 +01:00
Edward Betts 42a8353ecc Add timeout. 2019-09-29 21:40:27 +01:00
Edward Betts 3d63b6f9f6 bug fix 2019-09-29 21:37:17 +01:00
Edward Betts 42b78da7e3 Add timeouts + ignore anonymous artist. 2019-09-29 21:35:45 +01:00
Edward Betts 918a4a88c8 add error mail 2019-09-29 21:14:41 +01:00
Edward Betts c2727e6fc8 Add pager to browse page. 2019-09-29 20:19:40 +01:00
Edward Betts 146b79bde8 Bug fix missing datavalue. 2019-09-29 19:24:24 +01:00
Edward Betts 9acbefc105 Adjust user model. 2019-09-29 19:01:18 +01:00
Edward Betts 1ca46d0bf2 Show images on next page. 2019-09-29 19:00:59 +01:00