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-05-2022, 09:34 PM   #1
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,976
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Custom identifier: Is it possible to

I have a custom identifier with https://openlibrary.org/books/{id} as a rule.

I'm having a bit of trouble, though.

If I paste https://openlibrary.org/books/OL8604930M/A_Baker's_Field_Guide_to_Chocolate_Chip_Cookies in, I get:

OL8604930M/A_Baker's_Field_Guide_to_Chocolate_Chip_Cookies

I don't want that second part, just the OL bit. Adding a trailing slash to the rule works, but then if the URL ends with /books/OL8604930M it fails to detect and I get a url.

Aside from making two rules (which results in duplicate links), is there a way to set the trailing slash as optional?

Last edited by ownedbycats; 12-05-2022 at 09:36 PM.
ownedbycats is offline   Reply With Quote
Old 12-05-2022, 09:58 PM   #2
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 have a custom identifier with https://openlibrary.org/books/{id} as a rule.

I'm having a bit of trouble, though.

If I paste https://openlibrary.org/books/OL8604930M/A_Baker's_Field_Guide_to_Chocolate_Chip_Cookies in, I get:

OL8604930M/A_Baker's_Field_Guide_to_Chocolate_Chip_Cookies

I don't want that second part, just the OL bit. Adding a trailing slash to the rule works, but then if the URL ends with /books/OL8604930M it fails to detect and I get a url.

Aside from making two rules (which results in duplicate links), is there a way to set the trailing slash as optional?
Hi,

you mean the link in details?

i just tried and it worked fine, I've set it this way:

Click image for larger version

Name:	MWSnap0922 2022-12-05, 23_53_54.png
Views:	108
Size:	9.3 KB
ID:	198212
Click image for larger version

Name:	MWSnap0923 2022-12-05, 23_54_37.png
Views:	98
Size:	1.9 KB
ID:	198211
Click image for larger version

Name:	MWSnap0924 2022-12-05, 23_55_23.png
Views:	98
Size:	17.4 KB
ID:	198210

Upon clicking the link in details pane, browser opens https://openlibrary.org/books/OL8604930M , which then redirects to https://openlibrary.org/books/OL8604...e_Chip_Cookies
Comfy.n is offline   Reply With Quote
Advert
Old 12-05-2022, 10:36 PM   #3
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,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
{identifiers} have 2 parts colon delimits
type : value
They are pretty much free to make

foo:bar
theducks is online now   Reply With Quote
Old 12-06-2022, 09:12 AM   #4
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,976
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by Comfy.n View Post
Hi,

you mean the link in details?

i just tried and it worked fine, I've set it this way:

Attachment 198212
Attachment 198211
Attachment 198210

Upon clicking the link in details pane, browser opens https://openlibrary.org/books/OL8604930M , which then redirects to https://openlibrary.org/books/OL8604...e_Chip_Cookies
If I paste the 'full' URL, I get the title stuff tagged onto the end when using the paste button. That's the part I want to avoid.

I can avoid it by adding the trailing slash to the identifier rule, but then URLs without the title stuff fail to detect.

Last edited by ownedbycats; 12-06-2022 at 09:15 AM.
ownedbycats is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about dc:identifier bookman156 Sigil 7 08-26-2022 12:25 PM
identifier rules? dashiiek Calibre 1 01-19-2022 08:20 PM
What identifier is this? Rellwood Library Management 3 08-06-2021 11:15 PM
Regex for a custom identifier breaking links ownedbycats Library Management 4 03-09-2021 12:29 AM
Identifier-like custom column nqk Library Management 5 05-20-2017 01:38 AM


All times are GMT -4. The time now is 01:27 PM.


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