mirror of
https://github.com/NullHypothesis/censorbib.git
synced 2025-07-22 06:09:10 -04:00
Rename net4people_url
to discussion_url
.
While most discussion URLs will be on net4people, some won't.
This commit is contained in:
parent
eb4ffd73fd
commit
f5978aa24c
2 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||
|
|
|
@ -75,11 +75,11 @@ func makeBibEntryTitle(entry *bibEntry) string {
|
|||
func makeIcons(entry *bibEntry) []string {
|
||||
var icons = []string{`<span class="icons">`}
|
||||
|
||||
// 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("<a href='%s'>", field.String()) +
|
||||
`<img class="icon" title="net4people discussion" src="assets/discussion-icon.svg" alt="Discussion icon">` +
|
||||
`<img class="icon" title="Online discussion" src="assets/discussion-icon.svg" alt="Discussion icon">` +
|
||||
`</a>`
|
||||
icons = append(icons, s)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue