mpaeu_docs
Documentation for the OBIS contribution to MPA Europe
Science Score: 31.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (0.4%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
·
Repository
Documentation for the OBIS contribution to MPA Europe
Basic Info
- Host: GitHub
- Owner: iobis
- Language: JavaScript
- Default Branch: main
- Size: 9.36 MB
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 0
Created about 3 years ago
· Last pushed over 1 year ago
Metadata Files
Readme
Citation
README.md
mpaeu_docs
Documentation for the OBIS contribution to MPA Europe
Owner
- Name: OBIS
- Login: iobis
- Kind: organization
- Email: p.provoost@unesco.org
- Location: Belgium
- Website: https://obis.org
- Twitter: OBISNetwork
- Repositories: 179
- Profile: https://github.com/iobis
Ocean Biodiversity Information System
Citation (citations.qmd)
# Citations
```{=html}
<style>
table {
border-collapse: collapse;
width: 100%;
table-layout: fixed;
}
th, td {
border: 1px solid #ccc;
padding: 8px;
text-align: left;
}
th {
background-color: #f2f2f2;
}
#searchInput {
margin-bottom: 10px;
padding: 5px;
width: 300px;
border-width: thin !important;
border-color: #c4c0c0;
}
</style>
<input type="text" id="searchInput" placeholder="Search table...">
<div id="table-container">Loading data...</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
// Function to create and display the table from the datasets array
function generateTable(datasets) {
const container = document.getElementById('table-container');
container.innerHTML = ''; // Clear the loading message
const table = document.createElement('table');
table.id = "datasetsTable"; // assign an id for filtering
// Create table header
const thead = document.createElement('thead');
const headerRow = document.createElement('tr');
const headers = ['Title', 'Source', 'Nodes', 'URL'];
headers.forEach(headerText => {
const th = document.createElement('th');
th.textContent = headerText;
headerRow.appendChild(th);
});
thead.appendChild(headerRow);
table.appendChild(thead);
// Create table body
const tbody = document.createElement('tbody');
datasets.forEach(item => {
const row = document.createElement('tr');
headers.forEach(key => {
const td = document.createElement('td');
if (key === 'URL') {
const a = document.createElement('a');
a.href = item[key];
a.textContent = item[key];
a.target = '_blank';
td.appendChild(a);
} else {
td.textContent = item[key];
}
row.appendChild(td);
});
tbody.appendChild(row);
});
table.appendChild(tbody);
container.appendChild(table);
}
// Function to filter table rows based on search input
function filterTable() {
const input = document.getElementById("searchInput");
const filter = input.value.toLowerCase();
const table = document.getElementById("datasetsTable");
if (!table) return;
const trs = table.getElementsByTagName("tr");
// Loop over all table rows, skipping header row
for (let i = 1; i < trs.length; i++) {
let rowText = trs[i].textContent.toLowerCase();
trs[i].style.display = rowText.includes(filter) ? "" : "none";
}
}
// Add event listener for search input
document.getElementById("searchInput").addEventListener("keyup", filterTable);
// Fetch the JSON file, parse it, and extract the datasets component
fetch('https://raw.githubusercontent.com/iobis/mpaeu_sdm/refs/heads/main/datasets_citation.json')
.then(response => {
if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}
return response.json();
})
.then(data => {
if (data && data.datasets && Array.isArray(data.datasets)) {
generateTable(data.datasets);
} else {
document.getElementById('table-container').textContent = 'JSON structure is not as expected.';
}
})
.catch(error => {
console.error('Error loading JSON:', error);
document.getElementById('table-container').textContent = 'Error loading data.';
});
});
</script>
```
GitHub Events
Total
- Push event: 1
Last Year
- Push event: 1
Issues and Pull Requests
Last synced: over 2 years ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0