![]() |
#1 |
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Apr 2013
Location: Montreal, Qc, Canada
Device: Moon Reader, Xiaomi Note 10
|
Content server- Virtual library list: 1 line by library
Hi
I work a lot with the Calibre Content server, and I would like to modify the way the virtual libraries are listed on the web interface (please see attached image). In fact I just want to display the library name (1), without the search formula (2). The list would then have 1 line by virtual library and would be shorter. Is it possible ? How ? Thanks Gaston |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,108
Karma: 22669824
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You'd have to modify the source code.
|
![]() |
![]() |
![]() |
#3 |
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Apr 2013
Location: Montreal, Qc, Canada
Device: Moon Reader, Xiaomi Note 10
|
Thanks kovidgoyal
Do I have access to the source code, and it it something that I can do ? Gaston |
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Apr 2013
Location: Montreal, Qc, Canada
Device: Moon Reader, Xiaomi Note 10
|
What is the module name ?
Thanks Gaston |
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,108
Karma: 22669824
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Look for th efunction create_vl_panel
|
![]() |
![]() |
![]() |
#6 |
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Apr 2013
Location: Montreal, Qc, Canada
Device: Moon Reader, Xiaomi Note 10
|
Thanks kovidgoyal
I don't find this function... Could you point me out to the right direction ? Thanks again, Gaston ps: as a reminder, using the web interface, I just want to list the virtual libraries with one line each (don't want to display the filter code). Last edited by huotg01; 03-21-2023 at 02:16 PM. |
![]() |
![]() |
![]() |
#7 | |
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Apr 2013
Location: Montreal, Qc, Canada
Device: Moon Reader, Xiaomi Note 10
|
Hi kovidgoyal
I finally found out the function in the JavaScript file viewer.js, in the folder Ressources. 1- I don't know what to change to remove the second line (the filter) in the list 2- When the modification is made, what do I have to do the make it work ? Would you have a minute to help me on that ? Thanks, Gaston Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,846
Karma: 7035877
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#9 | |
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Apr 2013
Location: Montreal, Qc, Canada
Device: Moon Reader, Xiaomi Note 10
|
Quote:
If you have time for a crash course, what do I do from there ? Do I have to rebuilt the whole system with this change ? I did noticed that the viewer.js is in the Calibre folder on my PC. Is there a way to make a change from there ? In short, what is the fastest way to apply the change ? Can I just "patch" something somewhere ? Thanks, Gaston |
|
![]() |
![]() |
![]() |
#10 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,846
Karma: 7035877
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
When happy you can create a calibre release, but that is way way way more work. Just keep running from source, accepting new changes from Kovid as you wish. I have no idea how you would "patch" released calibre to accomplish this. Personally I wouldn't try. I run from source 100% of the time. |
|
![]() |
![]() |
![]() |
#11 |
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Apr 2013
Location: Montreal, Qc, Canada
Device: Moon Reader, Xiaomi Note 10
|
Thank you so much for these informations chaley. I will look at that and try this approche.
Gaston |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Virtual Library and Content Server | sbaylor | Server | 1 | 01-31-2019 10:33 PM |
Creating a Virtual Library on headless content server? | dgauvreau | Library Management | 1 | 09-11-2018 11:56 AM |
Content Server Virtual Library | michaelkrg | Calibre | 11 | 10-18-2017 11:23 PM |
Content Server Library List. | revjoe | Calibre | 1 | 06-19-2017 12:08 AM |
Virtual library on server | passegua | Library Management | 2 | 04-22-2016 01:54 AM |