Here is some background on the problem and solution of providing faculty and staff contact information.
Department names function as unique identifiers. If Department names change in the XML file or if they are outputted inconsistently, it will break these department contact customizations.
For people who have faculty bios (or equivalent), create a manual link.
For staff who have names that should be listed differently than the data feed, create a manual override.
To add a link to a building, create a manual link.
The directory database lives in Banner and ends up as rendered HTML through an intermediary.
If OUCampus fails to find the XML file, then it will output “Search is currently unavailable.”
Add the following code:
<div class="directory-search">
Directory Placeholder
</div>
Template-matches.xsl powers the HTML output for the directory. See the page for comments.
The search is powered by list.js. There are two scripts that are added via a template match on common.xsl. The general list.js script is served via a CDN. The script specific to our implementation is an asset: Code - Directory Search and Filter.
Module specific CSS is coded with the Sass partial app_directory.
The Directory needs to address the several users tasks.
Users can search by name, department, or title by entering a search into the query form.
Users can view an alphabetical list of faculty and staff and then drill down.
Users can browse departments and then get more information about the department, including personnel and contact information.
The Directory builds off the Bootstrap framework and Simon’s Rock styles. Three views were separated into a Bootstrap carousel. The staff by Department was separated into a Bootstrap accordion panel. The buttons for the carousel were based on the Primary Red Button CTA. However that button was too bold and a more neutral pattern was introduced.
The Directory was initially built on separate web server and website from simons-rock.edu. Then, an iFrame was added to portal in some of the data and the directory server was styled to look more consistent. The, an XML solution replaced the iFrame. Then, a layer of PHP was added to avoid setting pages to autopublish.
We moved to a PHP implementation in order to avoid having to set pages to autopublish.
Information is output via PHP to lock.simons-rock.edu/fsdir/. ITS manages these processes.
The Archived Directory accesses lock.simons-rock.edu/fsdir/ via an IFrame. For other views, users are sent to the external site.
There is a shared CSS style sheet for the website, the Directory iFrame and lock.simons-rock.edu/fsdir1/. Updating the live CSS will affect all of these properties.
The Directory iFrame includes a .directory class wrapper. The iFrame can be adjusted by targeted this CSS rule.