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 09-06-2023, 04:10 PM   #1
Joliet Jake
Zealot
Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.
 
Posts: 111
Karma: 3098438
Join Date: Feb 2021
Location: Canada
Device: Kobo Sage
Quick question about IDs

Most of my ebooks have IDs (typically ISBNs, but also it will say Goodreads, Amazon, Gutenberg, etc). I want to search by ID but I've not been able to do so. Setting up custom columns was a total failure, and repeated searches merely said something about "UUID" or how to modify the database (I definitely do not have the skills to do that without destroying my library).

Why do I bother? Some of my Gutenberg books have issues with covers. I just want to be able to sort them and fix the covers. Whenever I find one of my books is a Gutenberg book, I just add "Gutenberg" to the tags (which I can easily do a search of).
Joliet Jake is offline   Reply With Quote
Old 09-06-2023, 04:48 PM   #2
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,056
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Please use the word Identifiers for these
(Yes I see the Label in the MDE. Not sure when it changed. The balloon help still says identifiers.)

Calibre has an internal {id} (used in many places via the CLI), and using Id could lead to confusion) FWIW ID is the number in (##) that is the title folder, if you peeked under the skirts.

You can edit the value, list in identifiers.
You could delete a whole family using the Tag Browser. eg barnsnoble 7
Simply right click on thatelete barnsnoble:Yes
You can add any identifier you want. I added PG:<pg#>
Identifiers have 2 parts
Familyname : value
theducks is offline   Reply With Quote
Old 09-06-2023, 05:15 PM   #3
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
Additionally, you can create a rule to convert your custom PG identifier into a link for the Book Details pane, see:

1 - Click image for larger version

Name:	MWSnap 2023-09-06, 17_53_05.png
Views:	82
Size:	99.7 KB
ID:	203594

2 - Click image for larger version

Name:	MWSnap 2023-09-06, 18_02_01-.jpg
Views:	84
Size:	85.4 KB
ID:	203593

I had been using tags for filtering PG titles, never minded creating a custom id (identifier, oops) for those.

identifiers:gut:true will now filter those, as I've just set up this.

(also, I have a "grouped" search which is just a search alias for identifiers. This way I can do just i:gut:true)
Comfy.n is offline   Reply With Quote
Old 09-06-2023, 06:42 PM   #4
Joliet Jake
Zealot
Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.
 
Posts: 111
Karma: 3098438
Join Date: Feb 2021
Location: Canada
Device: Kobo Sage
So I tried "identifiers:gut" and it worked, but "identifiers:gut:true" didn't work for some reason. Thank you.
Joliet Jake is offline   Reply With Quote
Old 09-06-2023, 06:57 PM   #5
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by Joliet Jake View Post
So I tried "identifiers:gut" and it worked, but "identifiers:gut:true" didn't work for some reason. Thank you.
identifiers:gut will match whatever titles contain "gut" somewhere as an identifier.

for instance, in the example screenshot above, that title already had this string within the identifiers list:

Code:
uri:http://www.gutenberg.org/17829
identifiers:gut:true means: find titles that have the "gut" identifier

I think it would probably be best to assign a "pg" identifier instead of "gut", to avoid confusion
Comfy.n is offline   Reply With Quote
Old 09-06-2023, 07:01 PM   #6
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
I've added 'pg' just to illustrate:
Attached Thumbnails
Click image for larger version

Name:	MWSnap 2023-09-06, 19_59_42.png
Views:	84
Size:	28.1 KB
ID:	203599  
Comfy.n is offline   Reply With Quote
Old 09-06-2023, 07:07 PM   #7
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 Comfy.n View Post
Additionally…
Click image for larger version

Name:	Screenshot 2023-09-07 085157.jpg
Views:	87
Size:	12.5 KB
ID:	203598

In all these tears [sic] I'd never spotted that, and I see it's also in the context menu of the Book Details->IDs field - thanks.

BR
BetterRed is offline   Reply With Quote
Old 09-06-2023, 07:08 PM   #8
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
BTW, the PG custom links for the Book Detais pane should use this template:

https://www.gutenberg.org/ebooks/{id}
Comfy.n is offline   Reply With Quote
Old 09-06-2023, 07:10 PM   #9
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by BetterRed View Post
Attachment 203598

In all these tears [sic] I'd never spotted that, and I see it's also in the context menu of the Book Details->IDs field - thanks.

BR
Oh wow! Now I'm really proud of something!
Comfy.n is offline   Reply With Quote
Old 09-06-2023, 07:15 PM   #10
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 Comfy.n View Post
BTW, the PG custom links for the Book Detais pane should use this template:

https://www.gutenberg.org/ebooks/{id}
I was about to mention the need to define 'pg' in L&F->BD->Create rules to convert identifiers into links table.

BR
BetterRed is offline   Reply With Quote
Old 09-06-2023, 07:41 PM   #11
Joliet Jake
Zealot
Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.Joliet Jake ought to be getting tired of karma fortunes by now.
 
Posts: 111
Karma: 3098438
Join Date: Feb 2021
Location: Canada
Device: Kobo Sage
Quote:
Originally Posted by Comfy.n View Post
identifiers:gut will match whatever titles contain "gut" somewhere as an identifier.

for instance, in the example screenshot above, that title already had this string within the identifiers list:

Code:
uri:http://www.gutenberg.org/17829
identifiers:gut:true means: find titles that have the "gut" identifier

I think it would probably be best to assign a "pg" identifier instead of "gut", to avoid confusion
Maybe I should have done that, but I didn't need to.

Using the thing that worked for me (so without "true") I found 102 books, about half of which already had a "Gutenberg" tag. I updated the rest. Many needed replacements for covers. (One book had a cover of only 128 x 192 pixels!)

I wasn't interested in changing identifiers, just locating them.
Joliet Jake is offline   Reply With Quote
Old 09-06-2023, 08:15 PM   #12
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by Joliet Jake View Post
Maybe I should have done that, but I didn't need to.

Using the thing that worked for me (so without "true") I found 102 books, about half of which already had a "Gutenberg" tag. I updated the rest. Many needed replacements for covers. (One book had a cover of only 128 x 192 pixels!)

I wasn't interested in changing identifiers, just locating them.
Most of my PG books contain this string (within the book content, I mean):

"The Project Gutenberg EBook"

So, one other approach you could have used to locate them would be running FTS, if you have this feature enabled.

Searching the library for books containing the string "The Project Gutenberg EBook" should enable you to mark all of them.
Comfy.n is offline   Reply With Quote
Old 09-07-2023, 12:03 AM   #13
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I use this template to convert uri: identifiers to gutenberg: ones.

Code:
program:
	publisher = $publisher;
	ids = $identifiers;
	u = select(ids, 'uri');
	g = select(ids, 'gutenberg');

	if 
		publisher == 'Project Gutenberg' 
		&& u != g 
	then
		n = re(u, '^http://www.gutenberg.org/(\d+)', '\1');
		ids = list_union(ids, strcat('gutenberg:', n), ',')
	fi;

	if 
		publisher == 'Project Gutenberg' 
		&& u 
		&& g 
	then
		ids = list_difference(ids, strcat('uri:', u), ',')

	fi;

	ids
To use this, get the Action Chains plugin and make a chain that applies a single-field template edit to the identifier field.

Click image for larger version

Name:	2023-09-07 01_04_55-Window.png
Views:	63
Size:	43.0 KB
ID:	203603

If you prefer different identifier, change 'gutenberg' in lines 5 and 12. You can also change the checks in line 8 and 16 to something like 'Gutenberg' inlist $tags.

Last edited by ownedbycats; 09-07-2023 at 12:09 AM.
ownedbycats is offline   Reply With Quote
Old 09-07-2023, 01:28 AM   #14
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 7891011
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by ownedbycats View Post
I use this template to convert uri: identifiers to gutenberg: ones.
I think I'll test this tomorrow. From looking at the code, I take it it's necessary to make sure that all titles have "Project Gutenberg" set as Publisher before running the chain, right?
Comfy.n is offline   Reply With Quote
Old 09-07-2023, 01:52 AM   #15
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by Comfy.n View Post
I think I'll test this tomorrow. From looking at the code, I take it it's necessary to make sure that all titles have "Project Gutenberg" set as Publisher before running the chain, right?
Yes, set publisher to Project Gutenberg.
ownedbycats is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Question Thasaidon Sigil 63 12-12-2020 11:19 AM
Quick question (-_-) Kindle Developer's Corner 2 10-24-2012 01:00 PM
Quick Question.. The Branimal Kobo Reader 3 04-25-2011 08:17 PM
Quick question... Magic Man Calibre 18 09-05-2010 03:18 PM
Quick Question. Baz047 Sony Reader 10 12-09-2008 12:25 PM


All times are GMT -4. The time now is 06:58 PM.


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