Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This documentation describes how to create and maintain list widgets in Pika.


Table of Contents

Table of Contents

Anchor
topofpage
topofpage
Top of page

Table of Contents

What are List Widgets?

The basic idea of a List Widget is to embed a search or list from Pika on your library homepage for display. List widgets are a seamless way to display targeted content from the catalog on your website and direct patrons to titles in the catalog directly from your library website.

Screenshot of a list widget from a library website homepageImage Modified

Widgets embedded on webpages always display starting somewhere in the middle of their respective sources (list or search) rather than at the very beginning/left hand side. This is by design so the results don’t appear empty on webpages.

Top of page

Getting started

In order to create the List Widget, you must be signed in. Your account must have a user role of library admin or content editor. A content editor has permissions to create List Widgets, editorial reviews and Browse Categories.  

Once you’re logged in, click on the List Widget link under the Pika Configuration tab.

Screenshot of the pika configuration menu highlighting the list widgets menu optionImage Modified


Click on the Add New ListWidgetList Widget button to create a new widget. 

You can also find a widget you have already created by narrowing down the search by Id, Library, or Name.  You can edit existing widgets by clicking on the Edit link under Actions.

Screenshot of the list widgets table highlighting the add new list widget button, the search and sort options, and the edit access linkImage Modified

Top of page

Creating a widget and widget options

Click on the Add New ListWidgetList Widget button to create a new list widget. 

Library

Library is a dropdown menu that limits the availability of the widget. If the widget can be used by all libraries, set it to All Libraries. If the widget is unique for your library, assign Choose your library in this field – when you assign . When a specific library is assigned, only admin patrons at your library will be able to view and edit the widget.  Name is used to name the widget.

Image Removed

If the widget can be used by all libraries, set the library value to All Libraries. (This is not a common setting)

Name

Name is the title of your widget.

Screenshot of the library menu and the name fieldImage Added

Show the list widget’s title bar

If the Show the list widget’s title bar is used to show the title when the widget is turned on.  This is the bar between the tabs and the scrolling titles. Enabling the Show More Link will force the title bar to be shown as well option is enabled, the text from the Name field for the widget will display in the bar if the widget only has a single tab. If there is more than one tab in the widget, the Name will not display in the title bar.

Screenshot of the show the list widget title bar optionImage Modified

Here is an example of the Show the list widget’s title bar.  

Image Removed

 

Screenshot of a list widget highlighting the name in the title barImage Added

Show view more

Show the View More link on the title bar of the widget controls where the View More link is shown. This will link back to the catalog with the search for more items from the tab that was chosen.

Image Removed

When a user clicks on the View More link in a widget, they will be directed to the search results or list that is the source for the widget

Screenshot of the view more optionImage Added

Here is an example of the View More link that shows up when the Show the View More Link on the title bar of the widget is checked.  

Image RemovedHere is an example of an item from the list of New eBooks Screenshot of a widget highlighting the view more linkImage Added

Display mode for search results

Display mode for search results link is used to show full search results when the View More link is clicked.

Image Removed

Display mode for search results link is used to show full search results when the View More Link is checked.

Image Removed

option is enabled and the source for the widget is search results.

Screenshot of the display mode for search results link optionImage Added

Description

Description is for internal use.  You can copy and paste any search strings used to create the widget or the list ID if you’re using a list for a source.

Image RemovedScreenshot of the description fieldImage Added

Should description pop-up


Should the description pop-up be shown when hovering over titles? Is used when you want to have a description show when someone hovers over a title.

Screenshot of the should description popup optionImage Modified

You can set

Number of titles display

The number of titles that should be shown for the widget option is used to limit the amount of titles that display in the widget.

Image Removed

Next, The default value is 25 and likely should not be changed, especially if the search results that are referenced are quite large

Screenshot of the number of titles display optionImage Added

Title information display options

There are three settings that can be chosen to show information about the items titles in your widget.

Image Removed

The 1st setting determines if a title is displayed under the item.

Image Removed

Here is an example of a widget that has the title listed under the item.  As well as one without the title.

Image Removed
Image Removed

The 2nd setting determines if the author’s name is displayed under the item.

Image Removed

Here is an example of a widget that has the author listed under the item.  As well as one without the author.

Image Removed
Image Removed

The 3rd setting determines if the rating is displayed under the item.

Image Removed
  • Should the title for the currently selected item be shown?

  • Should the author (catalog items) /format (archive items) for the currently selected item be shown?

  • Should ratings widgets be shown under each cover?

All three options can be enabled in conjunction with one another, you can enable a single option, or you can enable a combination of any two options.

Note

If both title and author name are enabled or all three options are enabled, you will need to adjust the height of the widget in the iframe to accommodate the Auto Rotation option.

Should the title for the currently selected item be shown

When this option is enabled, the title will display under the cover art in the carousel.

Here is an example of a widget that has the ratings title listed under the item.  As , as well as one without the ratingtitle.

Image RemovedScreenshot of a title in a widget with the title displayImage Added
Image Removed

The Style to use when displaying the list widget determines the overall styles you can have for the widget. Horizontal is the default style.  Use the drop down menu to change the style of a list widget.  

Image Removed
Screenshot of a title in a widget without the title displayImage Added

Should the author (catalog items)/format (archive items) for the currently selected item be shown

This setting determines if the author’s name is displayed under the item.

Here is an example of a Horizontal widget.

Image Removed

The Vertical style can be used as a sidebar feature.

Image Removed

widget that has the author listed under the item, as well as one without the author.

Screenshot of a title in a widget with the author displayImage Added
Screenshot of a title in a widget without the author displayImage Added

Should ratings widgets be shown under each cover

This setting determines if the rating is displayed under the item.

Here is an example of a Vertical widget.  The title, author and ratings do not show up on this type of widget. As well as widget that has the ratings listed under the item, as well as one without the rating.

Screenshot of a title in a widget with the ratings displayImage Added
Screenshot of a title in a widget without the ratings displayImage Added

Below is an example of a Vertical widget used as a sidebar on a library homepage.

Image RemovedImage Removed

The Single Title style will display only one title.

Image Removed

widget with all three display options enabled.

Screenshot of a title in a widget with the title, author, and rating displayImage Added

Style to use when displaying the list widget

There are several options for widget display styles. Use the drop down menu to change the style of a list widget.  

  • Horizontal

  • Vertical

  • Single Title

  • Single Title with Next Button

  • Text Only List

Screenshot of the display style dropdown menuImage Added

Horizontal

Here is an example of the Single Title style. There are no user controls on the Single Title. If more than one title is being displayed, you should enable auto rotation so patrons can see all titles.  

Image Removed

The Single Title with a Next Button a Horizontal widget.

Screenshot of a horizontal widget styleImage Added

Vertical

Here is an example of a Vertical widget. 

Note

The title and author do not display in this display style, even if enabled.

Screenshot of the vertical widget styleImage Added

Single Title

The Single Title style will display only one title, but will have user controls.

Image Removed

Here is an example of the Single Title with a Next Button.  The user will have control to scroll through the items.

Image Removed

style.

Screenshot of the single title styleImage Added
Note

There are no user controls in the Single Title style. If more than one title is being displayed, you should enable auto rotation so patrons can see all titles.  

Single Title with Next Button

The Single Title with a Next Button style will display only one title and includes user controls with the Next button.

Here is an example of a library that is using multiple the Single Title with a Next Button.  The user will have control to scroll through the items.

Screenshot of the single title with next button styleImage Added

Here is an example of a library that is using multiple Single Title with a Next Button to display books, movies, music and games.

Screenshot of several single title with next button widgets on single webpageImage Modified

Text Only List

The Text Only List style will display the information without images.

Image Removed

Here is an example of the Text Only List

Image Removed

Another setting is

Screenshot of the text only styleImage Added

Auto Rotation option

Screenshot of the auto rotation optionImage Added

The should the widget automatically rotate between titles . This will work on both option forces the the carousel to advance automatically. You can enable this option on the Horizontal, Vertical, and Single Title widgets.  The titles will rotate without having to be manually advanced.

Image Removed

The cover size to use when showing a widget has a drop down choice of Small or Medium.

Image Removed

If this option is enabled, a Play/Pause button will display in the widget which will allow users to pause the auto-rotation to meet accessibility standards.

Screenshot of a horizontal widget with the auto rotation option, highlighting the play pause buttonImage Added

Cover Size

The cover size to use when showing a widget has a drop down choice of Small or Medium.

Screenshot of the cover size optionImage Added

Here is an example of the Small cover size on a Horizontal widget.

Screenshot of widget with the small cover size optionImage Added

Here is an example of the Medium cover size on a Horizontal widget.

Screenshot of widget with the medium cover size optionImage Added

Custom CSS

The Custom CSS File is for styling the widget for your website. If you use this option in the widget, the corresponding CSS file for the widget should be hosted on your website. The URL to the hosted Custom CSS File is entered in the Custom CSS File field. 

Screenshot of the custom CSS file fieldImage Added
Note

Marmot recommends that you add custom CSS for widgets on your Pika Admin page under Additional CSS.

Top of page


Display lists as

The Display lists as is a function that determines how you display multiple lists within one List Widget. There is a Tabbed Display or a Drop Down List.

Screenshot of the display lists as fieldImage Added

Here is an example of the Small cover size on a Horizontal widget.

Image Removed

Tabbed Display style. The Tabbed Display is the most common option

Screenshot of a horizontal widget with the tabbed display styleImage Added

Here is an example of the Medium cover size on a Horizontal widget.

Image Removed

The Custom CSS File is for styling the widget for your website.  You have to host the CSS for the widget on your website. The URL would be added to the box below Custom CSS File. 

Image Removed
Info

Marmot recommends that you add custom CSS for widgets on your Pika Admin page under Additional CSS. Your library account must have the Library Admin or OPAC Admin role in Pika to access these settings.  You would go to Pika Configuration, Library Systems.

Image Removed

Click on the Library Id or Edit link to open up the settings for your library.

Image RemovedClick onthe Basic Display tab.  This applies CSS for your catalog, but Marmot also loads the styling when displaying widgets. Here is an example of what CSS looks like when displayed in the Additional CSS box.Image Removed

The Display lists as is a function that determines how you display multiple lists within one List Widget. There is a Tabbed Display or a Drop Down List.

Image Removed

Here is an example of the Tabbed Display style which is the most common to use.

Image Removed

Here is an example of the Drop Down List style which gives the user the option to pick which tab they want to see.  

Image Removed

Lists is a way to add a list to display within the widget.  Click the Add New button to add a list. 

Image Removed

Top of pageDrop Down List style. The Drop Down List style allows users to choose the widget tab they wish to view from the drop down menu at the top of the widget.

Screenshot of a horizontal widget with the drop down list display styleImage Added

Top of page

Lists

The Lists table controls the various tabs that are applied to a list widget.

The Name in the Lists table is the title of the given tab. The Source field is what Pika uses to reference the source list or search for the specific tab. You can drag and drop with the arrows in the Sort column to reorder the tabs. Use the Add New button to create a new tab in the existing widget.

Screenshot of the lists table highlighting the columns and add new buttonImage Added

Top of page

Live Preview

You can view the changes you’ve committed to the widget in real time with the Live Preview. There are two Live Preview windows in the form. The first, under the List Widget Integration Notessection is the preview for the most basic list widget. The second, under the List Widget with Resizing Integration Notesis the preview for the same widget with automatic resizing.

Basic preview

Screenshot of the basic live previewImage Added

Preview with resizing

Screenshot of the live preview with resizingImage Added

You can also use the Preview Widget as a Page option to preview your widget on a separate webpage, which will more accurately represent what the widget might look like on a webpage on your library website. Right click the button to open the preview webpage in a new tab.

Screenshot of the list widget admin page highlighting the preview widget as a page buttonImage AddedScreenshot of the widget preview webpageImage Added

Creating a List Widget from User List or adding a User List as a List Widget tab

You can also add a list to your List Widget. This is a list that you would have already created. The list must be made public in order for it to be used. Once signed in, click MY LISTS located under the My Account tab.

Image Removed

This will display all your lists. Click on the to an existing list widget or create a new list widget from the admin controls in a public User List.

In the My Lists page in the Account, choose a public list that you would like to add to your List Widget.

Screenshot of a user list in the my lists pageImage Modified

If the Make Public button is showing, click it to make your list public.  Otherwise Otherwise, you will not see the Create Widget button.

Image RemovedOnce the list has been made public, the Admin Options button will appearScreenshot of the user list options highlighting the make public buttonImage Added

Public lists will have the necessary Admin Options.  Click on the drop-down menu and choose Create Widget.

Screenshot of the my lists options, highlighting the admin options menu and the create widget optionImage Modified

The name of the tab should match your list.  Click Create Widget to add the list.  Any changes you make to the original list will show up in the widget.  It may take 5 – 6 minutes for any changes to the list to be seen in the List Widget. You do not have to edit the list from the List Widget to make the changesUse the Select a widget menu to select an existing widget if you want to add the list as a tab to an existing widget. If you want to create a new widget from the list, choose the Create a new widgetoption from the Select a widget menu. Add a relevant name in the New Widget Name / New Tab Name field and click Create widget to complete the action.

Screenshot of the create widget dialog highlighting the name field and the create widget buttonImage Modified

Here is an example of a list that has been added to the List Widget.

Image Removed

 The Lists will show the Name, Display For, and Source.  The Display For has a drop down menu to change how the list will display.  

Image RemovedScreenshot of a widget highlighting a newly added tab from the create widget optionImage Added

Top of page

Creating a List Widget from Search Results

Another way to You can create a List Widget can start with a Search, or use a Browse Category.

Image Removed

Build a search to use as the source for your List Widget. from Search results or use the search results that populate an existing Browse Category.

If you’re creating a list widget from unique search results, build the desired search to use as the source for your List Widget. If you’re creating a list widget from a browse category search, click on the title of the browse category next to the spyglass icon to access the search results that populate the browse category.

Screenshot of the catalog homepage highlighting the search access link for a chosen browse categoryImage Added

At the bottom of the page of your the desired search results click on Create Widget (you must be logged in with your Pika admin account to see this option).

Image RemovedScreenshot of the search tools highlighting the create widget admin search toolImage Added

The Create a Widget box dialog will appearpopupSelect a widget dropdown that will stay “Create a new widget.” For the creation of a new widget, the New Widget Name/New Tab Name is displayed as the tab name or in the title bar when the widget is turned on. There is a limit of 25 titles for lists based on searches.

Image Removed

Once you name your new widget, click on the Create Widget button.

Image Removed

This will bring you to the admin page that includes all the settings for this List Widget.

Image Removed

You can see a Live Preview of your List Widget at the bottom of the page List Widget admin page.

Image Removed

Use the Select a widget menu to select an existing widget if you want to add the search as a tab to an existing widget. If you want to create a new widget from the search results, choose the Create a new widgetoption from the Select a widget menu. Add a relevant name in the New Widget Name / New Tab Name field and click Create widget to complete the action.

Screenshot of the create widget dialog highlighting the select a widget menu, the name field, and the create widget buttonImage Added

Completing the action will direct you to the List Widget admin page for the new widget or the widget you added the search to as a tab, respectively.

Screenshot of the list widget admin pageImage Added

Top of page

iFrame Embed Code

In the widget admin page, scroll down to the Integration notes.  You will see the iframe code.  If the widget is finished, you can copy the HTML code for the iframe and embed it into your library website.  The width and height may need to be changed to fit on your website. 

Info

The basic iframe does not resize well for mobile devices.

Note

Please be mindful of the accessibility requirements for the iframe, specifically providing an iframe title for the widget. There is linked documentation in the integration notes.

Note

When inserting the widget title in the iframe code, remove the brackets from the code, leaving only the quotation marks around the title you’re providing e.g. title=”Embedded Widget Title”

Screenshot of the basic list widget integration code, highlighting the iframe and accessibility standards notesImage Modified

Top of page

List Widget with Resizing Embed Code

Scroll down to the List Widget with Resizing and Integration notes.  Copy the entire code to use to embed into your website.  

Info

This code will resize widgets on mobile devices.

Note

Please be mindful of the accessibility requirements for the iframe, specifically providing an iframe title for the widget. There is linked documentation in the integration notes.

Note

When inserting the widget title in the iframe code, remove the brackets from the code, leaving only the quotation marks around the title you’re providing e.g. title=”Embedded Widget Title”

Screenshot of the list widget with resizing integration code, highlighting the iframeImage ModifiedScreenshot of the list widget with resizing integration code, highlighting the accessibility standards notesImage Modified

Top of page

Adding multiple List Widgets to a website

You ​will not need all of the code for each widget.  Below is an example mark-up for multiple widgets, and the inclusion of the resizing code just once. 

You will need an additional Jquery line jQuery("#listWidget178").iFrameResize(); for each widget that is​ on the page.

Code Block
breakoutModewide
languagehtml
<!-- Multiple Widgets placed through outthroughout Page -->
<iframe id="listWidget178" onload="setWidgetSizing(this, 30)" src="http://opac.marmot.org/API/SearchAPI?method=getListWidget&id=178&resizeIframe=on" width="650" scrolling="no"></iframe> 

<!-- 2nd widget -->
<iframe id="listWidget179" onload="setWidgetSizing(this, 30)" src="http://opac.marmot.org/API/SearchAPI?method=getListWidget&id=179&resizeIframe=on" width="650" scrolling="no"></iframe> 

<!-- 3rd widget --> 
<iframe id="listWidget180" onload="setWidgetSizing(this, 30)" src="http://opac.marmot.org/API/SearchAPI?method=getListWidget&id=180&resizeIframe=on" width="650" scrolling="no"></iframe>

<!-- Add this code just once, adding a iFrameResize( ) line for each additional widget -->

 <!-- Horizontal Resizing : Based on Iframe Content -->

<script type="text/javascript" src="http://opac.marmot.org/js/iframeResizer/iframeResizer.min.js"></script>
<script type="text/javascript">
	jQuery("#listWidget178").iFrameResize();
	jQuery("#listWidget179").iFrameResize(); /* 2nd widget */
	jQuery("#listWidget180").iFrameResize(); /* 3rd widget */
</script>

<!-- Vertical Resizing : When Iframe is larger than viewport width,
	resize to 100% of browser width - 2 * padding (in px) -->

<script type="text/javascript">
	setWidgetSizing = function(iframe, OutsidePadding){
		originalWidth = jQuery(iframe).width();
		wasResized = false;
		jQuery(window).resize(function(){
			resizeWidgetWidth(iframe, OutsidePadding);
		}).resize();
	};

	resizeWidgetWidth = function(iframe, padding){
		if (padding == undefined) padding = 4;
		var viewPortWidth = jQuery(window).width(),
			newWidth = viewPortWidth - 2*padding,
			width = jQuery(iframe).width();
		if (width > newWidth) {
			wasResized = true;
			return jQuery(iframe).width(newWidth);
		}
		if (wasResized && originalWidth + 2*padding < viewPortWidth){
			wasResized = false;
			return jQuery(iframe).width(originalWidth);
		}
	};

</script>

Top of page

Related Documentation

Page Properties
Filter by label (Content by label)
showLabelsfalse
cqllabel in ( "pika" , "pika_administrator" , "admin" ) and label != "sierra" and space != "MD"