Access Keys:
Skip to content (Access Key - 0)
My Area (Access Key - 2)


Toggle Sidebar
Your Rating: Results: PatheticBadOKGoodOutstanding! 4 rates
Labels:
jquery jquery Delete
javascript javascript Delete
frbr frbr Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

FRBR Display Improvements

Tags: , ,
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.

Page Attachments

File NameCommentSizeNumber of Downloads
frbrdisplayimprovements.jsVersion 1.02 (retains sort order for new searches when displaying FRBR group)4 kB158

Added by Jeremy Prevost on May 25, 2011 20:38, last edited by Jeremy Prevost on Aug 01, 2011 23:54

  1. Dec 15, 2011

    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();

Adaptavist Theme Builder Powered by Atlassian Confluence