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 08-15-2022, 05:07 AM   #1
igorius
Zealot
igorius began at the beginning.
 
Posts: 123
Karma: 34
Join Date: Jun 2015
Device: ipad & inkpad X
coloring row by isbn

I hope this thread is the right one for my question:
I want to color #isbn by their numbers:
When isbn begins with 978 -> red
When isbn begins with 979 -> blue
any other isbn (starting with 0* to <978) -> green
Example
I have tried with "contains 978" , but when an isbn contains whereever that 978, coloring is wrong.
So what i am missing is a kind of "begins with"
Is there any way to achieve that in a resonable way?
I tried with regex too, but didnt work too.
igorius is offline   Reply With Quote
Old 08-15-2022, 06:23 AM   #2
un_pogaz
Chalut o/
un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.
 
un_pogaz's Avatar
 
Posts: 439
Karma: 145424
Join Date: Dec 2017
Device: Kobo
substr() could be useful.

Here are some rules to color the ISBN as you want.
Maybe it's possible to make a not "advanced" versions of the rules, but in the meantime, this will do.

begins with 978 (ISBN-10 format 13)
Code:
program: test(strlen($#isbn)>10, cmp(substr($#isbn, 0, 3), 979, '', '#0af', ''), '')
begins with 979 (ISBN-13)
Code:
program: test(strlen($#isbn)>10, cmp(substr($#isbn, 0, 3), 978, '', '#f00', ''), '')
other isbn (ISBN-10 old format)
Code:
program: test($#isbn, '#5a7', '')
Note: important to put the rule "other isbn" after the others, otherwise all ISBN will be green.

Last edited by un_pogaz; 08-15-2022 at 04:39 PM.
un_pogaz is offline   Reply With Quote
Advert
Old 08-15-2022, 06:58 PM   #3
igorius
Zealot
igorius began at the beginning.
 
Posts: 123
Karma: 34
Join Date: Jun 2015
Device: ipad & inkpad X
ok, that was my problem: I didnt know about the "program: " statement at the beginning of my rule.
I think, by doing for "old" isbns test(strlen($#isbn)<=10, it would go, but unfortunately i have some strange isbns like 4038858104508, which would stay black...
Hmmm, maybe not so bad.
Yep, works!

Thank you very much, you made my day and i learned something new!
igorius is offline   Reply With Quote
Old 08-16-2022, 08:14 AM   #4
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 13,935
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
For general info
https://bookscouter.com/blog/isbn-prefix-979-explained/

I'd not heard of ISBN 979 series.
Quoth is offline   Reply With Quote
Old 08-16-2022, 09:06 AM   #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,019
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 Quoth View Post
For general info
https://bookscouter.com/blog/isbn-prefix-979-explained/

I'd not heard of ISBN 979 series.
I thought 979 was the overflow of 978 (my chart of EAN/Bookman codes show these as valid for Point of sale). Have I seen one in the wild (USA)? Nope.
What Wikipedia shows:
Quote:
Within the 979 prefix element, the registration group 0 is reserved for compatibility with International Standard Music Numbers (ISMNs),
It always amazes me on what folk find that they need to highlight in their Library. Different strokes... I would have thought that those (both EAN) would be treated the same, and have highlighted the older ISBN 10,
as always YMMV
theducks is offline   Reply With Quote
Advert
Old 08-16-2022, 12:14 PM   #6
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 13,935
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
I'd only worry about ISBN when publishing, or if running a bookshop. They are annoying in a library system as different ISBNs sometimes have EXACTLY the same content and it's only the size of the book, paperback, hardback and ebook versions, all of which MUST have a different ISBN, because the 13 digit ones are ALSO UPC/IPC for retail sales.
A different ISBN doesn't tell you on it's own if it's a revised version, only metadata in a database or looking at copyright page tells you that.
Quoth is offline   Reply With Quote
Old 08-16-2022, 12:20 PM   #7
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 13,935
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by theducks View Post
I thought 979 was the overflow of 978 (my chart of EAN/Bookman codes show these as valid for Point of sale).
Yes, really that's what it is. The first three digits of UPC/EAN 13 retail code are a GS1 country code
978 was Bookland
Now 979 is also Bookland!

https://en.wikipedia.org/wiki/List_of_GS1_country_codes
Quoth is offline   Reply With Quote
Old 08-17-2022, 11:33 AM   #8
igorius
Zealot
igorius began at the beginning.
 
Posts: 123
Karma: 34
Join Date: Jun 2015
Device: ipad & inkpad X
I have seen the 979 only from amazon-books, this is why i want them separated from the "typical suspects". And i have a lot of old books which dont have ISBN: Books from GDR, all books older than somewhen in the 50s. And sometimes a new book comes out as kindle-only and later the autor sells these books as printed book. And we know amazon never "buys" isbns for their electronic books, only for printed ones. So i have to wait to get an isbn for these books. Coloring helps much to get directly the state of that books.
Other thing with isbn: When you dont have an isbn for a (new) printed book, you cannot sell these in shops, i _only_ can buy when i show that i am over eighteen in age. Look at festa (german publisher), they have a section called "festa-extrem" most books dont have any isbn: no open selling! You even cannot buy these books used in the wild from shops or online-shops. You only get them via the bay or other private selling sites.
(I have been working some time in a book-shop, so isbn is the most important thing for me to distinguish books! On the other hand i find it interesting that long time ago (isbn-10 times) some isbns were given to different books, say you can find 2 books with different titles and autors but the same isbn)
igorius is offline   Reply With Quote
Old 08-17-2022, 11:59 AM   #9
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,019
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 igorius View Post
(I have been working some time in a book-shop, so isbn is the most important thing for me to distinguish books! On the other hand i find it interesting that long time ago (isbn-10 times) some isbns were given to different books, say you can find 2 books with different titles and autors but the same isbn)
1 of 2 things.

1) A long time ago, I received an order from a publisher. I received orders using the barcode. Fail. 'No open PO' with that ISBN13.
It also turns out that I stocked another book with the same (was correct) barcode, which would have been really bad as reorders were done from sales reports. Turns out the print run had to be over stickered. ERRORS Happen.

2) Faked ISBN to avoid paying the fee (vanity press published). I used to install grocery checkout systems. I recieved a complaint about a new store having trouble building the PLU table:Not allowed or Exists (or worse).
Turns out a lot of imported from Asian sources had faked the barcode.
(The worse was they faked in the wrong series: Variable weight group: Like used in the deli section)
theducks is offline   Reply With Quote
Old 08-17-2022, 12:23 PM   #10
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,062
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by theducks View Post
(The worse was they faked in the wrong series: Variable weight group: Like used in the deli section)
Selling books by the pound. I like it!
jhowell is offline   Reply With Quote
Old 08-17-2022, 01:23 PM   #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,019
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 jhowell View Post
Selling books by the pound. I like it!
L RON?
theducks is offline   Reply With Quote
Old 08-17-2022, 01:51 PM   #12
igorius
Zealot
igorius began at the beginning.
 
Posts: 123
Karma: 34
Join Date: Jun 2015
Device: ipad & inkpad X
I found a site about that double-isbns:

https://infobib.de/2011/03/01/beispi...ergebene-isbn/

With exactly the book from ben bova i had that problem first!
igorius is offline   Reply With Quote
Old 08-17-2022, 02:53 PM   #13
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 13,935
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by igorius View Post
I have seen the 979 only from amazon-books,
979 is mostly newer USA bought blocks of ISBNs. Amazon is one of the more recent USA publishers.
Quoth is offline   Reply With Quote
Old 08-17-2022, 09:11 PM   #14
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 jhowell View Post
Selling books by the pound. I like it!
As a lot of writers were paid by the word, selling a book by weight is not that unreasonable.
davidfor is offline   Reply With Quote
Old 08-18-2022, 03:49 PM   #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,919
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by igorius View Post
I have seen the 979 only from amazon-books, this is why i want them separated from the "typical suspects". And i have a lot of old books which dont have ISBN: Books from GDR, all books older than somewhen in the 50s.
ISBN was introduced in 1970, though I've occasionally seen reprints of books from the 50s or 60s to include one.
ownedbycats is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Add from ISBN" adds empty entry for valid ISBN halloleo Library Management 7 07-16-2021 10:47 PM
How to move ISBN in book name to Ids/#ISBN? simoon Library Management 0 10-10-2019 12:13 AM
Row coloring? exachillus Calibre 4 06-22-2014 03:34 PM
Stupid Question: ISBN-10 and ISBN-13 Tegan Library Management 4 03-11-2011 01:20 AM


All times are GMT -4. The time now is 10:52 PM.


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