Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-21-2017, 02:07 PM   #1
marcb81
Junior Member
marcb81 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2014
Device: none
Mouse drag-and-drop sorting

A lot of people would like the possibility to sort books via drag and drop with the mouse from the bookshelf view.
Anybody can implement this feature?
How this can be done?
Any prototyping sample code?
Thanks
Marc
marcb81 is offline   Reply With Quote
Old 12-21-2017, 03:15 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by marcb81 View Post
A lot of people would like the possibility to sort books via drag and drop with the mouse from the bookshelf view.
Have you considered the View Manager plugin?

BR
BetterRed is offline   Reply With Quote
Old 12-21-2017, 08:43 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,354
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Sorting of books in calibre is done based on metadata. I dont see how sorting by drag and drop would possibly fit into that. If you want to sort books based on some arbitrary criteria, create a custom column in Preferences->Add your own columns containing a number and assign numbers to that.
kovidgoyal is online now   Reply With Quote
Old 12-27-2017, 02:23 PM   #4
marcb81
Junior Member
marcb81 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2014
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Sorting of books in calibre is done based on metadata. I dont see how sorting by drag and drop would possibly fit into that. If you want to sort books based on some arbitrary criteria, create a custom column in Preferences->Add your own columns containing a number and assign numbers to that.
Hi Kovidgoyal,
I think there are a lot of people that would like to have this feature i.e. to be able to sort via drag-and-drop with the mouse on some arbitrary criteria mimicking what happen when you rearrange the books on the shelf.
May be in Calibre should come with a built-in column named for example
"arbitrary sorting" that will be automatically set to a number each time you manually sort books with the mouse.
It is up to the user to choose this "arbitrary sorting" column or any other metadata column to sort the books.

Could you please give some suggestions/sample code on hiw to implement this feature?
What programming language you have to use?
Thanks
Marc
marcb81 is offline   Reply With Quote
Old 12-27-2017, 03:31 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by marcb81 View Post
Hi Kovidgoyal,
I think there are a lot of people that would like to have this feature i.e. to be able to sort via drag-and-drop with the mouse on some arbitrary criteria mimicking what happen when you rearrange the books on the shelf.
May be in Calibre should come with a built-in column named for example
"arbitrary sorting" that will be automatically set to a number each time you manually sort books with the mouse.
It is up to the user to choose this "arbitrary sorting" column or any other metadata column to sort the books.

Could you please give some suggestions/sample code on hiw to implement this feature?
What programming language you have to use?
There are are approximately 3 million active users of calibre. I've been a member here for almost 6 years, and yours is the first request for this feature I've seen. So I'm curious as to the evidence on which you base your assertion "... there are a lot of people that would like to have this feature ...".

Most people would order physical books on shelves by author within genre.

Re which language etc see ==>> Setting up a calibre development environment

BR
BetterRed is offline   Reply With Quote
Old 12-27-2017, 06:07 PM   #6
sjfan
Addict
sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.
 
Posts: 281
Karma: 7724454
Join Date: Sep 2017
Location: Bethesda, MD, USA
Device: Kobo Aura H20, Kobo Clara HD
Quote:
Originally Posted by BetterRed View Post
Most people would order physical books on shelves by author within genre.
I'd think that sorting by series (within author) would be among the more universally used sorts, probably even more common than genre. I definitely want:
  • The Hobbit
  • The Fellowship of the Ring
  • The Two Towers
  • The Return of the King
  • The Silmarillion

rather than:
  • The Fellowship of the Ring
  • The Hobbit
  • The Return of the King
  • The Silmarillion
  • The Two Towers

I also usually split things into a few virtual libraries (Fiction / Nonfiction / Children's / Manuals), akin to how the libraries I grew up using split children's, fiction, and non-fiction into separate areas. I make sure every new book is tagged with one of Fiction / Nonfiction, and manuals and children's books are tagged as such, and then set up the virtual libraries based on those tags.

When viewing withing a virtual library, I sort by series and then author.

*Whenever I get a new device or appliance, I download a PDF of the manual from the manufacturer and add it to the library so I don't have to accumulate all the paper ones and keep track of them.
sjfan is offline   Reply With Quote
Old 12-27-2017, 06:29 PM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,210
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by sjfan View Post
I'd think that sorting by series (within author) would be among the more universally used sorts, probably even more common than genre.
I would have to agree with BetterRed in that you are the only person I've seen requesting that feature. If nothing else, with my library sizes, I can't see all the books on screen at once so sorting by drag and drop is a bit useless. Sorting by series then author works well enough though that generally involves scrolling through multiple screen so I generally search (author, series, custom tags) to reduce the number of screens and then sort the results. If you really enjoy the effort, you could generate a custom field and sort on that but that, to me, comes under the insufficient returns for the work involved label.
DNSB is offline   Reply With Quote
Old 12-27-2017, 07:48 PM   #8
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@sjfan - the OP wrote

Quote:
Originally Posted by marcb81 View Post
... mimicking what happen when you rearrange the books on the shelf ...
I took that to mean moving paper books around on wooden or metal shelves, hence I wrote:

Quote:
Originally Posted by BetterRed View Post
Most people would order physical books on shelves by author within genre.
Which infers most people (i.e those that like a bit of order in their lives) wouldn't order them arbitrarily - unless they only had a few books, or they bought them by the yard for decorative reasons

BR

Last edited by BetterRed; 12-27-2017 at 07:52 PM.
BetterRed is offline   Reply With Quote
Old 12-27-2017, 08:25 PM   #9
sjfan
Addict
sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.sjfan ought to be getting tired of karma fortunes by now.
 
Posts: 281
Karma: 7724454
Join Date: Sep 2017
Location: Bethesda, MD, USA
Device: Kobo Aura H20, Kobo Clara HD
Quote:
Originally Posted by BetterRed View Post
@sjfan - the OP wrote



I took that to mean moving paper books around on wooden or metal shelves, hence I wrote:



Which infers most people (i.e those that like a bit of order in their lives) wouldn't order them arbitrarily - unless they only had a few books, or they bought them by the yard for decorative reasons

BR
Yeah, I mostly agree that people tend not to order things arbitrarily, I'm just adding that series is one of the critical fields people sort by (with physical books as well as ebooks).

OTOH I have seen a few people sort their physical bookshelves by size/color and other odd choices, to make the room look prettier. And physical constraints (e.g. tall books have to go on the bottom shelf) often impact things—but e-books should thankfully be immune to that.
sjfan is offline   Reply With Quote
Old 12-28-2017, 02:08 AM   #10
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by marcb81 View Post
Hi Kovidgoyal,
I think there are a lot of people that would like to have this feature i.e. to be able to sort via drag-and-drop with the mouse on some arbitrary criteria mimicking what happen when you rearrange the books on the shelf.
May be in Calibre should come with a built-in column named for example
"arbitrary sorting" that will be automatically set to a number each time you manually sort books with the mouse.
It is up to the user to choose this "arbitrary sorting" column or any other metadata column to sort the books.

Could you please give some suggestions/sample code on hiw to implement this feature?
What programming language you have to use?
I have to agree with the others. Most of my shelves were organised by author and then title. But, there was one which was effectively random as new books, or recently finished books were put there until I shelved the properly. On set of shelves is about 3M tall, so I would occasionally get a ladder out to shelve them properly.

To achieve what I think you want, you try the Reading List plugin. With this, you create a list, add books to it and order them how you want. The ordering isn't drag-and-drop, but select and push some arrows. I think it will come close to what you want.
davidfor is offline   Reply With Quote
Old 12-28-2017, 10:02 AM   #11
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,057
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by sjfan View Post
OTOH I have seen a few people sort their physical bookshelves by size/color and other odd choices, to make the room look prettier. And physical constraints (e.g. tall books have to go on the bottom shelf) often impact things—but e-books should thankfully be immune to that.
I used to do the size thing (but those were still by author) because I set the shelf spacing for the majority of my books.
Regular and Oversized
The really huge books were left flat and became a sleeping platform for the cat
theducks is online now   Reply With Quote
Old 12-28-2017, 02:42 PM   #12
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by davidfor View Post
With this, you create a list, add books to it and order them how you want. The ordering isn't drag-and-drop, but select and push some arrows. I think it will come close to what you want.
- there's always something to learn about calibre and its plugins.

I use RL most every day, but I rarely use Edit and I never noticed the green arrows.

So, both the the content of a list and its order can be arbitrary; which makes sense when you think about the PIs raison d'être.

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
When drag&drop sorting on the covr grid? marcb81 Library Management 2 02-04-2014 06:46 PM
No more Drag and Drop? hard_boiled Library Management 14 09-29-2013 07:44 PM
LG launches world’s first ‘Drag and Share’ mouse scanner Chi Cygni News 19 01-23-2012 04:20 PM
Mouse drag equivalent in K3 browser omk Amazon Kindle 1 02-18-2011 01:42 AM
Drag 'n' Drop Perkin Calibre 17 10-06-2010 11:46 AM


All times are GMT -4. The time now is 10:20 AM.


MobileRead.com is a privately owned, operated and funded community.