open record in accordion / tab

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

open record in accordion / tab

Jochen Lienhard
Hi,

if you use the feature to open records in the result-list in accordions
or tabs, you must
wait until the latest service is sending the response.

Usually the index is very much faster than the ILS system.

Does somebody know an option that you must not wait for the latest service?

Greetings

Jochen

--
Dr. rer. nat. Jochen Lienhard
IT Dezernat

Albert-Ludwigs-Universität Freiburg
Universitätsbibliothek
Platz der Universität 2 | Postfach 1629
79098 Freiburg          | 79016 Freiburg

Telefon: +49 761 203-3908
E-Mail: [hidden email]
Internet: www.ub.uni-freiburg.de


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech
Reply | Threaded
Open this post in threaded view
|

Re: open record in accordion / tab

Demian Katz
Exactly which request is delaying the opening of the accordions/tabs? Is it the initial ILS availability status request that is causing the problem, or something else? I would expect that our AJAX should already be asynchronous, so at least in theory I wouldn't expect this sort of problem. However, it could be that cover image loading is also a factor, and the number of simultaneous HTTP connections allowed by the browser is limiting the speed of the response. If you can provide a bit more detail, Chris and I can give it some further thought. Sorry if I'm misunderstanding!

- Demian

-----Original Message-----
From: Jochen Lienhard [mailto:[hidden email]]
Sent: Tuesday, March 21, 2017 4:04 AM
To: [hidden email]
Subject: [VuFind-Tech] open record in accordion / tab

Hi,

if you use the feature to open records in the result-list in accordions or tabs, you must wait until the latest service is sending the response.

Usually the index is very much faster than the ILS system.

Does somebody know an option that you must not wait for the latest service?

Greetings

Jochen

--
Dr. rer. nat. Jochen Lienhard
IT Dezernat

Albert-Ludwigs-Universität Freiburg
Universitätsbibliothek
Platz der Universität 2 | Postfach 1629
79098 Freiburg          | 79016 Freiburg

Telefon: +49 761 203-3908
E-Mail: [hidden email]
Internet: https://na01.safelinks.protection.outlook.com/?url=www.ub.uni-freiburg.de&data=02%7C01%7Cdemian.katz%40villanova.edu%7C07d394f341f540c8eb6008d47031070b%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636256803252160414&sdata=4tW6aO5OmaBBle2vv0gzDShoxcFz6cz1wOOO71Gv8xY%3D&reserved=0


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsdm.link%2Fslashdot&data=02%7C01%7Cdemian.katz%40villanova.edu%7C07d394f341f540c8eb6008d47031070b%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636256803252160414&sdata=0Untd0GRVpZim16VvpQB2egbsOYghEjgFV80NZ%2Fg8OM%3D&reserved=0
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fvufind-tech&data=02%7C01%7Cdemian.katz%40villanova.edu%7C07d394f341f540c8eb6008d47031070b%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636256803252170431&sdata=6FSWIWJTFgxhM6WDLv3QZUMmwziKVCk875cXwaIjH2s%3D&reserved=0
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech
Reply | Threaded
Open this post in threaded view
|

Re: open record in accordion / tab

Jochen Lienhard
I think it is maybe the initial ILS request.

I'm testing that the ILS does not answer (simulating using a endpoint
with a blocked firewall).

The accordion is opened, if the timeout of the ILS is over. I set the
timeout to 2 second and after
5 seconds the accordion is open.

The cover can not be the problem, because this is not used in the
instance I'm using to test.

Does this information help?

-- Jochen

Demian Katz schrieb:

> Exactly which request is delaying the opening of the accordions/tabs? Is it the initial ILS availability status request that is causing the problem, or something else? I would expect that our AJAX should already be asynchronous, so at least in theory I wouldn't expect this sort of problem. However, it could be that cover image loading is also a factor, and the number of simultaneous HTTP connections allowed by the browser is limiting the speed of the response. If you can provide a bit more detail, Chris and I can give it some further thought. Sorry if I'm misunderstanding!
>
> - Demian
>
> -----Original Message-----
> From: Jochen Lienhard [mailto:[hidden email]]
> Sent: Tuesday, March 21, 2017 4:04 AM
> To: [hidden email]
> Subject: [VuFind-Tech] open record in accordion / tab
>
> Hi,
>
> if you use the feature to open records in the result-list in accordions or tabs, you must wait until the latest service is sending the response.
>
> Usually the index is very much faster than the ILS system.
>
> Does somebody know an option that you must not wait for the latest service?
>
> Greetings
>
> Jochen
>
> --
> Dr. rer. nat. Jochen Lienhard
> IT Dezernat
>
> Albert-Ludwigs-Universität Freiburg
> Universitätsbibliothek
> Platz der Universität 2 | Postfach 1629
> 79098 Freiburg          | 79016 Freiburg
>
> Telefon: +49 761 203-3908
> E-Mail: [hidden email]
> Internet: https://na01.safelinks.protection.outlook.com/?url=www.ub.uni-freiburg.de&data=02%7C01%7Cdemian.katz%40villanova.edu%7C07d394f341f540c8eb6008d47031070b%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636256803252160414&sdata=4tW6aO5OmaBBle2vv0gzDShoxcFz6cz1wOOO71Gv8xY%3D&reserved=0
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsdm.link%2Fslashdot&data=02%7C01%7Cdemian.katz%40villanova.edu%7C07d394f341f540c8eb6008d47031070b%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636256803252160414&sdata=0Untd0GRVpZim16VvpQB2egbsOYghEjgFV80NZ%2Fg8OM%3D&reserved=0
> _______________________________________________
> Vufind-tech mailing list
> [hidden email]
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fvufind-tech&data=02%7C01%7Cdemian.katz%40villanova.edu%7C07d394f341f540c8eb6008d47031070b%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636256803252170431&sdata=6FSWIWJTFgxhM6WDLv3QZUMmwziKVCk875cXwaIjH2s%3D&reserved=0


--
Dr. rer. nat. Jochen Lienhard
IT Dezernat

Albert-Ludwigs-Universität Freiburg
Universitätsbibliothek
Platz der Universität 2 | Postfach 1629
79098 Freiburg          | 79016 Freiburg

Telefon: +49 761 203-3908
E-Mail: [hidden email]
Internet: www.ub.uni-freiburg.de


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech
Reply | Threaded
Open this post in threaded view
|

Re: open record in accordion / tab

Demian Katz
Jochen,

Sorry for the slow response -- I haven't managed to find time to dig into this yet.

One suggestion that might be useful:

1.) Temporarily switch to the Demo ILS driver.
2.) Check if the behavior persists.
3.) Add a "sleep(5);" call to the Demo driver's getStatuses() method (https://github.com/vufind-org/vufind/blob/master/module/VuFind/src/VuFind/ILS/Driver/Demo.php#L599)
4.) Check if the behavior persists.
5.) Revert the getStatuses() sleep and instead add the sleep to getHolding() (https://github.com/vufind-org/vufind/blob/master/module/VuFind/src/VuFind/ILS/Driver/Demo.php#L618)
6.) Check if the behavior persists.

I'd be interested to hear the results of this experimentation -- that might offer a clue to where the problem lies. Sorry that I have been unable to do this myself; it has been exceptionally busy lately!

- Demian

-----Original Message-----
From: Jochen Lienhard [mailto:[hidden email]]
Sent: Thursday, March 23, 2017 4:15 AM
To: [hidden email]
Subject: Re: [VuFind-Tech] open record in accordion / tab

I think it is maybe the initial ILS request.

I'm testing that the ILS does not answer (simulating using a endpoint with a blocked firewall).

The accordion is opened, if the timeout of the ILS is over. I set the timeout to 2 second and after
5 seconds the accordion is open.

The cover can not be the problem, because this is not used in the instance I'm using to test.

Does this information help?

-- Jochen

Demian Katz schrieb:

> Exactly which request is delaying the opening of the accordions/tabs? Is it the initial ILS availability status request that is causing the problem, or something else? I would expect that our AJAX should already be asynchronous, so at least in theory I wouldn't expect this sort of problem. However, it could be that cover image loading is also a factor, and the number of simultaneous HTTP connections allowed by the browser is limiting the speed of the response. If you can provide a bit more detail, Chris and I can give it some further thought. Sorry if I'm misunderstanding!
>
> - Demian
>
> -----Original Message-----
> From: Jochen Lienhard [mailto:[hidden email]]
> Sent: Tuesday, March 21, 2017 4:04 AM
> To: [hidden email]
> Subject: [VuFind-Tech] open record in accordion / tab
>
> Hi,
>
> if you use the feature to open records in the result-list in accordions or tabs, you must wait until the latest service is sending the response.
>
> Usually the index is very much faster than the ILS system.
>
> Does somebody know an option that you must not wait for the latest service?
>
> Greetings
>
> Jochen
>
> --
> Dr. rer. nat. Jochen Lienhard
> IT Dezernat
>
> Albert-Ludwigs-Universität Freiburg
> Universitätsbibliothek
> Platz der Universität 2 | Postfach 1629
> 79098 Freiburg          | 79016 Freiburg
>
> Telefon: +49 761 203-3908
> E-Mail: [hidden email]
> Internet:
> https://na01.safelinks.protection.outlook.com/?url=www.ub.uni-freiburg
> .de&data=02%7C01%7Cdemian.katz%40villanova.edu%7C07d394f341f540c8eb600
> 8d47031070b%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C6362568032521
> 60414&sdata=4tW6aO5OmaBBle2vv0gzDShoxcFz6cz1wOOO71Gv8xY%3D&reserved=0
>
>
> ----------------------------------------------------------------------
> -------- Check out the vibrant tech community on one of the world's
> most engaging tech sites, Slashdot.org!
> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsdm.li
> nk%2Fslashdot&data=02%7C01%7Cdemian.katz%40villanova.edu%7C07d394f341f
> 540c8eb6008d47031070b%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636
> 256803252160414&sdata=0Untd0GRVpZim16VvpQB2egbsOYghEjgFV80NZ%2Fg8OM%3D
> &reserved=0 _______________________________________________
> Vufind-tech mailing list
> [hidden email]
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists
> .sourceforge.net%2Flists%2Flistinfo%2Fvufind-tech&data=02%7C01%7Cdemia
> n.katz%40villanova.edu%7C07d394f341f540c8eb6008d47031070b%7C765a8de5cf
> 9444f09cafae5bf8cfa366%7C0%7C0%7C636256803252170431&sdata=6FSWIWJTFgxh
> M6WDLv3QZUMmwziKVCk875cXwaIjH2s%3D&reserved=0


--
Dr. rer. nat. Jochen Lienhard
IT Dezernat

Albert-Ludwigs-Universität Freiburg
Universitätsbibliothek
Platz der Universität 2 | Postfach 1629
79098 Freiburg          | 79016 Freiburg

Telefon: +49 761 203-3908
E-Mail: [hidden email]
Internet: https://na01.safelinks.protection.outlook.com/?url=www.ub.uni-freiburg.de&data=02%7C01%7Cdemian.katz%40villanova.edu%7C4f620770d60d4417cdd008d471c4d634%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636258537610468264&sdata=xK9mClifVn%2BJs8WmSrqNj2ray80t6OxKGGwsdwTz%2FQk%3D&reserved=0


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsdm.link%2Fslashdot&data=02%7C01%7Cdemian.katz%40villanova.edu%7C4f620770d60d4417cdd008d471c4d634%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636258537610478264&sdata=TKjI4PzAippopIkCIX%2FD73nPYlJgPWctMbFOOWxKakY%3D&reserved=0
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fvufind-tech&data=02%7C01%7Cdemian.katz%40villanova.edu%7C4f620770d60d4417cdd008d471c4d634%7C765a8de5cf9444f09cafae5bf8cfa366%7C0%7C0%7C636258537610478264&sdata=gW%2FgxA2Lya1n4RgY%2BUN5CiabDdq5K1AEtETR5B%2Blw1w%3D&reserved=0
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Vufind-tech mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-tech