Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
administration:third-party_add-ons:stackmaps [2018/09/06 13:41] – jdrescher | administration:third-party_add-ons:stackmaps [2023/03/24 10:48] – demiankatz |
---|
====== Implementing StackMap in VuFind ====== | ====== Implementing StackMap in VuFind® ====== |
| |
After you have received your custom URLs from [[http://www.stackmap.io/|StackMap]], edit the layout.php file located in your [[development:architecture:user_interface|custom theme]] (/usr/local/vufind2/themes/YOURLOCALTHEME/templates/layout/layout.phtml). The following code should be place at the very bottom of the <head>. | 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> |
<!-- STACKMAP CHANGES BEGIN HERE --> | <!-- STACKMAP CHANGES BEGIN HERE --> |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script> | <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script> |
<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"> | <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"> |
<script src="https://www.stackmap.com/integration/YOURINSTITUTION/StackMap.js" type="text/javascript"></script> | <script src="https://www.stackmap.com/integration/YOURINSTITUTION/StackMap.js" type="text/javascript"></script> |
<link rel="stylesheet" media="all" type="text/css" href="https://www.stackmap.com/integration/YOURINSTITUTION/StackMap.css" /> | <link rel="stylesheet" media="all" type="text/css" href="https://www.stackmap.com/integration/YOURINSTITUTION/StackMap.css" /> |
<!-- STACKMAP CHANGES END HERE --> | <!-- STACKMAP CHANGES END HERE --> |
</head> | </head> |
</code> | </code> |
| |
| :!: 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 | If you encounter problems in the display, contact support@stackmap.com |
---- struct data ---- | ---- struct data ---- |
| properties.Page Owner : |
---- | ---- |
| |