Skip to content

Commit

Permalink
Rename "Google Arts & Culture" to "Arts and Culture"
Browse files Browse the repository at this point in the history
See #435
  • Loading branch information
lovasoa committed Aug 12, 2020
1 parent 6868266 commit ca50eff
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The following formats are supported by dezoomify:
* The [World Digital Library (WDL)](http://www.wdl.org/fr/)
* [Polona](http://polona.pl/), the Polish Digital National Library
* [BALaT](http://balat.kikirpa.be/), Belgian Art Links and Tools
* [Google Arts & Culture](https://artsandculture.google.com/) (formerly Google Art Project): a cooperation between google and several international museums
* [Arts & Culture](https://artsandculture.google.com/) (formerly Google Art Project): a cooperation between google and several international museums. [More info about the controversy around this dezoomer.](https://github.com/lovasoa/dezoomify/issues/435).
* [IIIF](https://iiif.io): The International Image Interoperability Framework, used on many websites, including:
* [Gallica](https://gallica.bnf.fr/), the numeric library of the French national library
* [Bavarikon](https://www.bavarikon.de/)
Expand All @@ -51,7 +51,7 @@ The following formats are supported by dezoomify:
* [Hungaricana](https://hungaricana.hu/en/) a format found only on the **Hungarian Cultural Heritage Portal**, that hosts half a million images.

The most prominant supported websites include :
- Google Arts & Culture (artsandculture.google.com)
- Arts & Culture (artsandculture.google.com)
- Gallica (gallica.bnf.fr)
- The British Library (bl.uk)
- National Gallery of Art (nga.gov)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { compute_signed_path, decrypt_image } from './google-arts-culture-crypto.js';
import { compute_signed_path, decrypt_image } from './arts-culture-crypto.js';

function findFile(baseUrl, callback) {
ZoomManager.getFile(baseUrl, { type: "htmltext" }, function (text, xhr) {
let reg = /]\n,"(\/\/[^"/]+\/[^"/]+)",(?:"([^"]+)"|null)/m;
let matches = text.match(reg);
if (!matches) throw new Error("Unable to find google arts image metadata URL");
if (!matches) throw new Error("Unable to find arts and culture image metadata URL");
let url = 'https:' + matches[1]
let path = new URL(url).pathname.slice(1);
let token = matches[2] || "";
Expand Down Expand Up @@ -57,8 +57,8 @@ async function getTileURL(


ZoomManager.addDezoomer({
"name": "Google Arts & Culture",
"description": "Zommable images from artsandculture.google.com",
"name": "Arts & Culture",
"description": "Zoomable images from the Arts and Culture website",
"urls": [
/artsandculture\.google\.com/,
/\/g.co\/arts\//
Expand Down
2 changes: 1 addition & 1 deletion dezoomify.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ <h3>
<script type="text/javascript" src="dezoomers/fsi.js"></script>
<script type="text/javascript" src="dezoomers/vls.js"></script>
<script type="text/javascript" src="dezoomers/micrio.js"></script>
<script type="module" src="dezoomers/google-arts-culture.js"></script>
<script type="module" src="dezoomers/arts-culture.js"></script>
<script type="module" src="dezoomers/hungaricana.js"></script>
<script type="module" src="dezoomers/mnesys.js"></script>
<script type="text/javascript" src="dezoomers/generic.js"></script>
Expand Down

0 comments on commit ca50eff

Please sign in to comment.