There are a few customizations to code used on the libraries site. This doc will detail where the code is located as well as what it interacts with. It also contains some information about some rewrites in views fields that affect the display of content. This doc will NOT include template overrides (twig files). That is detailed in this document: https://oulibraries.atlassian.net/wiki/x/LoDPrw
OU_Lib_subtheme
The subtheme is the custom theme that is based on the drupal bootstrap barrio theme. This theme is based on bootstrap 5. These various files are managed as libraries in the ou_lib_subtheme.libraries.yml file - web/themes/custom/ou_lib_subtheme/ou_lib_subtheme.libraries.yml. In that file, the “global-styling” library is used for the entire site and the “front-js” library is used only on the homepage for the search box.
Styles
style.css - web/themes/custom/ou_lib_subtheme/css/style.css
Virtually all styles for the entire site. Contains lots of styles for colors, fonts, and any bootstrap overrides.
search.css - web/themes/custom/ou_lib_subtheme/css/search.css
The css needed for the search box on the homepage
globalnav.css - web/themes/custom/ou_lib_subtheme/css/globalnav.css
Used for the styling of the universal black OU top banner
JS
global.js - web/themes/custom/ou_lib_subtheme/js/global.js
Main js file for any additional functionality needed on the site. Will detail contents later in this doc.
front.js - web/themes/custom/ou_lib_subtheme/js/front.js
The js needed for the search box on the homepage
Fonts
Fonts are loaded via the “adobe-fonts” library. In Adobe font manager, the fonts needed were chosen, then added to a project and referred to in this library. The current adobe fonts link is https://fonts.adobe.com/eulas/00000000000000003b9b011e?ref=tk.com
Custom Module for LibCal events
The location for the custom module is web/modules/custom/libcal_events
Similar to the sub theme, this custom module uses a library in “libcal_events_libraries.yml”. With that library, the following is loaded into pages where the custom module is used.
Styles
libcal-events.css - web/modules/custom/libcal_events/css/libcal-events.css
Styling used for events
JS
libcal-events.js - web/modules/custom/libcal_events/js/libcal-events.js