Giter Site home page Giter Site logo

wikisocph / eph-historical-markers-map Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 2.0 521 KB

Map web app showing the Philippine historical markers that have been added to Wikidata.

Home Page: https://wikisocph.github.io/eph-historical-markers-map/

License: MIT License

HTML 6.07% CSS 17.74% JavaScript 76.19%
wikidata wikimedia wikimedia-commons history philippines

eph-historical-markers-map's Introduction

Map of Philippine Historical Markers in Wikidata

This is a simple web application that displays a map of all of the Philippine historical markers that have been added to Wikidata. To be included in the map, a Wikidata item needs to have its instance of (P31) property set to Philippine historical marker (Q21562164) and to have a valid coordinate location (P625) property set. Each historical marker is represented by a marker on the map that when clicked will open a popup showing a photo of the historical marker (if any) and the inscription (if any) with the historical marker’s title linking to the corresponding item in Wikidata.

This application is managed under Wikimedia Philippines’ Encyclopedia of Philippine Heritage (EPH) program and falls specifically under the WikiProject Philippine historical markers in Wikidata.

eph-historical-markers-map's People

Contributors

seav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

eph-historical-markers-map's Issues

Add "Links" tab

This should be similar to the "Other resources" page of Panandâ but also including a link to NHCP official Blogspot directory.

Improve photo attribution processing to sanitize complex HTML

Currently, the generateFigure() function mostly simply copies the author string as it appears in Wikimedia Commons directly to the panel contents. Because this author string could contain any number of wiki syntax and HTML, this could mess up the layout.

A possible solution is to detect complex HTML or links and if it is detected, to just extract the User:XXX link.

Fix race condition bug in generateFigure()

In the JS file eph-common.js, the generateFigure() function assumes that the <figcaption> that is the target of the AJAX operation is still attached to the document when the AJAX resolves. But the user may have switched the panel contents before the AJAX resolves leading to either the wrong photo attribution being added or not being able to attach the photo attribution.

The obvious solution is to update the function to refer to the panelElem Records field.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.