Skip to content

Commit

Permalink
deploy: 44ef1e8
Browse files Browse the repository at this point in the history
  • Loading branch information
codeforIATIbot committed Dec 12, 2024
0 parents commit a2166c4
Show file tree
Hide file tree
Showing 13 changed files with 253 additions and 0 deletions.
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry.codeforiati.org
9 changes: 9 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
defaults:
-
scope:
path: "" # an empty string here means all files in the project
values:
layout: "default"

title: Registry metadata
description: All the IATI registry metadata, in two files.
7 changes: 7 additions & 0 deletions _includes/card.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<div class="col-md mb-4">
<a href="{{ include.fname }}" class="btn btn-outline-dark" title="Download {{ include.title }}">
<h5>{{ include.title | capitalize }}</h5>
<p>{{ include.description }}</p>
<p class="mb-0"><i class="fa fa-download fa-3x" aria-hidden="true"></i></p>
</a>
</div>
55 changes: 55 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en" class="h-100">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{{ site.description }}">

<meta property="og:site_name" content="{{ site.title }}">
<meta property="og:url" content="{{ site.github.url }}">
<meta property="og:title" content="{{ site.title }}">
<meta property="og:type" content="website">
<meta property="og:description" content="{{ site.description }}">
<meta property="og:image" content="{{ site.github.url }}/assets/logo-square.png?v={{ site.github.build_revision }}">

<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="{{ site.title }}" />
<meta name="twitter:description" content="{{ site.description }}">
<meta name="twitter:image" content="{{ site.github.url }}/assets/logo-square.png?v={{ site.github.build_revision }}">

<link rel="icon" href="{{ site.github.url }}/favicon.ico?ver={{ site.github.build_revision }}">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
<link rel="stylesheet" href="/assets/css.css?ver={{ site.github.build_revision }}">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

<title>{{ site.title }}</title>
</head>
<body class="d-flex flex-column h-100">
<header>
<nav class="navbar navbar-light bg-light">
<div class="container justify-content-start">
<button class="navbar-toggler mr-3" type="button" data-c4i-toggle="sidebar" type="button" aria-controls="c4i-sidebar" aria-expanded="false" aria-label="Toggle Code for IATI sidebar"><span class="navbar-toggler-icon"></span></button>
<a href="/" class="navbar-brand"><img width="100px" src="/assets/logo.png" title="A project of Code for IATI"></a>
</div>
</nav>
</header>

<main role="main" class="flex-shrink-0 text-center">
<section class="jumbotron">
<div class="container">
<h1>{{ page.title }}</h1>
{{ content }}
</div>
</section>
</main>

<footer class="footer mt-auto py-3">
<div class="container">
<span class="text-muted">A <a href="https://codeforiati.org">Code for IATI</a> project.<br><a href="https://github.com/codeforIATI/registry-metadata">Source code</a> | <a href="https://github.com/codeforIATI/registry-metadata/issues/new/choose">Report a bug</a></span>
</div>
</footer>
<script src="//codeforiati.org/sidebar/sidebar.min.js"></script>
<script src="/assets/js.js?ver={{ site.github.build_revision }}"></script>
</body>
</html>
20 changes: 20 additions & 0 deletions assets/css.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
---

.jumbotron {
background-color: #fff;
margin-bottom: 0;

.container {
max-width: 40rem;
}
}

.footer {
background-color: #f5f5f5;

> .container {
padding-right: 15px;
padding-left: 15px;
}
}
7 changes: 7 additions & 0 deletions assets/js.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var luEl = document.getElementById('last-updated');
var luText = luEl.innerHTML;
var now = new Date();
var last_updated = new Date(luText);
var hours_ago = Math.round((now - last_updated) / 3.6e6);
var updatedText = hours_ago + ' hour' + ((hours_ago === 1) ? '' : 's') + ' ago';
luEl.innerHTML = updatedText;
Binary file added assets/logo-square.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions dataset_list.json

Large diffs are not rendered by default.

Binary file added favicon.ico
Binary file not shown.
18 changes: 18 additions & 0 deletions index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: Registry metadata
---
All the [IATI registry](https://iatiregistry.org) metadata, in two files.

<div class="row">
{% include card.html fname="publisher_list.json" title="all publishers metadata" description="A list of publisher metadata from the registry" %}

{% include card.html fname="dataset_list.json" title="all datasets metadata" description="A list of dataset metadata from the registry" %}
</div>

{% assign now = site.time | date_to_rfc822 %}

_Both files update every 3-4 hours. Last updated: <abbr title="{{ now }}" id="last-updated">{{ now }}</abbr>._

---

**_\*BONUS!\*_** A CSV of [mappings of past to current publisher IDs](registry_id_relationships.csv)
1 change: 1 addition & 0 deletions publisher_list.json

Large diffs are not rendered by default.

134 changes: 134 additions & 0 deletions registry_id_relationships.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
current_registry_id,previous_registry_id
aasaman,vsop-aasaman
arcfge,lb-moi-497
_admin,asfpakistan
across,ke-ncb-op2180519381152
asi,adamsmithinternational
adrasom,ke-ngc-663
adpp,mz-moj-64vq1-addp-imp-107
allwecan,mrdf
acatba,actaba
acu,gb-chc-314137
atfd,05091984
enabel,btc-ctb
bioclimate,brdt
bii,cdc
gb-chc-220949,gb-cc-220949
gac-amc,dfatd-maecd
carebenintogo,care_bt_ohounyo
12921047,care_danmark
ciafg,careafg
cis,care_international_foundation_switzerland
caribank,cdb-iati
crs,crs_vyf
cku,dmru
ct-admin,cetri
ct-admin,ct
caid_ireland,cai
cifal,cifaluk
nl-kvk-54436222-27541,cnv-i
adjarra,adjarra-org
dangbo,dangbo-org
corha,et-csa-1424
healthpartners-international,hp-international
diakonia-sweden,diakonia8020173517
diakonia-sweden,diakonia802017-3517
dai,dorcas
eclosio,adg
esrf,esrftz
edt_kenya,cfbt_kenya
engenderhealth_eth,agoprojectconsortium
engenderhealth_eth,eh_ago
engenderhealth_eth,eh_agoproject
engenderhealth_eth,engenderhealth
engenderhealth_eth,engenderhealthagoproject
engenderhealth_eth,eh_eth
engenderhealth_eth,ehagoproject
nroot,enroot_
ec-intpa,ec_devco
ec-intpa,ec-devco
ec-near,ec-elarg
ec-near,xi-iati-ec_near
ec-fpi,xi-iati-ec_fpi
fmdqgroupplc_2013,_fmdqgroupplc-2013
fes_bonn,fes_sudan
f-aids,aa
f-aids,ihaa
feadin,830123149
ga,274706
gan,vsop-gan
gardp,gardp-_
heifernederland,heifer
hwa-zm,hwa
inhive,gb-chc-1150964
ihap,ihap_srhr
sinchi_admin,sinchi
bmu_iki,bmub_iki
ifdc-us,ifdc_acma
ims,dk-cvr-26487013
irex,suhanajjar
lithuania_mfa,mfa_lithuania
lbs,wheeler
lshtm,uk-phrst
mck,mck_
mcs_new,mcs
mcnv,mcn-v
mce,mcs
mefbenin,caabenin
nfp,agriprofocus
nwo,wotro-fbr
nwo,wotro-fbr1
nso,nso-
kn,nca
orbis_uk,orbis
orbis_ethiopia,oribs_ethiopia
orbis_international,oribs_international
pstc_1102,pstc_bgd_24493
pstc_1102,pstc_bgd_sangjog
pwyf,pwyf_
quasem_fo,quasem_foundation
qrfed,qrf
rahuug,rahu_admin
rains,rains_93
recodh,recodh_22
rymn,19
rymn,ryemen
retrak,retrrak
rc4d,rcd4d
sinda,nidos
syf,lftwnl
shell_foundation,shell
solarnowsofa,105066
solidaridad,solidaridad-china
solidaridad-europe,solidaridad-netherlands
simone_sympany,simone_ympany
tfp,pk-sec-0108318
cavwoc,cavwoc_tr_inc_869
cavwoc,nmw_ncm_c869_1998
cavwoc,mw_cnm_c057_1998
cavwoc,cavwoc_tr869
irc_inc,irc_iati
the_nature_conservancy,53-0542652
the_nature_conservancy,53-0242652
tnh,irinnews
said-uk,said
tma,tmea
beis,beis1
dhsc,doh
homeoffice,hooda
unocha-sdc,ocha-chd
unocha-sdc,ocha-sdc
universityofbirmingham,universityofbirmingham_gsdrc
gb-ukprn-10007155,portsmouth
1-uz,uzchsctrc
unpf,un_pooled_funds
vfw,vfw_admin
varkeyfoundation,varkeyfoundation_15
warchildholland,wch
warchildholland,nl-kvk-41215393
wff,wwf-admin
w4p,waterforpeople
welfare_taawon,xm-dac-7-ppr-4000005167
wv_et_activities,wv_et_activties
wvnld,nl-kvk-41179943
wygi,wgyi

0 comments on commit a2166c4

Please sign in to comment.