FRBR Display Improvements
Tags: jquery
, javascript
, frbr
Last Updated: Aug 01, 2011 23:54
- Description
- This code will hide from the display information for a FRBR group that should not be displayed due to it being specific to an individual item in the group. In other words, the Publisher and Availability information is not appropriate to display for the group record as it is only specific to the current preferred record. Instead, we'll display just the title, creator, format (optional based on your FRBR rules) and the link to show all versions of that item. Once all versions are displayed, the full records return.
- Additionally, this code can order the display of the individual records in date descending order and return the user to their previous sort order when closing the group of records.
- Author: Jeremy Prevost
- Additional author(s):
- Institution: Northwestern University Library
- Year: 2011
- License: BSD style
- Short description: Use, modification and distribution of the code are permitted provided the copyright notice, list of conditions and disclaimer appear in all related material.
- Link to terms: [Detailed license terms]
- Skill required for using this code:
basic
State
'Stable'
Programming language
Javascript, jQuery
Software requirements
jQuery (already used in Primo Views)
Screen captures

Author(s) homepage
http://www.galter.northwestern.edu/staff/Jeremy-Prevost
Working example
http://search.library.northwestern.edu/
http://solo.bodleian.ox.ac.uk (modified)
Download
FRBR Display Improvements Script v1.02
Installation instructions
| Include the attached file in the footer of your Primo View. |


1 Comment
comments.show.hideDec 15, 2011
Lucas van Schaik
Nice enhancement!
I have made some other changes so that the title and thumbnail also link to the list of all versions, and the "View all versions" is placed beneath the metadata.
Here are my modifications:
- placed "sort frbr groups by date" stuff first in the ready function, so it will be done first
- changed inside "if (frbr != 0) {" to:
// hide links for FRBR groups
$(this).find('.EXLTabsRibbon').hide();
// remove link from title for FRBR groups
$(this).find(".EXLResultTitle").find("a").removeAttr("href");
// hide publisher for FRBR groups
$(this).find(".EXLResultFourthLine").hide();
// hide availability for FRBR groups
$(this).find(".EXLResultAvailability").hide();
// place display multiple link below title,
// and change link of title and thumbnail
var link = $(this).find(".EXLBriefResultsDisplayMultipleLink");
$(this).find(".EXLSummaryFields").append(link);
var titlelink = $(this).find(".EXLResultTitle").find("a");
titlelink.attr("href",link.attr("href"));
titlelink.attr("target","_parent");
var thumblink = $(this).find(".EXLThumbnail .EXLBriefResultsDisplayCoverImage A");
thumblink.attr("href",link.attr("href"));
// hide the my shelf star
$(this).find(".EXLMyShelfStar A").hide();
// hide original FRBR button
$(this).find(".EXLResultFRBR").hide();
// hide thumbnail image for FRBR groups (only appropriate if you don't create separate groups for each format)
// Uncomment to enable.
//$(this).find(".EXLThumbnail").find(".EXLThumbnailCaption").hide();
//$(this).find(".EXLThumbnail").find(".EXLBriefResultsDisplayCoverImages").hide();