From: Luis Felipe via Guix-patches via <guix-patches@gnu.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: "48637@debbugs.gnu.org" <48637@debbugs.gnu.org>
Subject: [bug#48637] [PATCH] website: Add publications page
Date: Wed, 02 Jun 2021 19:31:50 +0000 [thread overview]
Message-ID: <4jhiBWvAzsdTXmZFj_GgZTPWkIZncoQeId2pbbzXXMRNFk0FPGJXxIrp8ysGXNwuZk54pS5l5Ba2jkRcqE8omsfVgItw1gMcDJW1tqMPn-M=@protonmail.com> (raw)
In-Reply-To: <87bl8vi0d8.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 582 bytes --]
Hey,
On Friday, May 28, 2021 11:06 AM, Ludovic Courtès <ludo@gnu.org> wrote:
> I see that you want to keep it open to non-academic publications, which
> is a good idea. I wonder if there should be a visual distinction
> between peer-reviewed scientific articles, journal articles, and other
> types of publications?
>
> I started adding historical LWN articles (patch below; the titles look
> funny in hindsight :-)), and wondered whether this was a good idea since
> they would come first in the list.
>
> Thoughts?
Here is a patch that adds publication types.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-website-publications-Add-publication-type.patch --]
[-- Type: text/x-patch; name=0001-website-publications-Add-publication-type.patch, Size: 5831 bytes --]
From ef4e97ec9a49e65d70c9ba8d4c1926b2eeec2cba Mon Sep 17 00:00:00 2001
From: Luis Felipe <luis.felipe.la@protonmail.com>
Date: Wed, 2 Jun 2021 14:17:03 -0500
Subject: [PATCH] website: publications: Add publication type.
* website/apps/media/types.scm (<publication>): Add "type" field.
* website/apps/media/data.scm (publications): Specify publication types.
* website/apps/media/templates/components.scm (publication->shtml): Show
publication type.
---
website/apps/media/data.scm | 21 ++++++++++++++-------
website/apps/media/templates/components.scm | 8 +++++---
website/apps/media/types.scm | 15 +++++++++++----
3 files changed, 30 insertions(+), 14 deletions(-)
diff --git a/website/apps/media/data.scm b/website/apps/media/data.scm
index fc7854e..812f9e3 100644
--- a/website/apps/media/data.scm
+++ b/website/apps/media/data.scm
@@ -105,40 +105,47 @@ distribution."))
#:title "Functional Package Management with Guix"
#:url "https://arxiv.org/abs/1305.4584"
#:authors "Ludovic Courtès"
- #:date (string->date "2013-05-20" "~Y-~m-~d"))
+ #:date (string->date "2013-05-20" "~Y-~m-~d")
+ #:type (C_ "publication type" "Conference paper"))
(publication
#:title "Reproducible and User-Controlled Software Environments in HPC with Guix"
#:url "https://hal.inria.fr/hal-01161771/en"
#:authors (G_ "Ludovic Courtès, Ricardo Wurmus")
- #:date (string->date "2015-07-25" "~Y-~m-~d"))
+ #:date (string->date "2015-07-25" "~Y-~m-~d")
+ #:type (C_ "publication type" "Conference paper"))
(publication
#:title "Code Staging in GNU Guix"
#:url "https://arxiv.org/abs/1709.00833"
#:authors "Ludovic Courtès"
- #:date (string->date "2017-09-04" "~Y-~m-~d"))
+ #:date (string->date "2017-09-04" "~Y-~m-~d")
+ #:type (C_ "publication type" "Conference paper"))
(publication
#:title "Scientific Data Analysis Pipelines and Reproducibility"
#:authors "Altuna Akalin"
#:url "https://towardsdatascience.com/scientific-data-analysis-pipelines-and-reproducibility-75ff9df5b4c5"
- #:date (string->date "2018-10-01" "~Y-~m-~d"))
+ #:date (string->date "2018-10-01" "~Y-~m-~d")
+ #:type (C_ "publication type" "Article"))
(publication
#:title "Reproducible Genomics Analysis Pipelines with GNU Guix"
#:url "http://dx.doi.org/10.1093/gigascience/giy123"
#:authors "Ricardo Wurmus, Bora Uyar, Brendan Osberg, Vedran Franke, \
Alexander Gosdschan, Katarzyna Wreczycka, Jonathan Ronen, Altuna Akalin"
- #:date (string->date "2018-10-02" "~Y-~m-~d"))
+ #:date (string->date "2018-10-02" "~Y-~m-~d")
+ #:type (C_ "publication type" "Journal article"))
(publication
#:title "Guix: A most advanced operating system"
#:url "https://ambrevar.xyz/guix-advance/index.html"
#:authors "Pierre Neidhardt"
- #:date (string->date "2019-01-14" "~Y-~m-~d"))
+ #:date (string->date "2019-01-14" "~Y-~m-~d")
+ #:type (C_ "publication type" "Article"))
(publication
#:title "Scalable Workflows and Reproducible Data Analysis for Genomics"
#:url "https://link.springer.com/protocol/10.1007%2F978-1-4939-9074-0_24"
#:authors "Francesco Strozzi, Roel Janssen, Ricardo Wurmus, \
Michael R. Crusoe, George Githinji, Paolo Di Tommaso, Dominique Belhachemi, \
Steffen Möller, Geert Smant, Joep de Ligt, Pjotr Prins"
- #:date (string->date "2019-07-06" "~Y-~m-~d"))))
+ #:date (string->date "2019-07-06" "~Y-~m-~d")
+ #:type (C_ "publication type" "Book chapter"))))
(define screenshots
diff --git a/website/apps/media/templates/components.scm b/website/apps/media/templates/components.scm
index ce9d944..20fa3a9 100644
--- a/website/apps/media/templates/components.scm
+++ b/website/apps/media/templates/components.scm
@@ -46,9 +46,11 @@
(p
(@ (class "publication-info"))
- ;; TRANSLATORS: <1/> is a date, and <2/> a list of authors.
- ,(G_ `("Published " ,date " by "
- ,(publication-authors publication) ""))))))
+ ;; TRANSLATORS: <1/> is a publication type, <2/> is a date, and
+ ;; <3/> is a list of authors.
+ ,(G_
+ `("" ,(publication-type publication) ". Published " ,date
+ " by " ,(publication-authors publication) ". "))))))
(define (screenshot->shtml shot)
diff --git a/website/apps/media/types.scm b/website/apps/media/types.scm
index 579e642..2c219e5 100644
--- a/website/apps/media/types.scm
+++ b/website/apps/media/types.scm
@@ -11,6 +11,7 @@
publication-date
publication-language
publication-title
+ publication-type
publication-url
screenshot
screenshot?
@@ -66,20 +67,26 @@
;;; IETF language tag corresponding to the language in which the
;;; publication is written.
;;;
+;;; type (string)
+;;; The kind of publication. See the list of publications in the
+;;; (apps media data) module for examples.
+;;;
+;;;
(define-record-type <publication>
- (make-publication title url authors date language)
+ (make-publication title url authors date language type)
publication?
(title publication-title)
(url publication-url)
(authors publication-authors)
(date publication-date)
- (language publication-language))
+ (language publication-language)
+ (type publication-type))
;;; Helper procedures.
-(define* (publication #:key title url authors date (language "en"))
+(define* (publication #:key title url authors date (language "en") type)
"Return a <publication> object with the given attributes."
- (make-publication title url authors date language))
+ (make-publication title url authors date language type))
;;; Screenshot (record type)
base-commit: aa3ec5059f92ac5a0a47367cb886c87bb26d44fa
--
2.31.1
next prev parent reply other threads:[~2021-06-02 19:33 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-24 23:35 [bug#48637] [PATCH] website: Add publications page Luis Felipe via Guix-patches via
2021-05-25 13:44 ` pelzflorian (Florian Pelz)
2021-05-25 14:37 ` Luis Felipe via Guix-patches via
2021-05-25 18:21 ` pelzflorian (Florian Pelz)
2021-05-25 19:46 ` Luis Felipe via Guix-patches via
2021-05-25 19:58 ` Julien Lepiller
2021-05-25 20:16 ` Luis Felipe via Guix-patches via
2021-05-26 2:03 ` Julien Lepiller
2021-05-26 10:00 ` pelzflorian (Florian Pelz)
2021-05-26 14:06 ` Luis Felipe via Guix-patches via
2021-05-26 17:41 ` Julien Lepiller
2021-05-26 18:25 ` Luis Felipe via Guix-patches via
2021-05-26 18:42 ` Julien Lepiller
2021-05-26 19:05 ` Luis Felipe via Guix-patches via
2021-05-25 18:35 ` pelzflorian (Florian Pelz)
2021-05-25 19:14 ` Luis Felipe via Guix-patches via
2021-05-28 11:06 ` Ludovic Courtès
2021-05-28 15:20 ` Luis Felipe via Guix-patches via
2021-05-29 10:25 ` Ludovic Courtès
2021-06-02 19:31 ` Luis Felipe via Guix-patches via [this message]
2021-06-02 20:28 ` Julien Lepiller
2021-06-02 21:52 ` Luis Felipe via Guix-patches via
2021-06-02 23:28 ` Julien Lepiller
2021-06-03 9:40 ` Ludovic Courtès
2021-06-03 10:37 ` Julien Lepiller
2021-06-03 13:39 ` Luis Felipe via Guix-patches via
2021-06-03 19:50 ` Luis Felipe via Guix-patches via
2021-06-03 20:37 ` Ludovic Courtès
2021-06-03 21:50 ` Luis Felipe via Guix-patches via
2021-06-04 15:38 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='4jhiBWvAzsdTXmZFj_GgZTPWkIZncoQeId2pbbzXXMRNFk0FPGJXxIrp8ysGXNwuZk54pS5l5Ba2jkRcqE8omsfVgItw1gMcDJW1tqMPn-M=@protonmail.com' \
--to=guix-patches@gnu.org \
--cc=48637@debbugs.gnu.org \
--cc=ludo@gnu.org \
--cc=luis.felipe.la@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).