![]() |
#1 |
Zealot
![]() 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. |
![]() |
![]() |
![]() |
#2 |
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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', ''), '') Code:
program: test(strlen($#isbn)>10, cmp(substr($#isbn, 0, 3), 978, '', '#f00', ''), '') Code:
program: test($#isbn, '#5a7', '') Last edited by un_pogaz; 08-15-2022 at 04:39 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() 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! |
![]() |
![]() |
![]() |
#4 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#5 | ||
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
What Wikipedia shows: Quote:
as always YMMV |
||
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#7 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,935
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
978 was Bookland Now 979 is also Bookland! https://en.wikipedia.org/wiki/List_of_GS1_country_codes |
|
![]() |
![]() |
![]() |
#8 |
Zealot
![]() 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) |
![]() |
![]() |
![]() |
#9 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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) |
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,062
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
|
![]() |
![]() |
![]() |
#11 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
![]() |
![]() |
#12 |
Zealot
![]() 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! |
![]() |
![]() |
![]() |
#13 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,935
Karma: 103895653
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
|
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
|
![]() |
![]() |
![]() |
#15 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,919
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
ISBN was introduced in 1970, though I've occasionally seen reprints of books from the 50s or 60s to include one.
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |