Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 12-13-2013, 09:05 AM   #1
ethx
Junior Member
ethx began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2013
Device: kindle fire
Library count not matching the number of books

I have 358 books in the library. The number next to the "isbn" identifier is 359. When I click on it, on the bottom of the screen shows '358 books'. All other book numbers and totals add up.

How do I find "ghost" book?

Calibre: 1.1.14.0
ethx is offline   Reply With Quote
Old 12-13-2013, 12:35 PM   #2
aleyx
Addict
aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.
 
Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
The ID of a book (which is probably what you have next to the ISBN) does not follow the number of books in the library. It is a simple incremental number, unique to that book.

Therefore, if you add, say, 12 books to an empty library, the next book you add will be #13. Now delete book #5. Book #13 is still #13, but there's now only 12 books in the library, and no "ghost book".

Or maybe I didn't understand your question.
aleyx is offline   Reply With Quote
Advert
Old 12-13-2013, 12:43 PM   #3
ethx
Junior Member
ethx began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2013
Device: kindle fire
I attached screenshot that should make it clear.
Attached Thumbnails
Click image for larger version

Name:	calibre.png
Views:	246
Size:	47.7 KB
ID:	116654  
ethx is offline   Reply With Quote
Old 12-13-2013, 01:04 PM   #4
aleyx
Addict
aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.
 
Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
Ah! Yeah, the problem is clearer.

Now seeing this... I thought at first that there was maybe a book with two ISBNs, but I've tried that and the second is automatically removed (Well actually the second in the identifiers list had priority and the first is removed).

Strange...

EDIT: Try to install the Quality Check addon; the "Check metadata/CheckISBN" option can maybe track the error.

Last edited by aleyx; 12-13-2013 at 01:09 PM.
aleyx is offline   Reply With Quote
Old 12-13-2013, 01:24 PM   #5
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,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
You may have a database error.
Perform Library Maintenance check
theducks is offline   Reply With Quote
Advert
Old 12-13-2013, 01:40 PM   #6
ethx
Junior Member
ethx began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2013
Device: kindle fire
Thank you for your help guys.

I installed Quality Check and found no errors.
Books > Check Library also show "no errors"
ethx is offline   Reply With Quote
Old 12-13-2013, 01:56 PM   #7
aleyx
Addict
aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.
 
Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
What about a search like "identifiers:isbn and not identifiers:amazon" ?

EDIT: Also, try to add a custom column, and click "isbn" on the new column form. When you've got Calibre restarted, sort by ISBN, enlarge the column, and see if there's one of 'em that doesn't look right.

Last edited by aleyx; 12-13-2013 at 02:01 PM.
aleyx is offline   Reply With Quote
Old 12-13-2013, 02:52 PM   #8
ethx
Junior Member
ethx began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2013
Device: kindle fire
Quote:
Originally Posted by aleyx View Post
What about a search like "identifiers:isbn and not identifiers:amazon" ?
No results

Quote:
EDIT: Also, try to add a custom column, and click "isbn" on the new column form. When you've got Calibre restarted, sort by ISBN, enlarge the column, and see if there's one of 'em that doesn't look right.
They all seem consistent.
ethx is offline   Reply With Quote
Old 12-13-2013, 03:32 PM   #9
aleyx
Addict
aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.
 
Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
Hm.

I've got a couple more things to try, but it involves installing an SQLite database explorer; mine is actually an addon for Firefox. Are you okay with that? I don't want to tell you what to install on your own computer...
aleyx is offline   Reply With Quote
Old 12-13-2013, 04:00 PM   #10
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,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Not all books will always have all 3 identifiers
Are you sure you don't have a Virtual Library (or saved search) in place?

Try this search (NOT tested. might not work)
Code:
identifiers:isbn:#>1
theducks is offline   Reply With Quote
Old 12-13-2013, 04:09 PM   #11
aleyx
Addict
aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.
 
Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
His (her?) screenshot tends to show that there are only 358 book in the collection/library/virtual library. Since the tag browser lists 359 ISBNs, either a book has two ISBNs, or the identifiers table has an orphan record (a record whose 'book' field has an ID not in the `books`table).

If the former, your search query (I didn't know that one, thanks) should show which book.

If the latter, a query like 'SELECT * FROM identifiers WHERE book NOT IN (SELECT id FROM books)' should list the record in error.

edit: identifiers:isbn:#>0 returns no book, so I don't know if identifiers:isbn:#>1 would work after all...

Oh, and my query is, of course, an SQL query and should be run from an sqlite explorer program. Running it in Calibre would have no useful effect.

Last edited by aleyx; 12-13-2013 at 04:14 PM.
aleyx is offline   Reply With Quote
Old 12-13-2013, 05:26 PM   #12
ethx
Junior Member
ethx began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2013
Device: kindle fire
Thank you very much for all the help. I followed instructions and found orphaned entry in identifiers table. I deleted it and it is all good now.
ethx is offline   Reply With Quote
Old 12-13-2013, 05:36 PM   #13
aleyx
Addict
aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.aleyx can self-interpret dreams as they happen.
 
Posts: 250
Karma: 20386
Join Date: Sep 2010
Location: France
Device: Bookeen Diva, Kobo Clara BW
Glad we could be of help.
aleyx is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Total Number of Books in Calibre Library Canadian reader Library Management 8 08-29-2013 11:29 PM
UI ? - Total count of books in library gone? VirgoGirl Calibre 12 06-14-2013 01:52 PM
custom column: count number of characters (in book path) miquele Library Management 25 09-21-2012 01:54 PM
Count number of authors Zifnab Library Management 5 09-03-2011 11:31 AM
Number of Books in Calibre Library mitch13 Library Management 1 02-15-2011 01:52 AM


All times are GMT -4. The time now is 03:53 AM.


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