Giter VIP home page Giter VIP logo

openbibl's Introduction

openbibl

The openbibl project is a collection of stylesheets and standards for publishing scholarly and descriptive bibliographies to the web using XML, RDF, and web standards.

openbibl is a collaboration between Dawn Childress, Kevin Clair, and Nathan Day.

A detailed README is coming soon. We will soon have openbibl project stylesheets available, including:

  1. custom TEI templates
  2. XSLT, CSS, javascript
  3. schema.org extensions

In the meantime, if you have questions about the project or would like to be involved, please contact us at [email protected].

openbibl's People

Contributors

kirschbombe avatar

Watchers

James Cloos avatar  avatar Kevin Clair avatar  avatar

Forkers

jackflaps

openbibl's Issues

Search terms starting/ending with non-word characters are not highlighted

When the search term "2°" (2°) is entered in the search field, the bibliography entries are filtered, but the term is not highlighted in the entries. This is due to the fact that the regex generated from the term in the JS code in openbibl.highlight.js in window.obp.highlight.highlight_term() is like

/\b2°\b/i

which will never match due to the non-word-char/word-boundary combination.

The word boundary assertion should be included only if the end of the search term is a word character.

Tooltip Jasmine test fails

In isolation, the Jasmine test

tests/js/spec/openbibl/tooltip tooltip events tooltip 
hover event adds tooltip text

passes, but it fails when run as part of the entire test suite. After some debugging, it has been determined that the tooltip test will fail when only the following two test units are enabled in SpecRunner.js:

'tests/js/spec/openbibl/query'
'tests/js/spec/openbibl/tooltip'

This would lead me to believe that there is some issue with the loading of the Jasmine-jQuery fixtures for the tooltip test, or the loading of Saxon, or an issue with a cached fixture.

JS tooltip functionality not working in Safari

Tooltips do not appear during a mouse-over using Safari, although they do appear in Firefox and Chrome.

This appears to be related to an unhandled JS exception around the use of the URI object for resolving relative urls, which is unsupported in Safari.

Add hash-based routing/state management

The current Openbibl bibliography viewer page has no means of preserving the state of the page, e.g., to snapshot the currently selected index or search terms. Implementing a url-based routing scheme would allow the current state of the application to be captured, which would facilitate bookmarking or sharing.

Examples of url (hash) based routing are found in and as add-ons for most JS frameworks:

http://angular-ui.github.io/ui-router/site/#/api/ui.router
http://documentcloud.github.io/backbone/#Router
http://emberjs.com/guides/routing/specifying-the-location-api/

No favicon file

The favicon file 'openbibl/assets/ico/favicon.png' is referred to by the XML/HTML rendered in the browser, but the file is empty.

Tooltip box clipped after filter

Certain tooltip boxes are being truncated after a filter operation. Steps to reproduce:

  1. Navigate to http://rnathanday.github.io/openbibl/examples/otherEurope/otherEurope.xml
  2. Click "Biblia Bohemica" in the TOC
  3. Expand entire entry
  4. Hover over "Jan Hus", notice that the full tooltip displays
  5. Expand the "People" filter
  6. Select "Jan Hus"
  7. Expand the entire "Biblia Bohemica" entry
  8. Hover over the "Jan Hus" link, notice that the tooltip is constrained in size by the margin of the enclosing p.bibliography element.

Search field input closes off-screen menu for tablet devices

Using a Samsung Galaxy Note 8.0's default browser, entering text in the search field causes the offscreen menu to collapse without a clean update of the #bibliographies div's offscreen classes, causing (a) the bibliography entries to be shown partially off screen, (b) the menu button not to be available.

This does not happen in small-screen mode on a desktop (non-touchscreen) device.

Remove JS dependency on Handlebars

The Underscore.js library provides HTML-partial templating functionality, and is also used elsewhere in the code, meaning that the Handlebars.js library/dependency is redundant and increases the JS file payload w/out providing a unique contribution.

See http://underscorejs.org/#template for documentation on the templating API. Note that the Handlebars template format can be accommodated by Underscore.

The following files include references to Handlebars:

js/openbibl.js
js/openbibl.search.js
xsl/openbibl.boot.xsl
xsl/openbibl.params.xsl
notices/handlebars
wiki

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.