mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-13 03:42:27 +00:00
7bfd4a8977
Luckily the missing 'lyrics' and 'single from' icons were captured by the Wayback Machine. I have Base64 encoded them since the image files are tiny and most of the other icons are already stored as data URIs.
208 lines
47 KiB
JavaScript
208 lines
47 KiB
JavaScript
// ==UserScript==
|
|
// @name Display shortcut for relationships on MusicBrainz
|
|
// @description Display icon shortcut for relationships of release-group, release, recording and work: e.g. Amazon, Discogs, Wikipedia, ... links. This allows to access some relationships without opening the entity page.
|
|
// @version 2021.8.5.1
|
|
// @author Aurelien Mino <aurelien.mino@gmail.com>
|
|
// @licence GPL (http://www.gnu.org/copyleft/gpl.html)
|
|
// @downloadURL https://raw.github.com/murdos/musicbrainz-userscripts/master/mb_relationship_shortcuts.user.js
|
|
// @updateURL https://raw.github.com/murdos/musicbrainz-userscripts/master/mb_relationship_shortcuts.user.js
|
|
// @include http*://*musicbrainz.org/artist/*
|
|
// @include http*://*musicbrainz.org/release-group/*
|
|
// @include http*://*musicbrainz.org/label/*
|
|
// @require https://code.jquery.com/jquery-3.2.1.min.js
|
|
// ==/UserScript==
|
|
|
|
// Definitions: relations-type and corresponding icons we are going to treat
|
|
const relationsIconsURLs = {
|
|
url: {
|
|
'amazon asin': `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAgAAAAIACH+pydAAABEVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////8DBAQDBQUEBQUcHR0wMTEwMjIxMjJDRUVERUVVVlZlZmZmZ2d2dnaFhoaTlJSioqKvsLCwsLCwsbG9vb3MzMzNzc3Z2dnl5eXm5uby8vLz8/Lz8/P+pwD/pwD/qAD/rRP/sin/syn/uD3/uD7/uT7/vlD/v1D/v1H/xGL/yXL/ynL/1JD/1ZD/1ZH/2p//363/4K7/5bz/6cr/6sr/6sv/79j/8Nj/9OX/9eX/+vL/+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IElFQzYxOTY2LTIuMTwvcGhvdG9zaG9wOklDQ1Byb2ZpbGU+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDAwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjMyPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjMyPC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4nflpZAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAATNSURBVHjapJddaJV1HMc/5znzbM7pNqdztrktWpZZRhEUZC+gYjeBBEFgEYEQEpFFd10F1UVBhdRFFwlmXUQXYXVhkfZiJHghlOVLprn5NqfuxU3ddnbOuvn849dJ11YPHM7zPP////fy/X1/L09uVnU107zmAWuB+4HbgHagwbUh4ASwH/ge+BIYnI7Q3DQM6AI2AY8D9dM0dhj4ENgG7JlqY9W/CHoFeCk89+ltybOzgBxQ9JeJVAuwUYP3/BcE2oBPgbt87gZGVDgXaARqKs6MAQPARWC2xtwDnJwpAjcDP6pkGDiusqUagEoGKs7N1vMWn5+pUF4HdAC/ToVAM3BEGPuAMx5qEPZuYBTIa0yNIbhiCEqScxRoBcaD7H3AHb4/fS0EvlH5OaAXuFVlp4ELetEFFK6B6BhQDayvUP66ygG+FU0A8vmqv2x4DXhE2HuA5Rp4FLgM3AQ06WkyaNBfin2Ta08H5e+aRUd0plUnv4ohaA3xOhg2/SGsXa4d08taYL6ERIL2C/99wA++3wS8Ffb0AMsMWyfQnbn4sv+9kilxYFzlReCAHiyTF3MrCNYO7A3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F6YEYzXu5cpQHNJHJ+Eehz6ugLp+4oIQEbcBEQl5CLA2wnPcEmZW9SAiNnDcfDULQqQOhZhG4sogMYf0doKCpDgg+jtNwhA5ko3pH/eQAEWDOQA7MQk9HqviALcL17HAfAeMAJ8WswB2CJj/XhEJV7kPOCEIH8Vjn5fi4Rl/ti6hwod3R6IuZto3BfPckX2t3doEiZ5IUJbQwBSlw9BGgfQ/FAPzcIBmDGpr5iE3nOKeYCiNQTASHb4VBUHUEIA0teNQ3RSPgfgiDenuiHtQCV2bx6D5SklROgL7SjM05SZlFiDVDbI0XohJIaGYKCTNZpa9aTy2R/nDD91L2HDY7xDSylA05XVYgj+qm/DzboW2FoDvsMcSNbb2/XCUOc+qKxpRaCvA65WPCA75hiffiiuahVXzd42gJ97b9j3NSD/Wju3ELLwdLVBYUUHPJytMWq4tXR5Z3zCyilA46WVfAjMFg5ml1yTvUGx3iuXcPm2bswBn7kVPEDhB+IsUIjz+3n3W61cXFqkmBUnHhgxr4oCNORHizmg3LW6LatkNaH5Uk3c3oX7tOJmRsyvpgD38iIpgAUhi+GQ1wusXFQOw1fWIDbju+AGD3Ahgg+BuVgr9nEzuSATlW3r0jqT2LT6ZnwX1lCAu7nhvAd6tI9Lkk5WpJgpZBTixAMG4gG/8FsUoP78fD4Hnhx3ZSmmLFbNF7WC+w2CzfgtqqUAd86FxXM3tKZJpazpzB1ElNfmynrhVNV15OPurfBfXLeLAJzQvTx4ctCgAm70HpbnuNzd3c5xxanK5LwJQ1X+9b8nhqc2tIiH0/1bJqlGeju+zX3k1LOYWh6x6dmya/S8++9fr/335MqdTW0mp+On9fsPB0rcitiJC8wAAAAASUVORK5CYII=`,
|
|
'creative commons licensed download': 'http://creativecommons.org/favicon.ico',
|
|
'cover art link': 'http://www.cdcovers.cc/favicon.ico',
|
|
secondhandsongs: `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJb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ShdMYVjQtxHG6uPHTbdOp2jcpESOAehI4cSJDNA4G+IbM7we9XNy9teBZCERg4YAiLXAoT+21LDcHnXXf7wASxdHomED5rMYErb28HloIkvq/hpaYpBCLGsQRNz/kCc17/+fsrCgEPwh8yVX3YXPdRcz045syNKULA+/y5Zj6KgrLnA2EeFy13XEOhUzTTqpbXEpLdZHo2ENpNJKdTmelHfujQ5S7rG/XG1XD0WIW826D9IxgZmHB448m8Phf94DC5DL5ob3mrsYaXc9JKJPrl/dWvF9egjakMfdKgHem2QtFgCSzdO/a7k4xDxnkqKjquExn606ct7zSZeX/7tJ6QnLe1Dp9syw4fFJkLhLyJJLxfCpP9Y/aC6EUJIHyCj5+uMz6+9GptNaQlx7GRbhtQPghH+8bs62SsIHrRHrBZFXGKfQfPWWpOVKqbZNLlSLR/3L4WiUmKoBfNACwfSmWuu7eLKJgD6BA1VGYlHC2BXqoHPBT97N6CMxovuLoZjQ+MO5YPQi9JwEU3yXjfuOPuTjBvCTTz0pj9z2DkQPRSTs5xcD3xxI9rLncsycdgeLCQ0PCK8z37vQ0yVg56WQcvsFuSomGMi3BuhmbhiwbEkF856GUdHUFLWQlyOIAOshLnnFUm+mEOv9nzwL85vv8lwADUZ1hgAbiJKAAAAABJRU5ErkJggg==`,
|
|
// 'http://www.nomy.nu/img/lyrics-icon.gif'
|
|
lyrics: `data:image/gif;base64,R0lGODlhEQARALMAAAAAAP////z8/Onp6dzc3KmpqaGhoZGRkYyMjHx8fP///wAAAAAAAAAAAAAAAAAAACH5BAEAAAoALAAAAAARABEAAARNUBCUqr0JEVnI+GA4EJ0WnGiKTskQGEcsy0YwVK6q2/g7/7Vba6cTumA/Gm9ITBl9yViw10Q9kdEps7o8RqU8EzcwIXlEIrOEgsFoBBEAOw==`,
|
|
allmusic: `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABaFBMVEUjHyAkICEnq+EsKCksreItKSowLC0yr+M0r+I0r+M1sOI2r+M3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fhn6cj4IfjiOABNkEVwbE7xS8AE+Od5ilq5Q9cYEe3rXXAVxzNq4NgqiTAk8wDI4Axlca2HfIMSeRgVECmfBkBKpG+jX/QNlATUdEbOUaAAAAABJRU5ErkJggg==`,
|
|
},
|
|
'release-group': {
|
|
// http://www.amaesingtools.com/images/left_arrow_icon.gif
|
|
'single from': `data:image/gif;base64,R0lGODlhDwALAJEAAP2ZAZmZmf///wAAACH5BAAAAAAALAAAAAAPAAsAAAIflI+pq2ABY0DAiYmwqOyaCoaHxjHaZp0e9UhQB8dCAQA7`,
|
|
},
|
|
release: {
|
|
'part of set': 'http://web.archive.org/web/20060709091901/http://wiki.musicbrainz.org/-/musicbrainz/img/moin-inter.png',
|
|
remaster: 'http://web.archive.org/web/20060708200714/http://wiki.musicbrainz.org/-/musicbrainz/img/moin-www.png',
|
|
},
|
|
};
|
|
|
|
const otherDatabasesIconURLs = {
|
|
'd-nb.info': `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAQlBMVEUAZswTa8IZHBwlKC06bqFGSEhLeqlUVlZVmd1WWVliZGSIuOeUlZWav+WbnZ2vxNqys7O71vHCwsLO2+jg4eH///9dbbdbAAAATUlEQVR42q2OyQ2AMADDQjjKXaB4/1URajsB+GklUWRbLy58FG0WwCKiMXAHmWtDpA5zTOwya8MIEQOEKk5yYq4VpVKpoxryaP/v9cIDQFsGHWYbgn0AAAAASUVORK5CYII=`,
|
|
'www.musik-sammler.de': `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAgAAAAIACH+pydAAAAM1BMVEUAAAANDg4cHR0eICAfIB0kJSQwMTE9Pj9KTU9XW11yc3KPj4+urq7MzMzk5OXv7+////80u7S3AAAAAXRSTlMAQObYZgAAAAFiS0dEEJWyDSwAAAGFSURBVBgZBcEBchRHEATArJ4VECCj/z9TgrBBd9vlzADAW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ZzHvFWuGZsT5+8sJuDu7pR3WtLD+XpinNZpMoirZoTIwcXmpEvHlhkb+cW+BKpUU79t2jLRvKrcyH+dAwurPASwcHefHAdgZK4arb79+YrCchgMlUn7VmwnFBBhcbERc/Webs1TofVVos1mNW4hRByIeGwVLA2HCBpx8vM7G7xEO9AYouqHISOAFU0jQF2Lw1W7WLFy7QVy7f05yKcNSI7PKqdiXyNDspndgjQC4wFHOWfGgwIqlXnVG9uzkVoFqvc+DAgbvwNg3qldVmRTW7nr031pi19lxgH8KwQLEbgibKnK5rz7sJLmvPRVBVRkdH78H6Hy2kll3XTQbIAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE2LTA1LTI4VDA5OjA5OjQzKzAyOjAw9QZ6swAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNC0wOS0xMFQwNToxMjowNSswMjowMC4FeS8AAAAASUVORK5CYII=`,
|
|
};
|
|
|
|
const incOptions = {
|
|
'release-group': ['release-group-rels', 'url-rels'],
|
|
release: ['release-rels', 'url-rels', 'discids'],
|
|
recording: ['work-rels'],
|
|
work: ['url-rels'],
|
|
};
|
|
|
|
// prevent JQuery conflicts, see http://wiki.greasespot.net/@grant
|
|
this.$ = this.jQuery = jQuery.noConflict(true);
|
|
|
|
if (!unsafeWindow) unsafeWindow = window;
|
|
|
|
$(document).ready(function () {
|
|
// Get pageType (label or artist)
|
|
let parent = {};
|
|
let child = {};
|
|
let m;
|
|
if ((m = window.location.href.match('/artist/(.{36})[^/]*$'))) {
|
|
parent.type = 'artist';
|
|
parent.mbid = m[1];
|
|
child.type = 'release-group';
|
|
} else if ((m = window.location.href.match('/(release-group|label)/(.{36})[^/]*$'))) {
|
|
parent.type = m[1];
|
|
parent.mbid = m[2];
|
|
child.type = 'release';
|
|
} else if ((m = window.location.href.match('/artist/(.{36})/(releases|recordings|works)'))) {
|
|
parent.type = 'artist';
|
|
parent.mbid = m[1];
|
|
child.type = m[2].replace(/s$/, '');
|
|
} else {
|
|
// Not supported
|
|
return;
|
|
}
|
|
|
|
let mbidRE = /(release|release-group|work)\/([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/;
|
|
|
|
// Determine target column
|
|
let columnindex = 0;
|
|
$("table.tbl tbody tr[class!='subh']").each(function () {
|
|
$(this)
|
|
.children('td')
|
|
.each(function () {
|
|
if ($(this).find('a').attr('href') !== undefined && $(this).find('a').attr('href').match(mbidRE)) {
|
|
return false;
|
|
}
|
|
columnindex++;
|
|
});
|
|
return false;
|
|
});
|
|
|
|
// Set MBID to row in tables to get easiest fastest access
|
|
$("table.tbl tr[class!='subh']").each(function () {
|
|
let $tr = $(this);
|
|
|
|
$tr.children(`th:eq(${columnindex})`).after("<th style='width: 150px;'>Relationships</th>");
|
|
$tr.children(`td:eq(${columnindex})`).after("<td class='relationships'></td>");
|
|
|
|
$(this)
|
|
.find('a')
|
|
.each(function () {
|
|
let href = $(this).attr('href');
|
|
if ((m = href.match(mbidRE))) {
|
|
$tr.attr('id', m[2]);
|
|
return false;
|
|
}
|
|
});
|
|
});
|
|
|
|
// Adapt width of subheader rows by incrementing the colspan of a cell
|
|
$('table.tbl tr.subh').each(function () {
|
|
$(this)
|
|
.children('th[colspan]')
|
|
.attr('colspan', function (index, oldValue) {
|
|
if (index === 0) {
|
|
return Number(oldValue) + 1;
|
|
} else {
|
|
return oldValue;
|
|
}
|
|
});
|
|
});
|
|
|
|
// Calculate offset for multi-page lists
|
|
let page = 1;
|
|
if ((m = window.location.href.match('[?&]page=([0-9]*)'))) {
|
|
page = m[1];
|
|
}
|
|
let offset = (page - 1) * 100;
|
|
|
|
// Call the MB webservice
|
|
let url = `/ws/2/${child.type}?${parent.type}=${parent.mbid}&inc=${incOptions[child.type].join('+')}&limit=100&offset=${offset}`;
|
|
//console.log("MB WS url: " + url);
|
|
|
|
$.get(url, function (data, textStatus, jqXHR) {
|
|
// Parse each child
|
|
$(data)
|
|
.find(child.type)
|
|
.each(function () {
|
|
let mbid = $(this).attr('id');
|
|
|
|
// URL relationships
|
|
$(this)
|
|
.find("relation-list[target-type='url'] relation")
|
|
.each(function () {
|
|
let reltype = $(this).attr('type');
|
|
let target = $(this).children('target').text();
|
|
if (Object.prototype.hasOwnProperty.call(relationsIconsURLs.url, reltype)) {
|
|
$(`#${mbid} td.relationships`).append(
|
|
`<a href='${target.replace(/'/g, ''')}'>` +
|
|
`<img style='max-height: 16px;' src='${relationsIconsURLs.url[reltype]}' /> ` +
|
|
`</a>`
|
|
);
|
|
} else
|
|
for (let rel in otherDatabasesIconURLs) {
|
|
if (target.indexOf(rel) != -1) {
|
|
$(`#${mbid} td.relationships`).append(
|
|
`<a href='${target.replace(/'/g, ''')}'>` +
|
|
`<img style='max-height: 16px;' src='${otherDatabasesIconURLs[rel]}' /> ` +
|
|
`</a>`
|
|
);
|
|
}
|
|
}
|
|
});
|
|
|
|
// Other relationships
|
|
$(this)
|
|
.find("relation-list[target-type!='url']")
|
|
.each(function () {
|
|
let targettype = $(this).attr('target-type').replace('release_group', 'release-group');
|
|
let relations = {};
|
|
|
|
if (relationsIconsURLs[targettype] === undefined) {
|
|
return;
|
|
}
|
|
|
|
$(this)
|
|
.children('relation')
|
|
.each(function () {
|
|
let reltype = $(this).attr('type');
|
|
let target = $(this).children('target').text();
|
|
let url = targettype == 'url' ? target : `/${targettype}/${target}`;
|
|
|
|
if (Object.prototype.hasOwnProperty.call(relationsIconsURLs[targettype], reltype)) {
|
|
if (!Object.prototype.hasOwnProperty.call(relations, reltype)) relations[reltype] = [url];
|
|
else relations[reltype].push(url);
|
|
}
|
|
});
|
|
|
|
$.each(relations, function (reltype, urls) {
|
|
let html = '';
|
|
if (urls.length < -1) {
|
|
html += `<img src='${relationsIconsURLs[targettype][reltype]}' />(${urls.length}) `;
|
|
} else {
|
|
$.each(urls, function (index, url) {
|
|
html += `<a href='${url}'><img src='${relationsIconsURLs[targettype][reltype]}' /></a> `;
|
|
});
|
|
}
|
|
$(`#${mbid} td.relationships`).append(html);
|
|
});
|
|
});
|
|
});
|
|
});
|
|
});
|