![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31
Karma: 49174
Join Date: Oct 2012
Device: Bookeens, Kindles, Kobos, PocketBooks, Tolinos
|
Using re-function in columns
I want to use the re-Function for use in a column for the search series on Goodreads.
Here is the source from my column: Code:
<a href="https://www.goodreads.com/search?utf8=%E2%9C%93&query={series}">Find on Goodreads</a> Code:
{series:re(field('series'), " ", "+")} |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Hi m.s.
this will change blanks with regex: Code:
re(field('series'), '\s', '+') If you want to use it in a custom column, make it via program mode: Code:
program: suchtext=re(field('series'), '\s', '+'); suchtext=re(suchtext, '\&', '%26'); strcat('<a href=','https://www.goodreads.com/search?utf8=%E2%9C%93&q=',suchtext,'&search_type=books','">Find on Goodreads</a>') and if you want to use it in book details as clickable value check "Show as HTML in Book details" (maybe hit visibility as column). Last edited by Divingduck; 10-30-2017 at 07:36 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31
Karma: 49174
Join Date: Oct 2012
Device: Bookeens, Kindles, Kobos, PocketBooks, Tolinos
|
Ah, great. Now I understand this. Thank you!
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Your'e wellcome
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
HTML/CSS for two columns 'seems' not to function | chaot | Workshop | 38 | 04-13-2022 05:17 PM |
Nesting Function arguments in custom columns | da_jane | Calibre | 1 | 11-21-2012 02:48 PM |
Columns | raiderkilo | Calibre | 5 | 01-21-2012 05:53 PM |
Columns | Noughty | Library Management | 18 | 08-15-2011 04:57 PM |
Columns | darkpoet | ePub | 8 | 09-09-2009 10:17 PM |