|
1 | 1 | $code: |
2 | 2 | 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", |
3 | 7 | "marc_baclac": "Library and Archives Canada", |
| 8 | + "marc_binghamton_univ": "Binghamton University", |
| 9 | + "marc_boston_college": "Boston College", |
4 | 10 | "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", |
6 | 13 | "marc_loc_2016": "Library of Congress", |
7 | 14 | "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", |
8 | 19 | "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", |
9 | 23 | "talis_openlibrary_contribution": "Talis", |
10 | 24 | "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", |
18 | 25 | "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", |
25 | 26 | } |
26 | 27 | for i in range(1, 17): |
27 | 28 | names["SanFranPL%02d" % i] = "San Francisco Public Library" |
|
55 | 56 | source_url = "https://openalex.org/" + item[9:] |
56 | 57 | else: |
57 | 58 | source_name = names.get(item, item) |
58 | | - source_url = "//archive.org/details/" + item |
| 59 | + source_url = f"//archive.org/details/{item}" |
59 | 60 | return storage(id=record_id, url=url, source_name=source_name, source_url=source_url) |
60 | 61 |
|
61 | 62 | 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 |
63 | 64 |
|
64 | 65 | def get_source_html(record_id): |
65 | 66 | record_type = _('record') |
|
0 commit comments