hypothesis_aggregator
hypothesis_aggregator copied to clipboard
A WordPress plugin for aggregating data via the hypothes.is API.
The plugin generates HTML using [string concatenation](https://github.com/kshaffer/hypothesis_aggregator/blob/3872e310ff046103774882199977c3a2bc5dd8a9/hypothesis-aggregator.php#L84) of markup with values from annotation fields (eg. the document title). These fields can contain quotes, HTML markup etc. That creates the possibility...
The `hypothesis_shortcode` function performs a search request against the Hypothesis API, which returns the full contents of each annotation. It then [fetches each annotation individually](https://github.com/kshaffer/hypothesis_aggregator/blob/3872e310ff046103774882199977c3a2bc5dd8a9/hypothesis-aggregator.php#L81) from the `GET /api/annotations/{id}` endpoint....
For example, one might want to sort results in reverse chronological order, or by some other sort on the data. Might use syntax like ``[user="foo" tag="bar" sort="fieldA,asc; fieldB,desc"]``
I guess PHP no longer likes is_array() and checking for variables without calling isset(). Notice: Undefined property: stdClass::$twitter in /Users/nate/Sites/xolotl.org/wp-content/plugins/hypothesis_aggregator/hypothesis-aggregator.php on line 92 Notice: Trying to get property of non-object...
Kris: I was running your plugin on a server with PHP 7.2.2 and I noted some errors based on new things in PHP that pertain to an area of the...
Kris, just testing the plugin and it goes to the edge of the page, as opposed to working with the theme:  I have...
I came across the issue of shortcodes from this plugin not showing up because cURL for PHP was not enabled on a new server for an existing WordPress installation where...
Towards the end of using this plugin as part of an online "notebook" or commonplace book, it would be nice to have finer control over the listings of the annotations....
This plugin is spectacular by the way... Here are some thoughts on future development: It would be great if the displayed text output from the shortcode included a permalink to...