[Archivesspace_Users_Group] Rails help for font-awesome classes ?

Fox, Bobbi bobbi_fox at harvard.edu
Wed Feb 21 11:08:07 EST 2018

Hey, Steve,

Believe me, I feel you :-(


From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Majewski, Steven Dennis (sdm7g)
Sent: Wednesday, February 21, 2018 11:07 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Rails help for font-awesome classes ?

Thank you, Bobbi. This one had me scratching my head.
I hate finding surprises moving changes from test to production.

— Steve.

On Feb 21, 2018, at 10:49 AM, Fox, Bobbi <bobbi_fox at harvard.edu<mailto:bobbi_fox at harvard.edu>> wrote:


Since I’m the one (for my sins) who implemented the use of Font Awesome icons  (https://fontawesome.com<https://fontawesome.com/>) in the PUI, I did a little digging.

FontAwesome has both changed what they make available as a free icon, and also is deprecating some of their class names.

‘fa-file-image-o’ produced a “light” version of the file-image icon, and is now no longer available as a free icon.  (This is true for any icon that ends in –o)

Undoubtedly the reason you see it in the production version is due to the fact that the icons were downloaded and packaged up *before* this change on the part of FontAwesome, while your development mode probably did a download more recently.

I don’t have an immediate solution to getting the old icons into the development mode; sorry!

I guess I need to file a JIRA on this, as well.


From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Majewski, Steven Dennis (sdm7g)
Sent: Tuesday, February 20, 2018 7:22 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: [Archivesspace_Users_Group] Rails help for font-awesome classes ?

I expect that this has something to do with how stylesheet assets are compiled in Rails, but can anyone explain it to me ?

Running in development mode, testing changes to digital object views with IIIF plugin, I noticed I was not seeing the font-awesome icon for the 'fa-file-image-o’ class styles.

 <i class="fa fa-file-image-o fa-4x"></i><br/>

After poking around in the browser console and stylesheets, I discovered that by removing the “-o” suffix, it worked again:

 <i class="fa fa-file-image fa-4x"></i><br/>

Initially, I thought this may have been a bug introduced in some recent changes to v2.3.0, but git log didn’t show any likely changes and when I deployed my plugin changes to production, they icons were NOT displayed.

When I added the “-o” suffix back, they worked on production, but failed running in development.
( development = ./build/run public:devserver )

The badges on the public resource pages use “fa-book” class for citation badge and “fa-file-pdf-o” for print badge.
Both of those display properly on production site, but the print badge is missing in development mode.

BTW: I was attempting to add appropriate icons switched by d_file[‘material’]

— Steve Majewski

Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20180221/10f41c0e/attachment.html>

More information about the Archivesspace_Users_Group mailing list