From 4b282238c6aeace1cf7dee0f3cfd7ed05e0dd979 Mon Sep 17 00:00:00 2001 From: Thomas Pietrzak Date: Mon, 29 Nov 2021 17:55:51 +0100 Subject: [PATCH] isbnsearch hyperrlinks on book titles with isbn entries --- plain-withurls.bst | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/plain-withurls.bst b/plain-withurls.bst index f375ab3..74f56d9 100644 --- a/plain-withurls.bst +++ b/plain-withurls.bst @@ -33,6 +33,7 @@ ENTRY year url %% NICOLAS doi %% TOM + isbn %% TOM } {} { label } @@ -561,6 +562,17 @@ FUNCTION {doilink} if$ } +FUNCTION {isbnlink} +{ duplicate$ empty$ +{ pop$ "" } +{ isbn empty$ + { skip$ } + { "\href{https://isbnsearch.org/isbn/" isbn * "}{" * swap$ * "}" * } + if$ +} +if$ +} + FUNCTION {article} { output.bibitem format.authors "author" output.check @@ -628,15 +640,19 @@ FUNCTION {book} if$ new.block - % NICOLAS + % NICOLAS TOM doi empty$ - { url empty$ - { format.btitle } - { "\href{" url * "}{" * format.btitle * "}" * } + { url empty$ + { isbn empty$ + { format.btitle} + { "\href{https://isbnsearch.org/isbn/" isbn * "}{" * format.btitle * "}" * } if$ } - { "\href{http://doi.org/" doi * "}{" * format.btitle * "}" * } + { "\href{" url * "}{" * format.btitle * "}" * } if$ + } + { "\href{http://doi.org/" doi * "}{" * format.btitle * "}" * } + if$ "title" output.check %format.btitle "title" output.check -- 2.30.2