Related to Bug 35189, it would be useful to put a common class on all <img> tags showing item type images. This would allow libraries to consistently apply custom styles.
Created attachment 169863 [details] [review] Bug 37515: Add common class to all places where an item type image is shown This patch adds an "itemtype-image" class to templates in all places where we show itemtype images. This patch affects both the OPAC and the staff client. To test you should have icons associated with multiple item types. - Apply the patch and go to Administration -> System preferences - Search for "itemtype" - noItemTypeImages should be set to "Show" - OpacNoItemTypeImages should be set to "Show" - BiblioItemtypeInfo should be set to "Show" - Search for "usercss" - Add an obvious style rule for item type images to IntranetUserCSS and OPACUserCSS, e.g. .itemtype-image { border: 3px solid orange; } - In the staff interface, check the following pages to confirm that your custom style is visible: - Administration -> Item types -> Edit - Administration -> Authorized values -> CCODE -> Edit a CCODE - Advanced search - Search results - Bibliographic details - Place hold - Lists -> List contents view (must set the item-level_itypes preference to "bibliographic record") - In the OPAC: - Advanced search - Search results - Bibliographic details - Place hold - Log in as a user with checkouts -> - View the checkouts tab on the patron summary page - Lists -> List contents view (must set the item-level_itypes preference to "bibliographic record") Sponsored-by: Athens County Public Libraries
Created attachment 169878 [details] [review] Bug 37515: Add common class to all places where an item type image is shown This patch adds an "itemtype-image" class to templates in all places where we show itemtype images. This patch affects both the OPAC and the staff client. To test you should have icons associated with multiple item types. - Apply the patch and go to Administration -> System preferences - Search for "itemtype" - noItemTypeImages should be set to "Show" - OpacNoItemTypeImages should be set to "Show" - BiblioItemtypeInfo should be set to "Show" - Search for "usercss" - Add an obvious style rule for item type images to IntranetUserCSS and OPACUserCSS, e.g. .itemtype-image { border: 3px solid orange; } - In the staff interface, check the following pages to confirm that your custom style is visible: - Administration -> Item types -> Edit - Administration -> Authorized values -> CCODE -> Edit a CCODE - Advanced search - Search results - Bibliographic details - Place hold - Lists -> List contents view (must set the item-level_itypes preference to "bibliographic record") - In the OPAC: - Advanced search - Search results - Bibliographic details - Place hold - Log in as a user with checkouts -> - View the checkouts tab on the patron summary page - Lists -> List contents view (must set the item-level_itypes preference to "bibliographic record") Sponsored-by: Athens County Public Libraries Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
QA'd by RM. Minor rebase in results.tt.
Pushed for 24.11! Well done everyone, thank you!