Skip to content

Search bar designed for Bowie State University Library Homepage in LibGuides.

Notifications You must be signed in to change notification settings

USMAI-Library-Consortium/bsu-primo-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BSU Primo Searcher

Production Usage - Copying the code into SpringShare

The production environment is a SpringShare LibGuide 'widget/embed code'. However it is structured so that it can be viewed in a local environment. This means the boilerplate HTML (html tags, main, header) isn't needed in the production environment.

Take these steps to copy the code to SpringShare:

  1. Open the Hompage in SpringShare LibGuides staff view, and click the edit button under the search bar in the Main Content Section
  2. Delete all existing code in 'Embed Code'
  3. Copy the contents of the <body> tag into 'Embed Code' from primoSearch.html (not the body tag itself)
  4. In the root of this repository, optimize the CSS with npx postcss style.css -o dist/style.min.css
  5. Create style tags in 'Embed Code'
  6. Copy the contents of dist/style.min.css into the style tags

Viewing Locally and Making Changes

To view the search bar running locally, just open primoSearch.html in a browser or use an IDE extension. Keep in mind that browsers may cache the styles so you will have to account for that when viewing modifications.

It's configured to use the pre-optimized style.css so that you can view changes more easily. This is done in the head tag in primoSearch.html.

Please note that some styles (particularly font) will be inherited in production! That's why I've left font changes out. Despite this, the search bar is remarkably similar visually when comparing local production view.

About

Search bar designed for Bowie State University Library Homepage in LibGuides.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published