0.0.5 • Published 1 year ago

primo-explore-eth-person-card v0.0.5

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
1 year ago

primo-explore-eth-person-card

Description

This Module integrates a person card and a toggle link into the fullview in Primo VE. It extracts the GND IDs (by default in local3) and queries various APIs with it: Metagrid, Entityfacts (DNB), Wikidata Query Service, beacon.findbuch.de.

Screenshot

Person Card

screenshot

Installation

  1. Assuming you've installed and are using primo-explore-devenv.

  2. Navigate to your view 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-eth-person-card --save-dev

Usage

Once installed, inject ethPersonCardModule as a dependency, and then add the eth-person-card-component directive to the prmServiceDetailsAfter component.

import 'primo-explore-eth-person-card';

var app = angular.module('viewCustom', ['ethPersonCardModule'])
    .component('prmServiceDetailsAfter',  {
        bindings: {parentCtrl: '<'},
        template: `<eth-person-card-component after-ctrl="$ctrl"></eth-person-card-component>`
    })

Configuration

  1. Please copy the three images from the /img directory of node_modules/primo-explore-eth-person-card into the /img directory of your view.

  2. With the whitelists for Metagrid and beacon.findbuch.de the result is filtered. The whitelists of providers whose links should be displayed can be changed in eth-person-card.config.js. The array whitelistMetagrid contains the slugs of the respective Metagrid providers (https://api.metagrid.ch/providers.json). When you add a slug, you must also add the labels in the eth-person-card.config.js (sourcesMetagrid.label from providers.json: 'short_description'). The array whitelistFindbuch contains the main url of the respective providers from beacon.findbuch.de (https://beacon.findbuch.de/seealso/pnd-aks).

  3. The values of all labels are changeable in the eth-person-card.config.js .

0.0.5

1 year ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago