Skip to content

Commit

Permalink
README.md, hide metadata for now (TODO)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Zimmel committed Jul 14, 2014
1 parent ecd9144 commit cfe21bc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ Basic configuration is in *index.php*. The CSS classes and IDs for the
articles (``item_*``) need to exist in the HTML snippet that includes the table of contents (*ajax/getJournalTOC.php*).
Actions for adding/removing/displaying the basket are handled in *js/local/conduit.js*.

# Additional metadata

-- TODO -- see *config.ini* and *index.php* for details on how to provide extra metadata. By default it is not shown.

# Checkout options

The default checkout main file is *checkout.php*. The click actions are configured in *js/local/conduit.js*.
Expand Down Expand Up @@ -301,6 +305,12 @@ function ``saveArticlesAsEndnote()``.

Caveat: in the current implementation, mapping of the metadata is limited to the given *simpleCart* fields (``item_name``, ``item_link``, ``item_options_``), and will be re-read from the source string when exporting. This is by no means a clean implementation. It would be better to modify the *simpleCart* js for a cleaner mapping (it is not really a mapping right now). (TODO)

## Localization

-- TODO --

JournalTouch has multilanguage support by default. For details and customization see *locale/*.

# Android Hints

To port it to a native mobile environment, you can use Apache Cordova / PhoneGap.
Expand All @@ -321,10 +331,6 @@ Wrap in Cordova iOS

Authentication/Personalization

Cover API integration

Admin Module for manipulating the CSV file if you do not want to use Google Drive or set a local solution (Excel including hassles).

Cleanup/Rewrite Checkout (GET/POST handling is a bit chaotic)

Mapping for export (extend simpleCart.js)
6 changes: 4 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,16 +316,17 @@
/* convert found date of last update in the data to a timestring (gets evaluated with jquery.timeago.js) */
$timestring = date('c', strtotime($j['date'])); //
$wF = '<time class="timeago" datetime="'.$timestring.'">'.$timestring.'</time>';


$meta = false;
/** TODO **
$jtoc = 'http://www.journaltocs.ac.uk/index.php?action=tocs&issn='.$j['issn'];
$meta = (($j['metaGotToc']) ? '<span class="button small radius"><i class="'.$j['metaGotToc'].'"> </i> <a href="'.$jtoc.'" class="popup">'.__('TOC').'</a></span>' : "");
$link = ($lister->prefs['instLink']) ? $lister->prefs['instLink'].$j['issn'] : '';
$meta .= (($j['metaOnline'] && $link) ? '<span class="button small radius"><i class="'.$j['metaOnline'].'"> </i><a href="'.$link.'" class="popup">'.__('Library').'</a></span>': "<br />");
$meta .= (($j['metaWebsite']) ? '<span class="button small radius"><i class="fi-home"> </i><a href="'.$j['metaWebsite'].'" class="popup">'.__('Journal').'</a></span>': "<br />");
$print_meta = (($j['metaPrint']) ? 'class="'.$j['metaPrint'].'"' : "");
$meta .= (($j['metaShelfmark']) ? ' <span class="button small radius"><i '.$print_meta.'> '.$j['metaShelfmark'].'</i></span>' : "&nbsp;");

**/
echo '<div class="search-filter large-4 medium-5 small-12 columns div-grid filter-'.$j['filter'].' '.$j['tags'].' '.$j['topJ'].'">';
echo '<img class="getTOC grid '.$j['id'].'" id="'.$j['id'].'" src="img/lazyloader.gif" data-src="'.$j['img'].'">';
echo (!empty($j['new']) ? '<i class="fi-burst-new large"></i>' : "");
Expand All @@ -334,6 +335,7 @@
echo '<h5 title="'.$j['title'].'">'.$j['title'].'</h5>';
echo (!empty($j['new']) ? '<h6 class="subheader"> <span class="fresh">['.__("last update") .' '. $wF . ']</span> </h6>' : "");
echo '</div></div>';

}
?>

Expand Down

0 comments on commit cfe21bc

Please sign in to comment.