Skip to content

Commit 48b53e0

Browse files
authored
Merge pull request #10771 from hornc/master
Add Harvard University and alpha sort MARC sources
2 parents 4e6544b + 4a9f49f commit 48b53e0

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

openlibrary/templates/history/sources.html

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
$code:
22
names = {
3+
"bpl_marc": "Boston Public Library",
4+
"CollingswoodLibraryMarcDump10-27-2008": "Collingswood Public Library",
5+
"harvard_bibliographic_metadata": "Harvard University",
6+
"hollis_marc": "Harvard's HOLLIS catalog",
37
"marc_baclac": "Library and Archives Canada",
8+
"marc_binghamton_univ": "Binghamton University",
9+
"marc_boston_college": "Boston College",
410
"marc_dnb_202006": "Deutsche Nationalbibliothek",
5-
"marc_loc_updates": "Library of Congress",
11+
"marc_ithaca_college": "Ithaca College Library",
12+
"marc_laurentian": "The Laurentian Library",
613
"marc_loc_2016": "Library of Congress",
714
"marc_loc_2019": "Library of Congress",
15+
"marc_loc_updates": "Library of Congress",
16+
"marc_miami_univ_ohio": "Miami University of Ohio",
17+
"marc_marygrove": "Marygrove College",
18+
"marc_oregon_summit_records": "Oregon Libraries",
819
"marc_records_scriblio_net": "Scriblio",
20+
"marc_university_of_toronto": "University of Toronto",
21+
"marc_upei": "University of Prince Edward Island",
22+
"marc_western_washington_univ": "Western Washington University",
923
"talis_openlibrary_contribution": "Talis",
1024
"unc_catalog_marc": "University of North Carolina",
11-
"marc_oregon_summit_records": "Oregon Libraries",
12-
"marc_western_washington_univ": "Western Washington University",
13-
"marc_university_of_toronto": "University of Toronto",
14-
"bpl_marc": "Boston Public Library",
15-
"marc_boston_college": "Boston College",
16-
"marc_miami_univ_ohio": "Miami University of Ohio",
17-
"marc_laurentian": "The Laurentian Library",
1825
"wfm_bk_marc": "Buffalo State College",
19-
"CollingswoodLibraryMarcDump10-27-2008": "Collingswood Public Library",
20-
"hollis_marc": "Harvard's HOLLIS catalog",
21-
"marc_ithaca_college": "Ithaca College Library",
22-
"marc_binghamton_univ": "Binghamton University",
23-
"marc_upei": "University of Prince Edward Island",
24-
"marc_marygrove": "Marygrove College",
2526
}
2627
for i in range(1, 17):
2728
names["SanFranPL%02d" % i] = "San Francisco Public Library"
@@ -55,11 +56,11 @@
5556
source_url = "https://openalex.org/" + item[9:]
5657
else:
5758
source_name = names.get(item, item)
58-
source_url = "//archive.org/details/" + item
59+
source_url = f"//archive.org/details/{item}"
5960
return storage(id=record_id, url=url, source_name=source_name, source_url=source_url)
6061

6162
def link(url, label):
62-
return '<a href="' + url + '">' + label + '</a>' if url else label
63+
return f'<a href="{url}">{label}</a>' if url else label
6364

6465
def get_source_html(record_id):
6566
record_type = _('record')

0 commit comments

Comments
 (0)