Skip to content

adds a Slaask chat widget to primo to interact with patrons over Slack.

License

Notifications You must be signed in to change notification settings

watzek/primo-explore-slaask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

primo-explore-slaask

Features

The Slaask widget will appear in primo, enabling communication with patrons via Slack. More information on Slaask is available here.

Install

  1. Make sure you've installed and configured primo-explore-devenv.
  2. Navigate to your template/central package root directory. For example:
    cd primo-explore/custom/MY_VIEW_ID
    
  3. If you do not already have a package.json file in this directory, create one:
    npm init -y
    
  4. Install this package:
    npm install primo-explore-slaask --save-dev
    

Usage

Once this package is installed, add slaask as a dependency for your custom module definition.

var app = angular.module('viewCustom', ['slaask'])

Note: If you're using the --browserify build option, you will need to first import the module with:

import 'primo-explore-slaask';

The widget requires your unique Slaask ID to function, which can be obtained in your Slaask settings. You can configure it as below.

app.constant('slaask_id', '295ddfaketoken356b7da45a415a')