From f5978aa24c7e409fbfd9db276ba7cedfd46ec22d Mon Sep 17 00:00:00 2001 From: Philipp Winter Date: Sat, 25 May 2024 09:27:19 -0500 Subject: [PATCH] Rename `net4people_url` to `discussion_url`. While most discussion URLs will be on net4people, some won't. --- references.bib | 4 ++-- src/html.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/references.bib b/references.bib index c4eb61d..1895a38 100644 --- a/references.bib +++ b/references.bib @@ -25,7 +25,7 @@ publisher = {USENIX}, year = {2024}, url = {https://www.usenix.org/system/files/sec24fall-prepub-1998-bocovich.pdf}, - net4people_url = {https://github.com/net4people/bbs/issues/366}, + discussion_url = {https://github.com/net4people/bbs/issues/366}, } @inproceedings{Moon2024a, @@ -91,7 +91,7 @@ publisher = {}, year = {2024}, url = {https://www.petsymposium.org/foci/2024/foci-2024-0002.pdf}, - net4people_url = {https://github.com/net4people/bbs/issues/367}, + discussion_url = {https://github.com/net4people/bbs/issues/367}, } @inproceedings{Chi2024a, diff --git a/src/html.go b/src/html.go index ed6e581..7353de5 100644 --- a/src/html.go +++ b/src/html.go @@ -75,11 +75,11 @@ func makeBibEntryTitle(entry *bibEntry) string { func makeIcons(entry *bibEntry) []string { var icons = []string{``} - // Not all references have a corresponding net4people discussion but if they - // do, add an icon. - if field, ok := entry.Fields["net4people_url"]; ok { + // Not all references have a corresponding discussion (e.g., on net4people) + // but if they do, add an icon. + if field, ok := entry.Fields["discussion_url"]; ok { s := fmt.Sprintf("", field.String()) + - `Discussion icon` + + `Discussion icon` + `` icons = append(icons, s) }