![]() |
#1 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,484
Karma: 29303820
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Book Details - Clicking on author names setting
@chaley: bit OT - could the Prefs->L&F->BD->Clicking on author names should: list of choices be furnished with a 'Do nothing" option, at the moment I fudge it with a bodgie custom URL.
BR |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,265
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
It is easy to do in the GUI. Unfortunately, doing it in the content server is more problematic because it expects a link to always be there and doesn't discover one isn't until already talking to the browser. That throws errors. Because of that, for me this is a "won't do".
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,484
Karma: 29303820
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Moved this from Template language changes
For curiosity's sake, I tried to test my "Not a URL" custom URL in server, which I do not ordinarily use. This was with 7.26 Portable. I gave up when I got an error message with default settings: When I do the equivalent in desktop, I get: BR |
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,265
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I don't know what you are saying. It seems to be two things:
The second disagrees with the first, confuses me, and is not what I see. If in Prefs / L&F / Book details I put the following: Note that the URL is the text "do_nothing. Authors have the link "do_nothing", which shows in the tooltip. When I click on an author, no web page/tab/anything opens. Instead I get the following in my debug log: Quote:
What did you do? |
|
![]() |
![]() |
![]() |
#5 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,484
Karma: 29303820
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I'm not familiar with the current calibre server UI. I stopped using the old version when the calibre:URL scheme was released. It seems to be targetted for use on mobile phones. I can make and receive voice calls on my iPhone… but that's about it.
So, my 'testing' started with the default settings( V 7.26), which has Clicking on author names should: Search for the author on Goodreads. When I clicked on 'John Schember' in the server Book details, I got a browser tab for "[:1]:8080/web-search/1/authors/John Schember?library_id=Calibre_Library" containing a message "No web search URL for authors John Schember" When I clicked on 'John Schember' in the desktop Book details I got waht you see in attachment 3.jpg, a browser tab for "https://www.goodreads.com/author/show/7163358.John_Schember" I assumed I get the same in server as I get in desktop. I guess my assumptions about how the current calibre server works are wrong… I'll never use it, so let's forget about it. BR Last edited by BetterRed; 02-14-2025 at 07:44 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,953
Karma: 26594922
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Well, "same thing" is a shorthand I used for the changelog. Technically what happens in the server is the URL is passed to the browser via a redirect, if and only if it is a http:// or https:// URL if it is not one of those you will get an error.
|
![]() |
![]() |
![]() |
#7 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,484
Karma: 29303820
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Kovid - It was a fresh install of V7.26 Portable into an empty directory, so all the Preference settings were at their install defaults.
The "[:1]:8080/web-search/1/authors/John Schember?library_id=Calibre_Library" URL in the browser came from calibre when I clicked on John Schember. I have no idea what it even means… although I can hazard a guess. When I click on John Schember in the GUI the relevant Goodreads page opens on a fresh tab in my Firefox. ✔ Maybe the error is caused by my network or Firefox config, or one of the addons I use in it. So, I just did some more tests: I think it's something to do with caching/restarting. I set it to Search for the author on Wikipedia, restarted calibre and cleared browser cache. When I clicked on John Schember in desktop and server I got a not found WikiP page ✔ I stopped server, changed it back to Search for Author on Goodreads, started server, clicked on John Schember and the same WikiP page popped ![]() I stopped server, restarted calibre, started server, clicked on John Schember and the Goodreads page popped ✔ My conclusion, a change to the Prefs->L&F->BD->Clicking on author names should: setting requires a calibre restart. Could be Portable only. Or it could be my Firefox and/or network config; although they are both very straight forward. Given this investigation was for Curiosity’s Sake… i.e. I don't want to use the server… I won't pursue the issue further. Feel free let me know of you want me to try anything specific. BR Last edited by BetterRed; 02-15-2025 at 04:41 AM. |
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,265
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
FWIW and possibly
![]() I did the following and got expected results, running Win11 and Chrome.
The difference could be caching. I have chrome empty the cache and remove most third-party data on close, so there is seldom anything left over. @Kovid: this all started because of an idea to disable default author links. This is trivial to do in the GUI by adding a "Do nothing" choice in L&F / Book details and respecting that choice in render.py 'render_author_link()', returning None,None. However, I couldn't find a way to tell the content server to respect that choice and not show a link on an author, thus disabling the AJAX call on click, so I gave up. |
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,953
Karma: 26594922
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@chaley: If you do want to implement that, you can do so by saving an empty string as "default_author_link". You can check the value fo that at line 291 in book_details.pyj to cotrol what the server renders.
|
![]() |
![]() |
![]() |
#10 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,484
Karma: 29303820
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
↑ ↑ ↑ ✔ Bingo!
My problems were a Firefox issue. They went away when I applied one of my favourite Tweaks: Code:
openers_by_scheme = {'http*': 'C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe %u'} Ironically, if I had used my Installed calibre settings (53 items) rather that the Defaults (8 items) I would not have seen the strange behaviour in Firefox :lol: If there was a Do Nothing option, the value entered for a Custom search URL could perhaps be validated to ensure it is syntactically valid. That's what bothered me, having to induce a desired behaviour by entering dodgy data… it violates my puritanical instincts ![]() BR |
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,265
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#12 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,281
Karma: 72663495
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
What does the magnifying glass in server do?
|
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,953
Karma: 26594922
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#14 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,484
Karma: 29303820
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@kovid, @chaley
![]() BR |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Book Details vs. Link to show book details in popup Window | msel | Library Management | 3 | 03-19-2024 05:48 PM |
Expanding tag browser category when clicking on details pane | ownedbycats | Library Management | 2 | 10-08-2020 12:29 PM |
author search in book details panel | mobic | Library Management | 3 | 11-26-2015 10:50 AM |
[Old Thread] Is there a setting to change how Calibre names a file? | adrenaline | Calibre | 19 | 11-15-2014 11:40 PM |
Book Details Author Link | Chris_Snow | Library Management | 14 | 07-25-2014 10:32 PM |