Skip to content

Commit 98d9494

Browse files
Merge pull request #128 from mcphersonlab/copilot/create-template-folder-listing
2 parents d217f41 + 9fa61d6 commit 98d9494

File tree

16 files changed

+351
-5
lines changed

16 files changed

+351
-5
lines changed

_ejs/education.ejs

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
```{=html}
2+
<div class="list quarto-listing-default">
3+
<% for (const item of items) { %>
4+
5+
<div class="quarto-post image-right" <%= metadataAttrs(item) %> >
6+
<div class="thumbnail">
7+
<a href="<%- item.path %>">
8+
9+
<p>
10+
<% if (item.image) { %>
11+
<img alt="<%= item.title %>" src="<%= item.image %>" class="thumbnail-image">
12+
<% } %>
13+
14+
</p>
15+
16+
17+
</a>
18+
</div>
19+
<div class="body">
20+
<a href="<%- item.path %>">
21+
<h3 class="no-anchor listing-pub-title listing-title"><%= item.title %></h3>
22+
</a>
23+
24+
<div class="listing-pub-author listing-author">
25+
<%= item.author %><br>
26+
</div>
27+
28+
<div class="metadata-value listing-pub-journal listing-publication">
29+
<% if (item.journ) { %>
30+
<i><%= item.journ %></i><% if (item.issue) { %>, <b><%= item.issue %></b><% } %><% if (item.page) { %>, <%= item.page %><% } %><% if (item.year) { %> (<%= item.year %>)<% } %><br>
31+
32+
<% } %>
33+
</div>
34+
</div>
35+
<div class="metadata">
36+
<% if (item.pub_number) { %>
37+
<div class="listing-pub-number">
38+
<%= item.pub_number %><br>
39+
</div>
40+
<% } %>
41+
42+
<% if (item.url_source) { %>
43+
<div class="listing-pub-url">
44+
<a href="<%- item.url_source %>">
45+
<p>URL <i class="bi bi-box-arrow-up-right"></i></p>
46+
</a>
47+
</div>
48+
<% } %>
49+
50+
<% if (item.url_preprint) { %>
51+
<div class="listing-pub-url">
52+
<a href="<%- item.url_preprint %>">
53+
<p>preprint URL <i class="bi bi-box-arrow-up-right"></i></p>
54+
</a>
55+
</div>
56+
<% } %>
57+
58+
<!-- Citation metrics badges (requires external scripts loaded in _quarto.yml) -->
59+
<% if (item.doi) { %>
60+
<div class="listing-pub-metrics">
61+
<div class="__dimensions_badge_embed__" data-doi="<%- item.doi %>" data-style="small_rectangle"></div>
62+
<div data-badge-type="donut" data-doi="<%- item.doi %>" data-condensed="true" class="altmetric-embed"></div>
63+
</div>
64+
<% } %>
65+
</div>
66+
</div>
67+
68+
<% } %>
69+
</div>
70+
71+
```
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: ""
3+
author: ["Names in quotes", "Separate by commas"]
4+
#["Names in quotes", "Separate by commas"]
5+
# - author 1
6+
# - author 2
7+
publication: "Provider, **CE Credits**, _Duration_ (2024)"
8+
categories:
9+
- ce
10+
#- courses
11+
#- lectures
12+
#- textbooks
13+
#- workshops
14+
#- member-publication
15+
#- pharmacy
16+
#- pharmacology
17+
#- medicinal-chemistry
18+
#- artificial-intelligence
19+
#- economic-analysis
20+
#- drug-development
21+
#- genomics
22+
#- structural-biology
23+
#- classical-methods
24+
#- infectious-diseases
25+
#- antimicrobial-resistance
26+
#- human-gut-microbiome
27+
url_source:
28+
url_preprint:
29+
journ: "Provider Name"
30+
issue: "CE Credits"
31+
page: "Duration"
32+
year: 9999 # year
33+
image: ""
34+
pub_number:
35+
doi:
36+
---
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: "Example CE Course - Pharmacology Updates"
3+
author: ["Dr. Jane Smith", "Dr. John Doe"]
4+
publication: "Professional Learning Institute, **5.0 CE Credits**, _8 hours_ (2024)"
5+
categories:
6+
- ce
7+
- pharmacy
8+
- pharmacology
9+
url_source: "https://example.com/ce-course"
10+
journ: "Professional Learning Institute"
11+
issue: "5.0 CE Credits"
12+
page: "8 hours"
13+
year: 2024
14+
image: ""
15+
pub_number: 1
16+
doi: ""
17+
---
18+
19+
This is an example CE course demonstrating the template structure.

education/education/ce/index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ alias: &ALIAS ce
44
#image: featured.png
55
listing:
66
id: pubs
7-
template: ../../../_ejs/publications.ejs
7+
template: ../../../_ejs/education.ejs
88
contents:
99
- "!../_template/"
1010
- "./**/*.qmd"
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: ""
3+
author: ["Names in quotes", "Separate by commas"]
4+
#["Names in quotes", "Separate by commas"]
5+
# - author 1
6+
# - author 2
7+
publication: "Platform, **Course Number**, _Duration_ (2024)"
8+
categories:
9+
- courses
10+
#- lectures
11+
#- textbooks
12+
#- ce
13+
#- workshops
14+
#- member-publication
15+
#- pharmacy
16+
#- pharmacology
17+
#- medicinal-chemistry
18+
#- artificial-intelligence
19+
#- economic-analysis
20+
#- drug-development
21+
#- genomics
22+
#- structural-biology
23+
#- classical-methods
24+
#- infectious-diseases
25+
#- antimicrobial-resistance
26+
#- human-gut-microbiome
27+
url_source:
28+
url_preprint:
29+
journ: "Platform Name"
30+
issue: "Course Number"
31+
page: "Duration"
32+
year: 9999 # year
33+
image: ""
34+
pub_number:
35+
doi:
36+
---
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: "Example Course - Introduction to Pharmacology"
3+
author: ["Dr. Jane Smith"]
4+
publication: "Coursera, **PHARM-101**, _10 weeks_ (2024)"
5+
categories:
6+
- courses
7+
- pharmacy
8+
- pharmacology
9+
url_source: "https://www.coursera.org/example"
10+
journ: "Coursera"
11+
issue: "PHARM-101"
12+
page: "10 weeks"
13+
year: 2024
14+
image: ""
15+
pub_number: 1
16+
doi: ""
17+
---
18+
19+
This is an example course demonstrating the template structure.

education/education/courses/index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ alias: &ALIAS courses
44
#image: featured.png
55
listing:
66
id: pubs
7-
template: ../../../_ejs/publications.ejs
7+
template: ../../../_ejs/education.ejs
88
contents:
99
- "!../_template/"
1010
- "./**/*.qmd"
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: ""
3+
author: ["Names in quotes", "Separate by commas"]
4+
#["Names in quotes", "Separate by commas"]
5+
# - author 1
6+
# - author 2
7+
publication: "Repository, **Topic**, _Format_ (2024)"
8+
categories:
9+
- lectures
10+
#- courses
11+
#- textbooks
12+
#- ce
13+
#- workshops
14+
#- member-publication
15+
#- pharmacy
16+
#- pharmacology
17+
#- medicinal-chemistry
18+
#- artificial-intelligence
19+
#- economic-analysis
20+
#- drug-development
21+
#- genomics
22+
#- structural-biology
23+
#- classical-methods
24+
#- infectious-diseases
25+
#- antimicrobial-resistance
26+
#- human-gut-microbiome
27+
url_source:
28+
url_preprint:
29+
journ: "Repository Name"
30+
issue: "Topic"
31+
page: "Format"
32+
year: 9999 # year
33+
image: ""
34+
pub_number:
35+
doi:
36+
---
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: "Example Lecture - Drug Discovery Fundamentals"
3+
author: ["Dr. John Doe"]
4+
publication: "OER Commons, **Drug Discovery**, _Video Series_ (2024)"
5+
categories:
6+
- lectures
7+
- drug-development
8+
- pharmacology
9+
url_source: "https://www.oercommons.org/example"
10+
journ: "OER Commons"
11+
issue: "Drug Discovery"
12+
page: "Video Series"
13+
year: 2024
14+
image: ""
15+
pub_number: 1
16+
doi: ""
17+
---
18+
19+
This is an example lecture demonstrating the template structure.

education/education/lectures/index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ alias: &ALIAS lectures
44
#image: featured.png
55
listing:
66
id: pubs
7-
template: ../../../_ejs/publications.ejs
7+
template: ../../../_ejs/education.ejs
88
contents:
99
- "!../_template/"
1010
- "./**/*.qmd"

0 commit comments

Comments
 (0)