View Single Post
Old 03-23-2023, 08:18 AM   #7
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
Don't get too hung up with inter-library links - most of my calibre:// links are intra-library links. Lets look at what happens with show-book links (leaving VLs aside).
The problem is that the code constructs links for the values displayed in book details, for example tags. That leaves me with three choices:
  1. Change the code (in a lot of places) to not generate the links.
  2. Change the code to generate cross-library links.
  3. Do (almost) nothing and have the links search the current library, not the other library.
My preference is #3.

Quote:
Now lets look at what I envisage show-details links will do

when calibre://show-details/libraryA/32 is clicked

a Book Details window would pop for book 32 in libraryA - the current library list wouldn't change

That's it - no library switching, no loss of current book. But that's the tricky part
Not as tricky as you might think.
I have a prototype working.
NB: this screams for allowing multiple book details windows.
Quote:
If I put a view-book link to a book in library FOO into a book in library BAR - when I click on it in library BAR, library FOO becomes the current library.

I've 'tolerated' the limitation because I don't do much inter-library linking of content - my content links are predominantly intra-library links.

But the whole point of show-details is to maintain library and book currency. So, if that could be finagled for show details it could hopefully be retrofitted to view-book

BR
Do you mean view a book in some other library without changing the current library? That's baked rather deep into the URL scheme. I'm not going to worry about it.
chaley is offline   Reply With Quote