Create Branding model
We need a Branding model that has an optional many-to-1 relation with an Institution. The branding can be turned on at the glri-Resource level and be displayed in the portal. The branding needs some attributes:
- Institution ID
- Branding Name
- Branding Code (e.g.,
uga
,ugalaw
), no spaces, lowercase - Branding Image (Upload)
- Branding Text
At this time, a Resource can has_one
a Branding record that is associated with the GLRI Institution associated with that Resource. This should be shown as a drop-down on the Resource form, only for GLRI users. Attempting to set a Branding for non-GLRI records should be a validation error.
This branding information should be indexed to Solr as follows:
Institution
- a multivalued
branding
field, which contains the aggregated information for each branding record, hopefully accessible as a hash with the Branding Code as key.
Allocation
- a single string field for
show_branding
that contains a Branding Code value for one of the Institution's Branding records
Edited by Mike Kanning