Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort contributor list. #92

Merged
merged 2 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/components/cap-contributor-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,18 @@ export class CapContributorList extends LitElement {
}

render() {
const sortedContributors = contributorLinks.sort((a, b) => {
if (a.sort_name < b.sort_name) {
return -1;
}
if (a.sort_name > b.sort_name) {
return 1;
}
return 0;
});
return html`
<ul class="contributorList">
${contributorLinks.map((link) => {
${sortedContributors.map((link) => {
return html`
<li class="contributorList__item">
${this._getContributorMarkup(link)}
Expand Down
86 changes: 76 additions & 10 deletions src/data/contributors.js
Original file line number Diff line number Diff line change
@@ -1,138 +1,204 @@
export const contributorLinks = [
{
name: "Ebru Yucesar",
sort_name: "Yucesar",
job_title: "Senior Software Engineer",
url: "https://lil.law.harvard.edu/about/#ebru-yucesar",
},
{
name: "Rebecca Cremona",
sort_name: "Cremona",
job_title: "Senior Software Engineer",
url: "https://lil.law.harvard.edu/about/#rebecca-cremona",
},
{
name: "Dakota Sexton",
sort_name: "Sexton",
job_title: "Senior Software Engineer",
url: "https://www.tinykitelab.com",
},
{
name: "Rebecca Kilberg",
sort_name: "Kilberg",
job_title: "Technologist in Residence",
url: "https://lil.law.harvard.edu/about/#rebecca-kilberg",
},
{
name: "Clare Stanton",
sort_name: "Stanton",
job_title: "Product and Research Manager",
url: "https://lil.law.harvard.edu/about/#clare-stanton",
},
{
name: "Michael Della Bitta",
sort_name: "Della Bitta",
job_title: "Engineering Manager",
url: "https://lil.law.harvard.edu/about/#michael-della-bitta",
},
{
name: "Anastasia Aizman",
sort_name: "Aizman",
job_title: "Designer and Lead Creative Technologist",
url: "https://lil.law.harvard.edu/about/#anastasia-aizman",
},
{ name: "Kendra Albert", job_title: "Research Associate" },
{
name: "Kendra Albert",
sort_name: "Albert",
job_title: "Research Associate",
},
{
name: "KB Beck",
sort_name: "Beck",
job_title: "Manager, Historical & Special Collections",
},
{ name: "Zachary Bodnar", job_title: "Digitization Specialist" },
{
name: "Zachary Bodnar",
sort_name: "Bodnar",
job_title: "Digitization Specialist",
},
{
name: "June Casey",
sort_name: "Casey",
job_title:
"Librarian for Open Access Initiatives & Scholarly Communication",
},
{
name: "Stephen Chapman",
sort_name: "Chapman",
job_title: "Manager, Digital Strategies for Collections",
url: "https://lil.law.harvard.edu/about/#stephen-chapman",
},
{ name: "Deborah Chase", job_title: "Digitization Specialist" },
{
name: "Deborah Chase",
sort_name: "Chase",
job_title: "Digitization Specialist",
},
{
name: "Jack Cushman",
sort_name: "Cushman",
job_title: "Director",
url: "https://lil.law.harvard.edu/about/#jack-cushman",
},
{
name: "Kim Dulin",
sort_name: "Dulin",
job_title: "Library Innovation Lab Director",
url: "https://lil.law.harvard.edu/about/#kim-dulin",
},
{ name: "Lindsay Dumas", job_title: "Digital Projects Archivist" },
{ name: "Kate Edrington", job_title: "Digitization Specialist" },
{
name: "Lindsay Dumas",
sort_name: "Dumas",
job_title: "Digital Projects Archivist",
},
{
name: "Kate Edrington",
sort_name: "Edrington",
job_title: "Digitization Specialist",
},
{
name: "Harmony Eidolon",
sort_name: "Eidolon",
job_title: "Program Coordinator",
url: "https://lil.law.harvard.edu/about/#harmony-eidolon",
},
{
name: "Kelly Fitzpatrick",
sort_name: "Fitzpatrick",
job_title: "Research Associate",
url: "https://lil.law.harvard.edu/about/#kelly-fitzpatrick",
},
{
name: "Kerri Fleming",
sort_name: "Fleming",
job_title: "Digital Projects Archivist",
url: "https://lil.law.harvard.edu/about/#kerri-fleming",
},
{ name: "Gerard Fowke", job_title: "2018 Harvard Law School Library Intern" },
{
name: "Gerard Fowke",
sort_name: "Fowke",
job_title: "2018 Harvard Law School Library Intern",
},
{
name: "Andy Gu",
sort_name: "Gu",
job_title: "2021 Summer Research Assistant",
url: "https://lil.law.harvard.edu/about/#andy-gu",
},
{
name: "Jane Kelly",
sort_name: "Kelly",
job_title: "Historical & Special Collections Assistant",
},
{ name: "Erica Leeman", job_title: "Digitization Specialist" },
{
name: "Erica Leeman",
sort_name: "Leeman",
job_title: "Digitization Specialist",
},
{
name: "Dustin Lewis",
sort_name: "Lewis",
job_title: "Project Manager",
url: "https://lil.law.harvard.edu/about/#dustin-lewis",
},
{
name: "Andrew MacTaggart",
sort_name: "MacTaggart",
job_title: "Senior Digitization Specialist",
url: "https://lil.law.harvard.edu/about/#andrew-mactaggart",
},
{ name: "Emily Magagnosc", job_title: "Digitization Specialist" },
{ name: "Margaret Peachy", job_title: "Curator of Digital Collections" },
{ name: "Lori Schulsinger", job_title: "Collection Development Coordinator" },
{
name: "Emily Magagnosc",
sort_name: "Magagnosc",
job_title: "Digitization Specialist",
},
{
name: "Margaret Peachy",
sort_name: "Peachy",
job_title: "Curator of Digital Collections",
},
{
name: "Lori Schulsinger",
sort_name: "Schulsinger",
job_title: "Collection Development Coordinator",
},
{
name: "Andy Silva",
sort_name: "Silva",
job_title: "Developer",
url: "https://lil.law.harvard.edu/about/#andy-silva",
},
{
name: "Ben Steinberg",
sort_name: "Steinberg",
job_title: "DevOps",
url: "https://arc.net/l/quote/mqvsiuka",
},
{
name: "Shailin Thomas",
sort_name: "Thomas",
job_title: "Affiliate, Berkman Center for Internet & Society",
url: "https://lil.law.harvard.edu/about/#shailin-thomas",
},
{
name: "Caroline Walters",
sort_name: "Walters",
job_title: "Collection Development Librarian for U.S. Law",
},
{
name: "Suzanne Wones",
sort_name: "Wones",
job_title: "Executive Director, Harvard Law School Library",
url: "https://lil.law.harvard.edu/about/#suzanne-wones",
},
{
name: "Adam Ziegler",
sort_name: "Ziegler",
job_title: "Director",
url: "https://lil.law.harvard.edu/about/#adam-ziegler",
},
{
name: "Jonathan Zittrain",
sort_name: "Zittrain",
job_title: "Harvard Faculty and Law School Library Director",
url: "https://lil.law.harvard.edu/about/#jonathan-zittrain",
},
Expand Down
Loading