'+shopHTML+'
';
}
// online link
var onlineHTML = "";
if(data.isOnline=="yes" && data.issueStatus!="future") {
var onlineDocs = $.grep( data.documents, function(doc) { // filter to just the online docs
return doc.onlineUploaded === "yes";
});
var firstChar = ""
$.each(onlineDocs, function(index, value) {
onlineHTML += firstChar + "
"+value.docTitle+""
firstChar = " | ";
});
}
if(onlineHTML) { onlineHTML = "
Read online: "+onlineHTML+"
"; }
// put the html on the page (technically should only be one panel, but loop through just in case)
$(issuePanels).each(function() {
$(this).html( "
" + coverHTML + "
" + titleHTML + shopHTML + onlineHTML + bodyHTML + onlineHTML + shopHTML + "
");
});
});
return issuePanels;
};
})( jQuery );
jQuery(document).ready(function($) {
var issueID = getQuerystring("issueID",0)
$('#issueDetail').issueDetail(5, issueID, 'no');
});
// this should be put in a central functions area
function getQuerystring(key, default_)
{
if (default_==null) default_="";
key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regex = new RegExp("[\\?&]"+key+"=([^]*)");
var qs = regex.exec(window.location.href);
if(qs == null)
return default_;
else
return qs[1];
}
