About Features Downloads Getting Started Documentation Events Support GitHub

Love VuFind®? Consider becoming a financial supporter. Your support helps build a better VuFind®!

Site Tools


Warning: This page has not been updated in over over a year and may be outdated or deprecated.
administration:third-party_add-ons:stackmaps

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
administration:third-party_add-ons:stackmaps [2018/06/20 16:58] demiankatzadministration:third-party_add-ons:stackmaps [2023/03/24 10:49] (current) demiankatz
Line 1: Line 1:
-====== Implementing StackMaps in VuFind ======+====== Implementing StackMap in VuFind® ======
  
-After you have received your custom URLs from StackMaps, edit the theme.config.php file located in your [[development:architecture:user_interface|custom theme]] (/usr/local/vufind2/themes/YOURLOCALTHEME/)You will need to add some entries to the 'js' and 'css' sections as shown below. If you already have entries in these parts of the config, add these alongside the existing ones. If you do not have 'js' or 'css' sections yet, you should create them.+After you have received your custom URLs from [[http://www.stackmap.io/|StackMap]], edit the layout.phtml file located in your [[development:architecture:user_interface|custom theme]]. The following code should be placed at the very bottom of the <head>
  
 <code> <code>
-<?php +   <!-- STACKMAP CHANGES BEGIN HERE --
-return array( +    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script> 
-    'extends' ='bootstrap3', +    <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous"> 
-    'js' => [ +    <script src="https://www.stackmap.com/integration/YOURINSTITUTION/StackMap.js" type="text/javascript"></script> 
-        'https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js', +    <link rel="stylesheet" media="all" type="text/css" href="https://www.stackmap.com/integration/YOURINSTITUTION/StackMap.css" /> 
-        'https://www.stackmap.com/integration/YOURINSTITUTION/StackMap.js', +   <!-- STACKMAP CHANGES END HERE --> 
-    ], +</head>
-    'css=> array( +
-     'https://www.stackmap.com/integration/YOURINSTITUTION/StackMap.css', +
-    ), +
- );+
 </code>   </code>  
  
 +:!: The code above was last updated in September, 2018 and may require updates from the vendor.
  
-If you encounter problems in the display, contact support@stackmaps.com+:!: Note that if you have a [[administration:security:content_security_policy|Content Security Policy]] enabled, the script tags in this code will likely need to be replaced with references to the ''headScript'' view helper to prevent the policy from blocking the code. 
 + 
 +If you encounter problems in the display, contact support@stackmap.com
 ---- struct data ---- ---- struct data ----
 +properties.Page Owner : 
 ---- ----
  
administration/third-party_add-ons/stackmaps.1529513939.txt.gz · Last modified: 2018/06/20 16:58 by demiankatz