A novice question about uv-app-starter

66 views
Skip to first unread message

jsb...@mimuw.edu.pl

unread,
May 4, 2019, 7:45:43 AM5/4/19
to Universal Viewer
I've just published https://github.com/jsbien/Parkosz4IIIF at https://jsbien.github.io/Parkosz4IIIF/, but only the collection title is displayed. How to diagnose what went wrong?

Best regards

Janusz

Janusz S. Bień

unread,
May 4, 2019, 8:31:44 AM5/4/19
to Universal Viewer
On Sat, May 04 2019 at 4:45 -07, jsb...@mimuw.edu.pl wrote:
> I've just published https://github.com/jsbien/Parkosz4IIIF at
> https://jsbien.github.io/Parkosz4IIIF/, but only the collection title
> is displayed. How to diagnose what went wrong?

Now it works! GitHub needed some time to publish it?

So I change my question: how to make the document selection panel
smaller?

Best regards

Janusz

--
,
Janusz S. Bien
emeryt (emeritus)
https://sites.google.com/view/jsbien

Edward Silverton

unread,
May 4, 2019, 11:47:08 AM5/4/19
to Universal Viewer
Nice! Do you mean the gallery underneath the UV or the left-hand-side panel in the UV with the scrollable thumbs?

Janusz S. Bień

unread,
May 4, 2019, 11:58:06 AM5/4/19
to Edward Silverton, Universal Viewer
On Sat, May 04 2019 at 8:47 -07, Edward Silverton wrote:
> Nice! Do you mean the gallery underneath the UV or the left-hand-side
> panel in the UV with the scrollable thumbs?

The one underneath the UV. In the meantime I realised it can be done
probably with the iiif-gallery item in styles.css (no experience with
styles, but I can learn). Actually I would prefer a rectangular shape of
thumbs.

Best regards

Janusz

P.S. What about my issue #10? Am I making some stupid mistake?

Edward Silverton

unread,
May 4, 2019, 12:11:09 PM5/4/19
to Universal Viewer
I've replied - I need to  see the contents of your yml file.

Janusz S. Bień

unread,
May 4, 2019, 12:13:44 PM5/4/19
to Edward Silverton, Universal Viewer
On Sat, May 04 2019 at 9:11 -07, Edward Silverton wrote:
> I've replied - I need to see the contents of your yml file.

Our letters crossed. Sorry for the confusion. I commented the issue with
the content of the file.

Regards

Janusz

Janusz S. Bień

unread,
May 5, 2019, 4:30:17 AM5/5/19
to Universal Viewer
On Sat, May 04 2019 at 14:31 +02, Janusz S. Bień wrote:
> On Sat, May 04 2019 at 4:45 -07, jsb...@mimuw.edu.pl wrote:
>> I've just published https://github.com/jsbien/Parkosz4IIIF at
>> https://jsbien.github.io/Parkosz4IIIF/

Now I would like to be able to create URLs to specific pages.

The first idea was to use canvasIndex ('cv') and other appropriate
parameters of the "standard" URL, such as

https://jsbien.github.io/Parkosz4IIIF/#?c=&m=&s=&cv=&manifest=https%3A%2F%2Fjsbien.github.io%2FParkosz4IIIF%2Fcollection%2FParkoszJBC%2Findex.json&xywh=-3%2C-1%2C5%2C1

but it seems they are overriden by the script in index.html. Am I right?

The second idea was to create a separate HTML page for every document
page and to replace the code for recognizing a click by setting a
specific values. However the script is too difficult for me to
understand and modify, at least for the time being.

The third idea was to create new HTML pages from scratch using
OpenSeadragon available at /uv/lib/openseadragon.min.js. Unfortunately
it's not clear for me what I should specify as tileSources, and whether
some other changes are necessary.

I will appreciate very much your advice how to achieve my goal.

Janusz S. Bień

unread,
May 5, 2019, 5:52:31 AM5/5/19
to Universal Viewer
On Sun, May 05 2019 at 10:30 +02, Janusz S. Bień wrote:
> On Sat, May 04 2019 at 14:31 +02, Janusz S. Bień wrote:
>> On Sat, May 04 2019 at 4:45 -07, jsb...@mimuw.edu.pl wrote:
>>> I've just published https://github.com/jsbien/Parkosz4IIIF at
>>> https://jsbien.github.io/Parkosz4IIIF/
>
> Now I would like to be able to create URLs to specific pages.

[...]

> I will appreciate very much your advice how to achieve my goal.

Now I try unsuccesfully the 4th idea, i.e. adapting the example from

https://github.com/UniversalViewer/universalviewer/wiki/Embedding

by replacing

data-uri="http://wellcomelibrary.org/iiif/b18035723/manifest"

by another value (and appropriately modifying other values).

Unfortunately neither

data-uri="https://jsbien.github.io/Parkosz4IIIF/collection/ParkoszJBC/index.json"

nor

data-uri="/collection/ParkoszJBC/index.json"

works :-(

Any suggestions?

Janusz S. Bień

unread,
May 6, 2019, 3:15:16 PM5/6/19
to Universal Viewer

Hi!

Let me present some background of my help request.

I'm an experienced DjVu user and some time ago I published a facsimile
of a 15th century treatise in this format. Later I prepared an
electronic version of a critical edition of the treatise which contains
the links to the specific pages - more precisely, to the document opened
on a specific page, which allows user to zoom, pan, navigate etc.; this
version you can see at
https://bitbucket.org/jsbien/parkosz-traktat/downloads/ParkoszLatin.pdf.

As the links to the DjVu documents and their pages are now not supported
by browsers, I would like to replace them by the links to the just
published IIIF version of the treatise, i.e. the mentioned already
https://jsbien.github.io/Parkosz4IIIF/

As for the specific pages, I can of course use links like

https://jsbien.github.io/Parkosz4IIIF/collection/ParkoszJBC/_01/ParkoszJBC-001-000.jpg

but such isolated not zoomable image is not a good approximation of the
features available in the DjVu version, to which some readers may
already got accustomed.

The 4th idea presenting below seems for me most promising, but as a
novice to IIIF I'm unable to solve the problem by myself.

Moreover, there is a kind of deadline. Today I was informed that my
paper about my electronic version of the critical edition has been
accepted for publication and I have a week for delivering the final
version. I would like to mentioned in it the new electronic version with
IIIF link. I would be only too happy to acknowledge the help received in
the paper.

Looking forward to you comments and suggestions

Janusz

Demian Katz

unread,
May 6, 2019, 3:31:25 PM5/6/19
to jsb...@mimuw.edu.pl, Universal Viewer
Janusz,

Are you hosting a copy of the Universal Viewer somewhere, or are you only hosting the manifest and images for the manuscript?

When you navigate and zoom to a particular page of the manuscript from within the Universal Viewer, it updates its hash parameters so that you have a link which reproduces the state of your viewer... so if you have a hosted viewer, you should be able to create shareable links that meet your needs (though they will be long and unreadable -- so putting them through a link shortener of some sort would be wise for the purposes of your manuscript).

If you do not have a UV instance under your control, then you have less flexibility, and linking directly to raw images might be your best option (though of course it won't offer the rich zoom functionality).

Does that help at all, or am I misunderstanding your situation?

- Demian

-----Original Message-----
From: univers...@googlegroups.com <univers...@googlegroups.com> On Behalf Of Janusz S. Bien
Sent: Monday, May 6, 2019 3:15 PM
To: Universal Viewer <univers...@googlegroups.com>
Subject: URLs for specific zoomable pages (was: Another novice question about uv-app-starter)


Hi!

Let me present some background of my help request.

I'm an experienced DjVu user and some time ago I published a facsimile of a 15th century treatise in this format. Later I prepared an electronic version of a critical edition of the treatise which contains the links to the specific pages - more precisely, to the document opened on a specific page, which allows user to zoom, pan, navigate etc.; this version you can see at https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbitbucket.org%2Fjsbien%2Fparkosz-traktat%2Fdownloads%2FParkoszLatin.pdf&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C1993cd5b62c9457b98c308d6d2572d03%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C1%7C636927669206752630&amp;sdata=ligfNfsRTTpQgm%2B%2BaCSTwPQVVzV0c2ITrqwky5fXWc4%3D&amp;reserved=0.

As the links to the DjVu documents and their pages are now not supported by browsers, I would like to replace them by the links to the just published IIIF version of the treatise, i.e. the mentioned already
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjsbien.github.io%2FParkosz4IIIF%2F&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C1993cd5b62c9457b98c308d6d2572d03%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C1%7C636927669206752630&amp;sdata=9SLG5%2FkaUyKrw1eKICZ7%2FTF9xcInJzq9o%2Fayauh5kQ4%3D&amp;reserved=0

As for the specific pages, I can of course use links like

https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjsbien.github.io%2FParkosz4IIIF%2Fcollection%2FParkoszJBC%2F_01%2FParkoszJBC-001-000.jpg&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C1993cd5b62c9457b98c308d6d2572d03%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C1%7C636927669206752630&amp;sdata=UZfosSb1BccvzhBy374rNcF3nZO1Bhegf8OUHdXzfSs%3D&amp;reserved=0

but such isolated not zoomable image is not a good approximation of the features available in the DjVu version, to which some readers may already got accustomed.

The 4th idea presenting below seems for me most promising, but as a novice to IIIF I'm unable to solve the problem by myself.

Moreover, there is a kind of deadline. Today I was informed that my paper about my electronic version of the critical edition has been accepted for publication and I have a week for delivering the final version. I would like to mentioned in it the new electronic version with IIIF link. I would be only too happy to acknowledge the help received in the paper.

Looking forward to you comments and suggestions

Janusz

On Sun, May 05 2019 at 11:52 +02, Janusz S. Bień wrote:
> On Sun, May 05 2019 at 10:30 +02, Janusz S. Bień wrote:
>> On Sat, May 04 2019 at 14:31 +02, Janusz S. Bień wrote:
>>> On Sat, May 04 2019 at 4:45 -07, jsb...@mimuw.edu.pl wrote:
>>>> I've just published
>>>> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fg
>>>> ithub.com%2Fjsbien%2FParkosz4IIIF&amp;data=02%7C01%7Cdemian.katz%40
>>>> villanova.edu%7C1993cd5b62c9457b98c308d6d2572d03%7C765a8de5cf9444f0
>>>> 9cafae5bf8cfa366%7C0%7C1%7C636927669206752630&amp;sdata=t7iwcyj%2BH
>>>> GoONp5xcFcof5H%2BhNZYbNw%2BRQbqwl0OJyQ%3D&amp;reserved=0 at
>>>> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fj
>>>> sbien.github.io%2FParkosz4IIIF%2F&amp;data=02%7C01%7Cdemian.katz%40
>>>> villanova.edu%7C1993cd5b62c9457b98c308d6d2572d03%7C765a8de5cf9444f0
>>>> 9cafae5bf8cfa366%7C0%7C1%7C636927669206752630&amp;sdata=9SLG5%2FkaU
>>>> yKrw1eKICZ7%2FTF9xcInJzq9o%2Fayauh5kQ4%3D&amp;reserved=0
>>
>> Now I would like to be able to create URLs to specific pages.
>
> [...]
>
>> I will appreciate very much your advice how to achieve my goal.
>
> Now I try unsuccesfully the 4th idea, i.e. adapting the example from
>
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgith
> ub.com%2FUniversalViewer%2Funiversalviewer%2Fwiki%2FEmbedding&amp;data
> =02%7C01%7Cdemian.katz%40villanova.edu%7C1993cd5b62c9457b98c308d6d2572
> d03%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C1%7C636927669206752630&am
> p;sdata=CH9CiQ4scGBVHHSDovk%2FbN0KFStutda2erW8IhVePvU%3D&amp;reserved=
> 0
>
> by replacing
>
> data-uri="https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwellcomelibrary.org%2Fiiif%2Fb18035723%2Fmanifest&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C1993cd5b62c9457b98c308d6d2572d03%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C1%7C636927669206752630&amp;sdata=qDwZIDs44e4Td6XK9kUNa%2Bxd453hZ%2FOvzNt%2FKBitj4c%3D&amp;reserved=0"
>
> by another value (and appropriately modifying other values).
>
> Unfortunately neither
>
> data-uri="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjsbien.github.io%2FParkosz4IIIF%2Fcollection%2FParkoszJBC%2Findex.json&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C1993cd5b62c9457b98c308d6d2572d03%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C1%7C636927669206762638&amp;sdata=KHetcfPiS%2Fv4KV%2F9hdUWrVS1bQ%2FwYKYpdzgoTq5ZJn4%3D&amp;reserved=0"
>
> nor
>
> data-uri="/collection/ParkoszJBC/index.json"
>
> works :-(
>
> Any suggestions?
>
> Best regards
>
> Janusz
>
> --
> ,
> Janusz S. Bien
> emeryt (emeritus)
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsite
> s.google.com%2Fview%2Fjsbien&amp;data=02%7C01%7Cdemian.katz%40villanov
> a.edu%7C1993cd5b62c9457b98c308d6d2572d03%7C765a8de5cf9444f09cafae5bf8c
> fa366%7C0%7C1%7C636927669206762638&amp;sdata=LGlIUmhYViuRaQ5OGmgD1U57a
> n%2B%2FFpF2tvuUQQ0k1Fo%3D&amp;reserved=0

--
,
Janusz S. Bien
emeryt (emeritus)
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsites.google.com%2Fview%2Fjsbien&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C1993cd5b62c9457b98c308d6d2572d03%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C1%7C636927669206762638&amp;sdata=LGlIUmhYViuRaQ5OGmgD1U57an%2B%2FFpF2tvuUQQ0k1Fo%3D&amp;reserved=0

--
You received this message because you are subscribed to the Google Groups "Universal Viewer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to universalview...@googlegroups.com.
For more options, visit https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C1993cd5b62c9457b98c308d6d2572d03%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C1%7C636927669206762638&amp;sdata=IVa%2FthlctThZGwWML4oCr90qlvO1aS4rzPCWZTJkNy8%3D&amp;reserved=0.

Janusz S. Bień

unread,
May 7, 2019, 12:55:28 AM5/7/19
to Demian Katz, Universal Viewer
On Mon, May 06 2019 at 19:31 +00, Demian Katz wrote:
> Janusz,
>
> Are you hosting a copy of the Universal Viewer somewhere, or are you
> only hosting the manifest and images for the manuscript?

I published with https://github.com/UniversalViewer/uv-app-starter so a
copy of the Universal Viewer is hosted together with my scans.

>
> When you navigate and zoom to a particular page of the manuscript from
> within the Universal Viewer, it updates its hash parameters so that
> you have a link which reproduces the state of your viewer... so if you
> have a hosted viewer, you should be able to create shareable links
> that meet your needs (though they will be long and unreadable -- so
> putting them through a link shortener of some sort would be wise for
> the purposes of your manuscript).

This feature is somehow hidden in uv-app-starter so the links always
point to the first page.

> If you do not have a UV instance under your control, then you have
> less flexibility, and linking directly to raw images might be your
> best option (though of course it won't offer the rich zoom
> functionality).

I understand Universal Viewer includes OpenSeaDragon, it should be
possible to somehow access it.

Moreover I don't mind creating separate HTML pages for every document
page.

> Does that help at all, or am I misunderstanding your situation?

The author of uv-app-starter is also on this list. I hope he will find
time to comment.

Best regards

Janusz

--
,
Janusz S. Bien
emeryt (emeritus)
https://sites.google.com/view/jsbien

Demian Katz

unread,
May 7, 2019, 9:58:23 AM5/7/19
to jsb...@mimuw.edu.pl, Universal Viewer
Janusz,

Could you share the URL of your actual running fork of the uv-app-starter project so I can see it in action? (Apologies if you've sent it before and I missed it -- my institution's email system mangles URLs for security reasons, so it makes long email threads with URLs in them nearly impossible to read).

If you could also share the relevant manifest URL(s), that would be helpful.

I'm doing some experiments with the uv-app-starter myself and seeing some slightly strange behavior, but I'd like to see if I can reproduce this with your instance.

- Demian

-----Original Message-----
From: univers...@googlegroups.com <univers...@googlegroups.com> On Behalf Of Janusz S. Bien
Sent: Tuesday, May 7, 2019 12:55 AM
To: Demian Katz <demia...@villanova.edu>
Cc: Universal Viewer <univers...@googlegroups.com>
Subject: Re: URLs for specific zoomable pages

On Mon, May 06 2019 at 19:31 +00, Demian Katz wrote:
> Janusz,
>
> Are you hosting a copy of the Universal Viewer somewhere, or are you
> only hosting the manifest and images for the manuscript?

I published with https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FUniversalViewer%2Fuv-app-starter&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C3eb79b75438a47abf24008d6d2a83aa0%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928017320384400&amp;sdata=i7aVE0T9QuO4ZcnHo6f49q3yxcMelZR7roxspNs9Ofk%3D&amp;reserved=0 so a copy of the Universal Viewer is hosted together with my scans.

>
> When you navigate and zoom to a particular page of the manuscript from
> within the Universal Viewer, it updates its hash parameters so that
> you have a link which reproduces the state of your viewer... so if you
> have a hosted viewer, you should be able to create shareable links
> that meet your needs (though they will be long and unreadable -- so
> putting them through a link shortener of some sort would be wise for
> the purposes of your manuscript).

This feature is somehow hidden in uv-app-starter so the links always point to the first page.

> If you do not have a UV instance under your control, then you have
> less flexibility, and linking directly to raw images might be your
> best option (though of course it won't offer the rich zoom
> functionality).

I understand Universal Viewer includes OpenSeaDragon, it should be possible to somehow access it.

Moreover I don't mind creating separate HTML pages for every document page.

> Does that help at all, or am I misunderstanding your situation?

The author of uv-app-starter is also on this list. I hope he will find time to comment.

Best regards

Janusz

--
,
Janusz S. Bien
emeryt (emeritus)
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsites.google.com%2Fview%2Fjsbien&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C3eb79b75438a47abf24008d6d2a83aa0%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928017320384400&amp;sdata=lChrNjf%2Fx59XKa2QPoowFLKRNft5zPkHnHTFENvepCU%3D&amp;reserved=0

--
You received this message because you are subscribed to the Google Groups "Universal Viewer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to universalview...@googlegroups.com.
To view this discussion on the web, visit https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Funiversalviewer%2F86v9ym6eyt.fsf%2540mimuw.edu.pl&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C3eb79b75438a47abf24008d6d2a83aa0%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928017320384400&amp;sdata=ZnjhTbp6G1hoGJKtAQqC%2Fg22YWiHyGaZGVm1cQxZF9M%3D&amp;reserved=0.
For more options, visit https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C3eb79b75438a47abf24008d6d2a83aa0%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928017320384400&amp;sdata=7ceOrAWnx47z1WJWIUt310W5bGdfWuX9w8KTFYpoJC0%3D&amp;reserved=0.

Janusz S. Bień

unread,
May 7, 2019, 10:19:37 AM5/7/19
to Demian Katz, Universal Viewer
On Tue, May 07 2019 at 13:58 +00, Demian Katz wrote:
> Janusz,
>
> Could you share the URL of your actual running fork of the
> uv-app-starter project so I can see it in action? (Apologies if you've
> sent it before and I missed it -- my institution's email system
> mangles URLs for security reasons, so it makes long email threads with
> URLs in them nearly impossible to read).

https://github.com/jsbien/Parkosz4IIIF

is published as

https://jsbien.github.io/Parkosz4IIIF/

>
> If you could also share the relevant manifest URL(s), that would be helpful.

The raw manifests:

https://jsbien.github.io/Parkosz4IIIF/collection/ParkoszJBC/index.json

https://jsbien.github.io/Parkosz4IIIF/collection/ParkoszMF/index.json

https://jsbien.github.io/Parkosz4IIIF/collection/ParkoszPWN/index.json

"Sharing" provides links like

https://jsbien.github.io/Parkosz4IIIF/#?c=&m=&s=&cv=&manifest=https%3A%2F%2Fjsbien.github.io%2FParkosz4IIIF%2Fcollection%2FParkoszMF%2Findex.json&xywh=0%2C0%2C0%2C0

> I'm doing some experiments with the uv-app-starter myself and seeing
> some slightly strange behavior, but I'd like to see if I can reproduce
> this with your instance.

I also had various problems, some documented in the closed now issues,
others I even don't remember now.

Best regards

Janusz

--
,
Janusz S. Bien
emeryt (emeritus)
https://sites.google.com/view/jsbien

Demian Katz

unread,
May 7, 2019, 11:48:36 AM5/7/19
to jsb...@mimuw.edu.pl, Universal Viewer
Thanks, Janusz, that's very helpful.

I've submitted a pull request here which I think may help make the hash parameters work right:

https://github.com/UniversalViewer/uv-app-starter/pull/11/files

If you are able to test this and let us know if it helps, that would be great. I'm also hoping that Ed can review my work later today and let me know if I've done anything foolish. 😊

- Demian

-----Original Message-----
From: univers...@googlegroups.com <univers...@googlegroups.com> On Behalf Of Janusz S. Bien
Sent: Tuesday, May 7, 2019 10:20 AM
To: Demian Katz <demia...@villanova.edu>
Cc: Universal Viewer <univers...@googlegroups.com>
Subject: Re: URLs for specific zoomable pages

On Tue, May 07 2019 at 13:58 +00, Demian Katz wrote:
> Janusz,
>
> Could you share the URL of your actual running fork of the
> uv-app-starter project so I can see it in action? (Apologies if you've
> sent it before and I missed it -- my institution's email system
> mangles URLs for security reasons, so it makes long email threads with
> URLs in them nearly impossible to read).

https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjsbien%2FParkosz4IIIF&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C1c0e1ae015b5482c33e108d6d2f70a34%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928355811831254&amp;sdata=K7Pb8R2opUT4dpe9avOsjoh4za4YvqPcn3I2BicWAmc%3D&amp;reserved=0

is published as

https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjsbien.github.io%2FParkosz4IIIF%2F&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C1c0e1ae015b5482c33e108d6d2f70a34%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928355811831254&amp;sdata=hCSqpzkbY0D6sZCoAqXuYmkpU1QQHfKGcq8kDOB3Ie8%3D&amp;reserved=0

>
> If you could also share the relevant manifest URL(s), that would be helpful.

The raw manifests:

https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjsbien.github.io%2FParkosz4IIIF%2Fcollection%2FParkoszJBC%2Findex.json&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C1c0e1ae015b5482c33e108d6d2f70a34%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928355811831254&amp;sdata=o2TolYUFqAqkZzAwrk0nnm6EFeVlAyjXgiEK2gpVoqU%3D&amp;reserved=0

https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjsbien.github.io%2FParkosz4IIIF%2Fcollection%2FParkoszMF%2Findex.json&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C1c0e1ae015b5482c33e108d6d2f70a34%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928355811831254&amp;sdata=m7SpMHHbSe5TutjJqaiHkMzvdyTAEozCWLkGyNme5M0%3D&amp;reserved=0

https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjsbien.github.io%2FParkosz4IIIF%2Fcollection%2FParkoszPWN%2Findex.json&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C1c0e1ae015b5482c33e108d6d2f70a34%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928355811831254&amp;sdata=I8x%2FzM3Vl42AFoJQ2wzELUmV6q9mJSCqAANkIILxkuU%3D&amp;reserved=0

"Sharing" provides links like

https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjsbien.github.io%2FParkosz4IIIF%2F%23%3Fc%3D%26m%3D%26s%3D%26cv%3D%26manifest%3Dhttps%253A%252F%252Fjsbien.github.io%252FParkosz4IIIF%252Fcollection%252FParkoszMF%252Findex.json%26xywh%3D0%252C0%252C0%252C0&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C1c0e1ae015b5482c33e108d6d2f70a34%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928355811831254&amp;sdata=N%2B8T%2FvJeGIfFTFbIQvbIaAsjwn7B7LHDUun0jvIWu4Q%3D&amp;reserved=0

> I'm doing some experiments with the uv-app-starter myself and seeing
> some slightly strange behavior, but I'd like to see if I can reproduce
> this with your instance.

I also had various problems, some documented in the closed now issues, others I even don't remember now.

Best regards

Janusz

--
,
Janusz S. Bien
emeryt (emeritus)
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsites.google.com%2Fview%2Fjsbien&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C1c0e1ae015b5482c33e108d6d2f70a34%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928355811831254&amp;sdata=tWQRrYRhEiK8RKuimJ3Y5F3Lw6TrhxrAuD0fLYVkGrc%3D&amp;reserved=0

--
You received this message because you are subscribed to the Google Groups "Universal Viewer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to universalview...@googlegroups.com.
To view this discussion on the web, visit https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Funiversalviewer%2F86r29a73ey.fsf%2540mimuw.edu.pl&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C1c0e1ae015b5482c33e108d6d2f70a34%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928355811831254&amp;sdata=qgvnzTqwZNM9bDQdw8mx5I%2BsqjgDiT4S1QRYhA24V00%3D&amp;reserved=0.
For more options, visit https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C1c0e1ae015b5482c33e108d6d2f70a34%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928355811831254&amp;sdata=q1%2FdGzzdo6rUQKSrLI7%2FzYCjPhEHhF2wg4Gdf%2F2nCvU%3D&amp;reserved=0.

Janusz S. Bień

unread,
May 7, 2019, 2:34:12 PM5/7/19
to Demian Katz, Universal Viewer
On Tue, May 07 2019 at 15:48 +00, Demian Katz wrote:
> Thanks, Janusz, that's very helpful.
>
> I've submitted a pull request here which I think may help make the hash parameters work right:
>
> https://github.com/UniversalViewer/uv-app-starter/pull/11/files
>
> If you are able to test this and let us know if it helps, that would
> be great. I'm also hoping that Ed can review my work later today and
> let me know if I've done anything foolish. 😊

I cloned

https://github.com/demiankatz/uv-app-starter/

and encountered a problem which occured several times earlier (so it's
not your fault, but a more general problem) and vanished later, both for
the reasons I don't know: the collection is not accessible, only the
title of the page is displayed.

On the console there are the following messages:

--8<---------------cut here---------------start------------->8---
Starting up http-server, serving ./
Available on:
http://127.0.0.1:8888
http://192.168.0.181:8888
Hit CTRL-C to stop the server
[Tue May 07 2019 20:20:28 GMT+0200 (Central European Summer Time)] "GET /" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"
[Tue May 07 2019 20:20:28 GMT+0200 (Central European Summer Time)] "GET /uv/uv.css" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"
[Tue May 07 2019 20:20:28 GMT+0200 (Central European Summer Time)] "GET /styles.css" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"
[Tue May 07 2019 20:20:28 GMT+0200 (Central European Summer Time)] "GET /uv/lib/offline.js" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"
[Tue May 07 2019 20:20:28 GMT+0200 (Central European Summer Time)] "GET /uv/helpers.js" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"
[Tue May 07 2019 20:20:28 GMT+0200 (Central European Summer Time)] "GET /uv/uv.js" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"
[Tue May 07 2019 20:20:29 GMT+0200 (Central European Summer Time)] "GET /uv-app-starter/collection/index.json" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"
[Tue May 07 2019 20:20:29 GMT+0200 (Central European Summer Time)] "GET /uv-app-starter/collection/index.json" Error (404): "Not found"
--8<---------------cut here---------------end--------------->8---

However the manifest is accesible at

http://127.0.0.1:8888/collection/index.json

Best regards

Janusz

--
,
Janusz S. Bien
emeryt (emeritus)
https://sites.google.com/view/jsbien

Demian Katz

unread,
May 7, 2019, 2:56:19 PM5/7/19
to jsb...@mimuw.edu.pl, Universal Viewer
Janusz,

I'm seeing the same thing. The problem seems to boil down to this link being dead:

https://unpkg.com/manifesto.js/dist/client/manifesto.bundle.js

It was working earlier today, so perhaps this is a problem on the unpkg.com side. This could be circumvented by bundling a copy of manifesto into the uv-app-starter instead of relying on third party hosting. I'm interested to hear Ed's thoughts on this. I think I'd personally rather see a heavier build process rather than trusting external URLs to work indefinitely... but I realize the other approach has its own set of benefits. 😊

- Demian

-----Original Message-----
From: univers...@googlegroups.com <univers...@googlegroups.com> On Behalf Of Janusz S. Bien
Sent: Tuesday, May 7, 2019 2:34 PM
To: Demian Katz <demia...@villanova.edu>
Cc: Universal Viewer <univers...@googlegroups.com>
Subject: Re: URLs for specific zoomable pages

On Tue, May 07 2019 at 15:48 +00, Demian Katz wrote:
> Thanks, Janusz, that's very helpful.
>
> I've submitted a pull request here which I think may help make the hash parameters work right:
>
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgith
> ub.com%2FUniversalViewer%2Fuv-app-starter%2Fpull%2F11%2Ffiles&amp;data
> =02%7C01%7Cdemian.katz%40villanova.edu%7C9611f6f2b4d9477e286d08d6d31a9
> ab1%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928508554907220&am
> p;sdata=u0JfUinDELGnK2CjFpb2eLK7Thfie3sj59hoE1Nir38%3D&amp;reserved=0
>
> If you are able to test this and let us know if it helps, that would
> be great. I'm also hoping that Ed can review my work later today and
> let me know if I've done anything foolish. 😊

I cloned

https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdemiankatz%2Fuv-app-starter%2F&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C9611f6f2b4d9477e286d08d6d31a9ab1%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928508554907220&amp;sdata=BOKi9t%2BCZTr%2BF8jCI7SxtQYKqGPOm8n5ySuDndBbp6U%3D&amp;reserved=0

and encountered a problem which occured several times earlier (so it's not your fault, but a more general problem) and vanished later, both for the reasons I don't know: the collection is not accessible, only the title of the page is displayed.

On the console there are the following messages:

--8<---------------cut here---------------start------------->8---
Starting up http-server, serving ./
Available on:
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2F127.0.0.1%3A8888&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C9611f6f2b4d9477e286d08d6d31a9ab1%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928508554907220&amp;sdata=STHRr3MCuvzIxLfhUDDGmkuatVkCC9dcelLP6Tm0%2Beo%3D&amp;reserved=0
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2F192.168.0.181%3A8888&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C9611f6f2b4d9477e286d08d6d31a9ab1%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928508554907220&amp;sdata=JtEjpU7CJ2n0qZ9QRSNjnME6NmK%2FZsYLM25Bg0C8o4o%3D&amp;reserved=0
Hit CTRL-C to stop the server
[Tue May 07 2019 20:20:28 GMT+0200 (Central European Summer Time)] "GET /" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"
[Tue May 07 2019 20:20:28 GMT+0200 (Central European Summer Time)] "GET /uv/uv.css" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"
[Tue May 07 2019 20:20:28 GMT+0200 (Central European Summer Time)] "GET /styles.css" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"
[Tue May 07 2019 20:20:28 GMT+0200 (Central European Summer Time)] "GET /uv/lib/offline.js" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"
[Tue May 07 2019 20:20:28 GMT+0200 (Central European Summer Time)] "GET /uv/helpers.js" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"
[Tue May 07 2019 20:20:28 GMT+0200 (Central European Summer Time)] "GET /uv/uv.js" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"
[Tue May 07 2019 20:20:29 GMT+0200 (Central European Summer Time)] "GET /uv-app-starter/collection/index.json" "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"
[Tue May 07 2019 20:20:29 GMT+0200 (Central European Summer Time)] "GET /uv-app-starter/collection/index.json" Error (404): "Not found"
--8<---------------cut here---------------end--------------->8---

However the manifest is accesible at

https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2F127.0.0.1%3A8888%2Fcollection%2Findex.json&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C9611f6f2b4d9477e286d08d6d31a9ab1%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928508554907220&amp;sdata=0ShV6hhyQHfhaY3pSdj1Ue0%2FldsT%2B36r1mdQuppMVbA%3D&amp;reserved=0

Best regards

Janusz

--
,
Janusz S. Bien
emeryt (emeritus)
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsites.google.com%2Fview%2Fjsbien&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C9611f6f2b4d9477e286d08d6d31a9ab1%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928508554907220&amp;sdata=HezIkrvH%2BH3I%2Fn1I6zGzo6gj4bpV1nH5rt1fYGeLE0g%3D&amp;reserved=0

--
You received this message because you are subscribed to the Google Groups "Universal Viewer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to universalview...@googlegroups.com.
To view this discussion on the web, visit https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Funiversalviewer%2F86sgtqnmg1.fsf%2540mimuw.edu.pl&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C9611f6f2b4d9477e286d08d6d31a9ab1%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928508554907220&amp;sdata=%2FrD8Zr72UUchmecKwAoPtpbfg%2FE5fBMp9muMAqF6KEI%3D&amp;reserved=0.
For more options, visit https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C9611f6f2b4d9477e286d08d6d31a9ab1%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928508554917219&amp;sdata=eHKMEnVxrdctLegyWcOp%2B3MAHMIumj6ldoU2v9P%2F1Ko%3D&amp;reserved=0.

Demian Katz

unread,
May 7, 2019, 3:22:45 PM5/7/19
to jsb...@mimuw.edu.pl, Universal Viewer
Quick update: the problem I described below was related to using the master branch of uv-app-starter, which is years out of date. Only the gh-pages branch is valid. Ed has deleted the obsolete master branch to prevent future confusion. I'm wondering if you may be falling into the same trap. Please double-check that your work is derived from the gh-pages branch and not from master; hopefully that will help!

For what it's worth, everything is now working correctly for me once again.

Janusz S. Bień

unread,
May 7, 2019, 3:53:04 PM5/7/19
to Demian Katz, Universal Viewer
On Tue, May 07 2019 at 19:22 +00, Demian Katz wrote:
> Quick update: the problem I described below was related to using the
> master branch of uv-app-starter, which is years out of date. Only the
> gh-pages branch is valid. Ed has deleted the obsolete master branch to
> prevent future confusion. I'm wondering if you may be falling into the
> same trap. Please double-check that your work is derived from the
> gh-pages branch and not from master; hopefully that will help!

I tested the gh-pages branch from your repository, and also the hash-fix
branch. The problem persists. However the pre-published version of the
repository for https://jsbien.github.io/Parkosz4IIIF still works.

Tomorrow I will try to compare working and not working versions and
perhaps arrive at some conclusion.

> For what it's worth, everything is now working correctly for me once again.

Glad to hear.

Best regards

Janusz

--
,
Janusz S. Bien
emeryt (emeritus)
https://sites.google.com/view/jsbien

Demian Katz

unread,
May 7, 2019, 4:07:44 PM5/7/19
to jsb...@mimuw.edu.pl, Universal Viewer
Good luck! I will be interested to hear what you find.

- Demian

-----Original Message-----
From: univers...@googlegroups.com <univers...@googlegroups.com> On Behalf Of Janusz S. Bien
Sent: Tuesday, May 7, 2019 3:53 PM
To: Demian Katz <demia...@villanova.edu>
Cc: Universal Viewer <univers...@googlegroups.com>
Subject: Re: URLs for specific zoomable pages

On Tue, May 07 2019 at 19:22 +00, Demian Katz wrote:
> Quick update: the problem I described below was related to using the
> master branch of uv-app-starter, which is years out of date. Only the
> gh-pages branch is valid. Ed has deleted the obsolete master branch to
> prevent future confusion. I'm wondering if you may be falling into the
> same trap. Please double-check that your work is derived from the
> gh-pages branch and not from master; hopefully that will help!

I tested the gh-pages branch from your repository, and also the hash-fix branch. The problem persists. However the pre-published version of the repository for https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjsbien.github.io%2FParkosz4IIIF&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C0970c045a52e4f6dd1a108d6d3259f0f%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928555879622600&amp;sdata=hVygMU6zmawxmbO4rzCFOhZtOJVmt1pQFwX4HeJzvQ4%3D&amp;reserved=0 still works.

Tomorrow I will try to compare working and not working versions and perhaps arrive at some conclusion.

> For what it's worth, everything is now working correctly for me once again.

Glad to hear.

Best regards

Janusz

--
,
Janusz S. Bien
emeryt (emeritus)
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsites.google.com%2Fview%2Fjsbien&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C0970c045a52e4f6dd1a108d6d3259f0f%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928555879622600&amp;sdata=LUGd4OGTMjFBcpM87rgAD8jpooTc3MbyBWst6CPFckQ%3D&amp;reserved=0

--
You received this message because you are subscribed to the Google Groups "Universal Viewer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to universalview...@googlegroups.com.
To view this discussion on the web, visit https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Funiversalviewer%2F864l66jb3a.fsf%2540mimuw.edu.pl&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C0970c045a52e4f6dd1a108d6d3259f0f%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928555879622600&amp;sdata=SOL85FtJEOSJFPDS1%2F1mkjPksq9ohWqTCHk9e2hgNdI%3D&amp;reserved=0.
For more options, visit https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C0970c045a52e4f6dd1a108d6d3259f0f%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928555879622600&amp;sdata=l31Zb%2BjZ4DSpF1um0w9W3CnOQLuhMWQM%2BTQkIJAtjIc%3D&amp;reserved=0.

Janusz S. Bień

unread,
May 8, 2019, 3:22:00 AM5/8/19
to Demian Katz, Universal Viewer
On Tue, May 07 2019 at 20:07 +00, Demian Katz wrote:
> Good luck! I will be interested to hear what you find.

Let start with a relatively good news.

I applied your fix by hand to the working version of my repository and
it seemed to be correct (there were some problems with display which may
be due to my rather chaotic way of experimenting). So I decided to
publish it on GitHub pages (https://jsbien.github.io/Parkosz4IIIF,
https://github.com/jsbien/Parkosz4IIIF).

Unfortunately the published version behave differently than the one
testing locally. I'm curious whether you can reproduce the problem: when
I change a page, it is reflected in the URL, however when I use such URL
it is rewritten somehow to point to the first page.

The bad news is that the clone of your repository still doesn't work on
my computer. Comparing it with a working version I see there is a lot of
differences in node_modules. An example below.

Best regards

Janusz


--8<---------------cut here---------------start------------->8---
*** /mnt/MyBookT2/GitHub/Parkosz4IIIF_before-publishing_pages/node_modules/@edsilv/exjs/package.json 2019-05-04 13:02:42.924343526 +0200
--- /home/jsbien/Demian/uv-app-starter/node_modules/@edsilv/exjs/package.json 2019-05-07 20:14:49.915891705 +0200
***************
*** 1,4 ****
--- 1,10 ----
{
+ "_args": [
+ [
+ "@edsilv/ex...@0.5.1",
+ "/home/jsbien/Demian/uv-app-starter"
+ ]
+ ],
"_from": "@edsilv/ex...@0.5.1",
"_id": "@edsilv/ex...@0.5.1",
"_inBundle": false,
***************
*** 23,39 ****
"/universalviewer"
],
"_resolved": "https://registry.npmjs.org/@edsilv/exjs/-/exjs-0.5.1.tgz",
! "_shasum": "c472a2b50fcb0b7e0fcd4ec95f08bc2fa4c4bbee",
! "_spec": "@edsilv/ex...@0.5.1",
! "_where": "/home/jsbien/GitHub/Parkosz4IIIF/node_modules/universalviewer",
"author": {
"name": "Brad Sickles"
},
"bugs": {
"url": "https://github.com/BSick7/exjs/issues"
},
- "bundleDependencies": false,
- "deprecated": false,
"description": "Extension library",
"devDependencies": {
"bower-typings": "^0.1.0",
--- 29,42 ----
"/universalviewer"
],
"_resolved": "https://registry.npmjs.org/@edsilv/exjs/-/exjs-0.5.1.tgz",
! "_spec": "0.5.1",
! "_where": "/home/jsbien/Demian/uv-app-starter",
"author": {
"name": "Brad Sickles"
},
"bugs": {
"url": "https://github.com/BSick7/exjs/issues"
},
"description": "Extension library",
"devDependencies": {
"bower-typings": "^0.1.0",
--8<---------------cut here---------------end--------------->8---


--
,
Janusz S. Bien
emeryt (emeritus)
https://sites.google.com/view/jsbien

Demian Katz

unread,
May 8, 2019, 7:44:53 AM5/8/19
to jsb...@mimuw.edu.pl, Universal Viewer
Janusz,

I think the problem you are seeing may not be as much of a problem as it appears.

The URL (and other parameters) are stored in the URL hash (after the # sign). When you paste a URL into a browser that has the same base but a different hash, the browser doesn't actually reload the page. When I was testing these URLs, I ran into the problem where editing the hash for testing purposes had no effect, unless I forced a reload of the page, and then the URL worked.

Are you seeing the same problem if you paste URLs from one browser to another, or only if you stay within the same browser? In my case, going from browser to browser always worked as expected. For the purposes of sharing links, this is probably sufficient.

I think we could probably come up with a more robust solution by implementing an onhashchange function that reinitializes the viewer using incoming hash parameters (though without experimenting with it, I'm not sure if this would end up creating a bad loop whenever the viewer itself changes the hash -- that might require some caution):

https://www.w3schools.com/jsref/event_onhashchange.asp

Regarding problems on your local computer, is it possible that this is related to the version of Node.js you are running? I've had successful tests with v8.12.0 on my own machine, but when I use earlier versions, various things break.

- Demian

-----Original Message-----
From: univers...@googlegroups.com <univers...@googlegroups.com> On Behalf Of Janusz S. Bien
Sent: Wednesday, May 8, 2019 3:22 AM
To: Demian Katz <demia...@villanova.edu>
Cc: Universal Viewer <univers...@googlegroups.com>
Subject: Re: URLs for specific zoomable pages

On Tue, May 07 2019 at 20:07 +00, Demian Katz wrote:
> Good luck! I will be interested to hear what you find.

Let start with a relatively good news.

I applied your fix by hand to the working version of my repository and it seemed to be correct (there were some problems with display which may be due to my rather chaotic way of experimenting). So I decided to publish it on GitHub pages (https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjsbien.github.io%2FParkosz4IIIF&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7Cd638b8c672cd4e3c10db08d6d385dd0c%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928969237245509&amp;sdata=5NZgQKE93BdgnniLnitjr%2BY5BhuJe94USiNkOEhxYRY%3D&amp;reserved=0,
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjsbien%2FParkosz4IIIF&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7Cd638b8c672cd4e3c10db08d6d385dd0c%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928969237245509&amp;sdata=%2BBgvOI7jMuC4hc%2BfSVHtHA08Xxg%2BI1n8pT0paL%2FRyRI%3D&amp;reserved=0).

Unfortunately the published version behave differently than the one testing locally. I'm curious whether you can reproduce the problem: when I change a page, it is reflected in the URL, however when I use such URL it is rewritten somehow to point to the first page.

The bad news is that the clone of your repository still doesn't work on my computer. Comparing it with a working version I see there is a lot of differences in node_modules. An example below.

Best regards

Janusz


--8<---------------cut here---------------start------------->8---
*** /mnt/MyBookT2/GitHub/Parkosz4IIIF_before-publishing_pages/node_modules/@edsilv/exjs/package.json 2019-05-04 13:02:42.924343526 +0200
--- /home/jsbien/Demian/uv-app-starter/node_modules/@edsilv/exjs/package.json 2019-05-07 20:14:49.915891705 +0200
***************
*** 1,4 ****
--- 1,10 ----
{
+ "_args": [
+ [
+ "@edsilv/ex...@0.5.1",
+ "/home/jsbien/Demian/uv-app-starter"
+ ]
+ ],
"_from": "@edsilv/ex...@0.5.1",
"_id": "@edsilv/ex...@0.5.1",
"_inBundle": false,
***************
*** 23,39 ****
"/universalviewer"
],
"_resolved": "https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fregistry.npmjs.org%2F%40edsilv%2Fexjs%2F-%2Fexjs-0.5.1.tgz&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7Cd638b8c672cd4e3c10db08d6d385dd0c%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928969237245509&amp;sdata=liYcf7t1QOOjCVVQyhsOnHO0NH0PdWzEQZXon4rsdRg%3D&amp;reserved=0",
! "_shasum": "c472a2b50fcb0b7e0fcd4ec95f08bc2fa4c4bbee",
! "_spec": "@edsilv/ex...@0.5.1",
! "_where": "/home/jsbien/GitHub/Parkosz4IIIF/node_modules/universalviewer",
"author": {
"name": "Brad Sickles"
},
"bugs": {
"url": "https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FBSick7%2Fexjs%2Fissues&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7Cd638b8c672cd4e3c10db08d6d385dd0c%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928969237245509&amp;sdata=FhTFnYDBmfEX0Invkn6xgPpgdWDn%2FkTggL2xRebZOCo%3D&amp;reserved=0"
},
- "bundleDependencies": false,
- "deprecated": false,
"description": "Extension library",
"devDependencies": {
"bower-typings": "^0.1.0",
--- 29,42 ----
"/universalviewer"
],
"_resolved": "https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fregistry.npmjs.org%2F%40edsilv%2Fexjs%2F-%2Fexjs-0.5.1.tgz&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7Cd638b8c672cd4e3c10db08d6d385dd0c%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928969237245509&amp;sdata=liYcf7t1QOOjCVVQyhsOnHO0NH0PdWzEQZXon4rsdRg%3D&amp;reserved=0",
! "_spec": "0.5.1",
! "_where": "/home/jsbien/Demian/uv-app-starter",
"author": {
"name": "Brad Sickles"
},
"bugs": {
"url": "https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FBSick7%2Fexjs%2Fissues&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7Cd638b8c672cd4e3c10db08d6d385dd0c%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928969237245509&amp;sdata=FhTFnYDBmfEX0Invkn6xgPpgdWDn%2FkTggL2xRebZOCo%3D&amp;reserved=0"
},
"description": "Extension library",
"devDependencies": {
"bower-typings": "^0.1.0",
--8<---------------cut here---------------end--------------->8---


--
,
Janusz S. Bien
emeryt (emeritus)
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsites.google.com%2Fview%2Fjsbien&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7Cd638b8c672cd4e3c10db08d6d385dd0c%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928969237245509&amp;sdata=A9bGUap3r0IhuwtVNwMWXYReP%2BL0EhePJQ7f%2FqEEwiU%3D&amp;reserved=0

--
You received this message because you are subscribed to the Google Groups "Universal Viewer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to universalview...@googlegroups.com.
To view this discussion on the web, visit https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Funiversalviewer%2F867eb1qulo.fsf%2540mimuw.edu.pl&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7Cd638b8c672cd4e3c10db08d6d385dd0c%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928969237255514&amp;sdata=pu5PMfQ%2Fbp99df3trhR8ni1befzv9MvrV%2FTBH9VEix8%3D&amp;reserved=0.
For more options, visit https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7Cd638b8c672cd4e3c10db08d6d385dd0c%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636928969237255514&amp;sdata=WadgZbp5NP5QPYdZgSr%2B%2F3QqoG4%2BujQVhT7ivjb7Mxs%3D&amp;reserved=0.

Janusz S. Bień

unread,
May 8, 2019, 8:38:30 AM5/8/19
to Demian Katz, Universal Viewer
On Wed, May 08 2019 at 11:44 +00, Demian Katz wrote:
> Janusz,
>
> I think the problem you are seeing may not be as much of a problem as
> it appears.
>
> The URL (and other parameters) are stored in the URL hash (after the #
> sign). When you paste a URL into a browser that has the same base but
> a different hash, the browser doesn't actually reload the page. When I
> was testing these URLs, I ran into the problem where editing the hash
> for testing purposes had no effect, unless I forced a reload of the
> page, and then the URL worked.

First my apology: I made a stupid error and did commit the right
index.html only a moment ago.

At present publishing a repository makes impossible to test the
collection locally. So I maintain two repositories: a pre-published and
the published one. After the tests I move the data to be published by
hand, which might be error-prone. Perhaps I should change my workflow
and automate it somehow.

So looks like my primary problem is solved - Demian, thank you very
much! It would be nice to get rid of the need of reloading, but it is
already usable in the present form. My thanks go also to Edward for the
original uv-app-starter, without it moving the scans from DjVu to IIIF
would take much longer.

There are still several problems left which I will try to solve one by
one. I assume this list is the right forum for it. I subscribed to Slack
but I'm overhelmed by the number of the channels in the UV workspace
and, last but not least, I don't find Slack a comfortable tool.

Best regards

Janusz

P.S. Node at /usr/local/bin/node is version v10.15.2.

--
,
Janusz S. Bien
emeryt (emeritus)
https://sites.google.com/view/jsbien

Demian Katz

unread,
May 8, 2019, 8:47:50 AM5/8/19
to jsb...@mimuw.edu.pl, Universal Viewer
Janusz,

I'm glad you're making progress, and this list is definitely an appropriate place to ask further questions as they arise. I think this project tends to favor Slack over mailing lists, so you might get faster or more diverse answers there (you can use the #help channel if you feel the need)... but I also like mailing lists, so you'll at least have my attention if you post here. 😉

- Demian

-----Original Message-----
From: univers...@googlegroups.com <univers...@googlegroups.com> On Behalf Of Janusz S. Bien
Sent: Wednesday, May 8, 2019 8:38 AM
To: Demian Katz <demia...@villanova.edu>
Cc: Universal Viewer <univers...@googlegroups.com>
Subject: Re: URLs for specific zoomable pages

https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsites.google.com%2Fview%2Fjsbien&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C04dce258617641fc277f08d6d3b21448%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636929159131342701&amp;sdata=AGdxqRXiv3p6M23FJ%2Fg4cd6%2BKnHg%2FXl9CbOGiOUgwj8%3D&amp;reserved=0

--
You received this message because you are subscribed to the Google Groups "Universal Viewer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to universalview...@googlegroups.com.
To view this discussion on the web, visit https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Funiversalviewer%2F86k1f1yvcu.fsf%2540mimuw.edu.pl&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C04dce258617641fc277f08d6d3b21448%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636929159131342701&amp;sdata=CSM0UWxzkrudhEajcZgUn2MUiCxPNDBsRdzLLelWCKs%3D&amp;reserved=0.
For more options, visit https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&amp;data=02%7C01%7Cdemian.katz%40villanova.edu%7C04dce258617641fc277f08d6d3b21448%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636929159131342701&amp;sdata=CvMn44KUVZmGX2R6i37VzWwemNZcEZDe7zt6VOYVmbI%3D&amp;reserved=0.
Reply all
Reply to author
Forward
0 new messages