OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



add tooltip or alt tag to icons and cover images

For discussion of ideas, functional requirements, interests regarding the Open Monograph Press.

Moderators: jmacgreg, John

Forum rules
Please feel free to post any questions or start any discussion about OMP here. We'll let you know via this forum when OMP is ready to download and test. You may also want to keep an eye on our OMP page.

add tooltip or alt tag to icons and cover images

Postby calibre » Tue Apr 23, 2013 11:30 am

Hello, we are wondering where in the template files can we add code for alt or title tags for the following:

--Icons in the Download area (ie PDF)

--Cover images in the Catalog and individual book synopsis pages

Thank you very much.
calibre
 
Posts: 7
Joined: Thu Mar 14, 2013 11:52 am

FEATURE REQUEST add tooltip or alt tag to icons and cover im

Postby calibre » Tue Apr 30, 2013 6:10 am

So....should this be posted instead as a feature request instead ? These are features we would really like to have implemented in OMP but are not sure how to go about it without affecting the Smarty template code. Please let us know. Thanks.

Hello, we are wondering where in the template files can we add code for alt or title tags for the following:

--Icons in the Download area (ie PDF)

--Cover images in the Catalog and individual book synopsis pages

Thank you very much.
calibre
 
Posts: 7
Joined: Thu Mar 14, 2013 11:52 am

Re: add tooltip or alt tag to icons and cover images

Postby asmecher » Tue Apr 30, 2013 9:29 am

Hi calibre,

Do you need an alt tag for the cover image that's different for each book, or would you like it fixed to the book title, or fixed to a single string (e.g. "Cover Image")?

For the download icons (e.g. PDF), look in templates/catalog/book/bookFiles.tpl for the following tag:
Code: Select all
<span class="sprite {$availableFile->getDocumentType()}"></span>
You can use a title="..." attribute to add a tooltip to that icon.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9071
Joined: Wed Aug 10, 2005 12:56 pm

Re: add tooltip or alt tag to icons and cover images

Postby calibre » Tue Apr 30, 2013 10:59 am

Thanks! For the cover images, we would want it fixed to the book title.
calibre
 
Posts: 7
Joined: Thu Mar 14, 2013 11:52 am

Re: add tooltip or alt tag to icons and cover images

Postby asmecher » Tue Apr 30, 2013 11:11 am

Hi calibre,

Check out http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8217 for a bug entry and patch to take care of all of this. This will be included in future releases.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9071
Joined: Wed Aug 10, 2005 12:56 pm

Re: add tooltip or alt tag to icons and cover images

Postby calibre » Tue Apr 30, 2013 12:16 pm

Excellent, thanks!
calibre
 
Posts: 7
Joined: Thu Mar 14, 2013 11:52 am


Return to OMP Discussion

Who is online

Users browsing this forum: No registered users and 2 guests