This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import pywikibot | |
import pywikibot.data.wikidataquery as wdquery | |
COLLECTION_P = '195' | |
PART_P = '518' | |
INSTITUTION_Q = '842858' | |
PREFIX_MAP = { | |
u'NM': {u'subcol': None, u'place': u'Q%s' % INSTITUTION_Q}, | |
u'NMB': {u'subcol': None, u'place': u'Q%s' % INSTITUTION_Q}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: UTF-8 -*- | |
# | |
# Test for redux equivalency | |
# run from main directory | |
# | |
import codecs | |
import random | |
files = ('ausstellung_trim.csv', 'ereignis_trim.csv', 'objMass_trim.csv', | |
'photo_multimedia_etc.csv', 'kuenstler_trim.csv', 'objDaten_etc.csv', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pywikibot | |
import pywikibot.data.wikidataquery as wdquery | |
import json | |
import codecs | |
BAD = json.load(codecs.open('fixLinks.json', 'r', 'utf-8')) | |
PATTERN = '2048005/Athena_Plus_ProvidedCHO_Nationalmuseum__Sweden__Inv__Nr__' | |
# add string replace for server change | |
BAD['//emp-web-22.zetcom.ch/eMuseumPlus?'] = \ | |
'//collection.nationalmuseum.se/eMuseumPlus?' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype><html><head> | |
<meta charset="utf-8"> | |
<title>Import slides from external md file</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="http://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/themes/css/cartodb.css"> | |
<link rel="stylesheet" href="http://cartodb.github.io/odyssey.js/editor/css/slides.css"> | |
<script type="text/javascript" src="//cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> |
NewerOlder