summaryrefslogtreecommitdiff
path: root/cmd/iiifdownloader
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-09-28 16:55:49 +0100
committerNick White <git@njw.name>2020-09-28 16:55:49 +0100
commit1d6117b2af1ddb124e24bcc3109b0a9ac72bf39b (patch)
tree8d0c8a805bead6d3f01f523a77be9f0d43d88394 /cmd/iiifdownloader
parentd1efeb891e11c13fd0748fa7ee3b7e4c3c946d63 (diff)
Make page numbering more generic to handle more iiif variety, and add harvardartmuseums iiif manifest example url
Diffstat (limited to 'cmd/iiifdownloader')
-rw-r--r--cmd/iiifdownloader/main.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/cmd/iiifdownloader/main.go b/cmd/iiifdownloader/main.go
index 593a93e..79ee74c 100644
--- a/cmd/iiifdownloader/main.go
+++ b/cmd/iiifdownloader/main.go
@@ -25,7 +25,7 @@ Currently supports the following IIIF using services:
- BNF's Gallica example url: https://gallica.bnf.fr/ark:/12148/bpt6k6468158v
- BSB / MDZ example url: https://reader.digitale-sammlungen.de//de/fs1/object/display/bsb10132387_00005.html
- DFG Viewer example url: http://dfg-viewer.de/show?set%%5Bmets%%5D=http%%3A%%2F%%2Fdaten.digitale-sammlungen.de%%2F~db%%2Fmets%%2Fbsb11274872_mets.xml&cHash=fd18451ee968c125ab2bdbfd3717eae6
-- IIIF Manifest example url: https://iiif.bodleian.ox.ac.uk/iiif/manifest/441db95d-cdff-472e-bb2d-b46f043db82d.json
+- IIIF Manifest example url: https://iiif.bodleian.ox.ac.uk/iiif/manifest/441db95d-cdff-472e-bb2d-b46f043db82d.json https://iiif.harvardartmuseums.org/manifests/object/299843
- METS Manifest example url: https://daten.digitale-sammlungen.de/~db/mets/bsb10132387_mets.xml
`
@@ -187,11 +187,7 @@ func urlToPgName(u string) string {
} else {
numpart = f2[len(f2)-1]
}
- if len(numpart) < 4 {
- pgnum = numpart
- } else {
- pgnum = numpart[len(numpart)-4:]
- }
+ pgnum = numpart
pgnum = strings.Replace(pgnum, "f", "", 1)