Commit Graph

46684 Commits

Author SHA1 Message Date
Kovid Goyal 9b8dce3034 string changes 2023-04-03 10:10:18 +05:30
Kovid Goyal f7304bd691 ... 2023-04-02 19:56:38 +05:30
Kovid Goyal 3d2ef6486b Fix #2012797 [Enhancement request: Different shade for active VL tab](https://bugs.launchpad.net/calibre/+bug/2012797) 2023-04-02 19:49:30 +05:30
Kovid Goyal 8959ada93f pep8 2023-04-02 19:28:58 +05:30
Kovid Goyal 397fe04839 Merge branch 'master' of https://github.com/cbhaley/calibre 2023-04-02 19:27:15 +05:30
Kovid Goyal f25c42f027 ... 2023-04-02 19:08:51 +05:30
Charles Haley d2d69fedfe Add Category edit buttons to columns that have category editors.
Authors, Series, Tags, Publisher, custom columns
2023-04-02 12:31:33 +01:00
Kovid Goyal 8e1982c700 Content server: Fix re-opening book from home page after making progress not opening to correct last read position when a user is logged in. Fixes 2011755 2023-04-02 14:29:50 +05:30
Kovid Goyal 8e18a509cb A better fix for block properties not being copied in comments_editor
Removing the fragment copies causes pasting of the HTML into another
comment editor to insert a spurious block. Instead move the
<!--StartFragment--> comment to before <p> when needed.
2023-04-02 12:59:05 +05:30
Kovid Goyal d84721866c Comments editor: When copying to clipboard, copy clean HTML rather than the junk Qt produces. Fixes #2012760 [Enhancement Request: Copy text alignment between html longtext columns](https://bugs.launchpad.net/calibre/+bug/2012760) 2023-04-02 12:24:57 +05:30
Kovid Goyal 5c3c70bbbd Comments editor: Fix a regression in Qt 6 that caused standard keyboard shortcuts to trigger the underlying Qt implementations instead of our custom implementations 2023-04-02 12:10:52 +05:30
Kovid Goyal 60985b35c1 Remove no longer working recipe 2023-04-02 11:49:12 +05:30
Kovid Goyal 02f50bf6ce Use both a colored border and an icon to indicate errors in line edits. Fixes #2007764 [Enhancement Request: Valid/invalid metadata display options](https://bugs.launchpad.net/calibre/+bug/2007764) 2023-04-02 11:24:27 +05:30
Kovid Goyal bcfb519afb Merge branch 'master' of https://github.com/cbhaley/calibre 2023-04-02 09:31:31 +05:30
Charles Haley 265f2d51ef Enhancement: add a "Copy all links" option to book details 2023-04-01 22:21:38 +01:00
Charles Haley 72ea69f8d9 Fix links for series and custom series columns being confounded 2023-04-01 21:55:27 +01:00
Kovid Goyal bb401748bc Merge branch 'master' of https://github.com/cbhaley/calibre 2023-04-01 17:29:55 +05:30
Charles Haley fe60fd8125 Big oops. I broke the category editor. 2023-04-01 11:50:29 +01:00
Kovid Goyal 5b9d05214c Merge branch 'master' of https://github.com/cbhaley/calibre 2023-04-01 13:48:55 +05:30
Charles Haley e11b8c8b46 If a show-details link references the current library, use the current db instead of opening it again. 2023-04-01 08:59:45 +01:00
Kovid Goyal e16179c9da Fix #2012066 [Add "Restart Now" button when installing plugin from file](https://bugs.launchpad.net/calibre/+bug/2012066) 2023-04-01 11:00:26 +05:30
Kovid Goyal 5df12a6434 A new tweak in Preferences->Tweaks to control what program is run when clicking on URLs in calibre 2023-04-01 10:29:26 +05:30
Kovid Goyal 9aa239b3a8 ... 2023-04-01 09:33:36 +05:30
Kovid Goyal 86126438ad Book details popup: Fix fields for external libraries not using the correct preference 2023-04-01 07:56:14 +05:30
Kovid Goyal aaa4d223d1 Merge branch 'master' of https://github.com/cbhaley/calibre 2023-04-01 07:51:25 +05:30
Charles Haley ee09a85cf4 Add context menu item to get a book-details link 2023-03-31 19:11:10 +01:00
Kovid Goyal eacbbc1f88 Update Saechsische Zeitung 2023-03-31 22:49:34 +05:30
Kovid Goyal c466c04db4 Merge branch 'master' of https://github.com/cbhaley/calibre 2023-03-31 21:43:33 +05:30
Charles Haley 8e22dd8822 Remake a change that shouldn't have been reverted. 2023-03-31 17:05:17 +01:00
Charles Haley ecb22f5e61 Revert "Simplify code for managing multiple book info dialogs"
This reverts commit 5d6664b002.
2023-03-31 15:31:12 +01:00
Kovid Goyal 5f515131a5 Content server: Add support for link_maps
Only URLs of type http(s) are allowed
2023-03-31 14:38:38 +05:30
Kovid Goyal 899ffb4e61 Fix typo causing book specific link map to contain entries for all items 2023-03-31 14:01:17 +05:30
Kovid Goyal 00832ca25b Final minor cleanup for previous PR 2023-03-31 13:38:32 +05:30
Kovid Goyal 5d6664b002 Simplify code for managing multiple book info dialogs 2023-03-31 13:33:06 +05:30
Kovid Goyal b89de1ccf1 Use the library broker for showing book info popups for non-current libraries
Also use an icon for the external links
2023-03-31 10:39:57 +05:30
Kovid Goyal 866c15f233 When adding a book import its link map for any items that dont have an existing link 2023-03-30 17:20:07 +05:30
Kovid Goyal 8447e8791f Add a test for restoring library 2023-03-30 14:37:58 +05:30
Kovid Goyal f2445ad87a Get rid of author_link_map
Also implement support for link_maps metadata in EPUB3 and PDF.
Reading proceeds by returning the link_maps if present, otherwise look
for a legacy author_link_map and return a link_maps constructed from it.

Writing simply sets link_maps, which as per the sceme above takes
precedence anyway.
2023-03-30 13:41:20 +05:30
Kovid Goyal 44001e2c60 Some link map micro optimizations I missed in my previous review 2023-03-30 13:25:54 +05:30
Kovid Goyal 6ddef11819 Use a getter for link_maps in ProxyMetadata
Also allow is_null() to work with it.
2023-03-30 08:56:19 +05:30
Kovid Goyal aabd29c571 Clean up DB code from previous PR
Note that string literals in SQLITE should be single quoted.
https://sqlite.org/quirks.html#dblquote
2023-03-30 08:37:17 +05:30
Kovid Goyal b3aafddf5a Merge branch 'master' of https://github.com/cbhaley/calibre 2023-03-30 07:27:11 +05:30
Charles Haley a4e49d85c1 Changes as discussed. Tests improved to check that the cache is cleared and that ProxyMetadata returns the link map 2023-03-27 12:53:26 +01:00
Charles Haley 26d88d1d65 Improved tests for link maps. Includes a fix for a problem the test found. 2023-03-26 11:25:01 +01:00
Kovid Goyal 6f6da27160 Similar books: Fix changing the search to be over a custom column not working. Fixes #2012803 ["Similar Books" does not search using column lookups names specified in settings](https://bugs.launchpad.net/calibre/+bug/2012803) 2023-03-26 10:03:41 +05:30
Charles Haley d95d7f4048 Fixes: the UI didn't properly delete links 2023-03-25 17:03:51 +00:00
Charles Haley ff4ed26896 This is a large commit.
DB changes:
1) Add link columns to "normalized" tables. All such in-memory tables have an attribute self.link_map.
2) Add API to set and get links for fields
3) get_metadata now includes an attribute giving the link maps for the book. Book link maps are cached.
4) ProxyMetadata can return link maps
5) Added a test for the API.

URL Scheme:
1) Added a "book-details" URL that asks calibre to open a book info window on a book in some library

Book Details:
1) You can now have multiple book info windows.
2) If an item as an associated link then that link is made available using "(item link)" link text.
3) Book info windows on books in other libraries have no links

UI:
1) the Manage Category editor presents a fourth column for links.

OPF:
1) The OPF used for backing up (metadata.opf) contains the link map for the book. Currently this isn't used, but it should be used in recover_database. I didn't do anything with OPF3.
2023-03-25 16:46:14 +00:00
Kovid Goyal b2aa59b484 Update LA Times 2023-03-24 13:00:46 +05:30
Kovid Goyal d64423a95f Update Mediapart 2023-03-24 12:56:14 +05:30
Kovid Goyal b55dd98bce Tag mapper: Ensure tag rules are unicode normalized before matching 2023-03-21 15:46:27 +05:30