How to get the provider for a cover

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

How to get the provider for a cover

Jochen Lienhard
Hi,

if I use more than one provider for cover images, how can I identify,
where the cover is from.

This is neccessary, because different provider have different rules how
to present their covers.
- some want the cover linked to a order page
- some want a linked logo near the cover
...

So we need the information in the Record.php helper class or in the
cover.phtml template.

Do you have an idea how this can be realized?

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: How to get the provider for a cover

Demian Katz
We discussed this last year but never wrote any code. Some information about the situation is summarized on this JIRA ticket:

https://vufind.org/jira/browse/VUFIND-1140

The issue here is that, as currently implemented, VuFind delegates cover loading to the image loader, which is called through the src attribute of img tags. When the HTML page is generated, none of the cover information has been resolved yet, so we don't know which provider(s) will be used. If we changed the logic to determine this up front, it would significantly slow down page loads. If we don't determine the information up front, we need to build a mechanism to retrieve the information programmatically.

I'm certainly happy to discuss this further, but the first step is probably for both of us to refresh our memories by reviewing the ticket and linked pull request conversation. Let me know how you would like to proceed after that! I can put this on the agenda for the next dev call if you like.

thanks,
Demian

-----Original Message-----
From: Jochen Lienhard [mailto:[hidden email]]
Sent: Wednesday, December 14, 2016 4:13 AM
To: '[hidden email]'
Subject: [VuFind-Tech] How to get the provider for a cover

Hi,

if I use more than one provider for cover images, how can I identify, where the cover is from.

This is neccessary, because different provider have different rules how to present their covers.
- some want the cover linked to a order page
- some want a linked logo near the cover ...

So we need the information in the Record.php helper class or in the cover.phtml template.

Do you have an idea how this can be realized?

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=01%7C01%7Cdemian.katz%40villanova.edu%7Ceafe0baf2d6042827db208d424060254%7C765a8de5cf9444f09cafae5bf8cfa366%7C1&sdata=BXEoRToa8CJfNBeUWnC3jRx6ya3P1moDTfi9TtDGDAw%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=01%7C01%7Cdemian.katz%40villanova.edu%7Ceafe0baf2d6042827db208d424060254%7C765a8de5cf9444f09cafae5bf8cfa366%7C1&sdata=Nn6ILeVborP823twEkTldMKEgiOdWQ6IdnzPDI2HJ6M%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=01%7C01%7Cdemian.katz%40villanova.edu%7Ceafe0baf2d6042827db208d424060254%7C765a8de5cf9444f09cafae5bf8cfa366%7C1&sdata=kqGCHL%2FTaJ%2BK0okAPcoo9AigapP0dez4DRG7qW3xvIg%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