Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter Thomas L?Excellent

    (@tlexcellent)

    Thank you for your answer.

    Switching to apa style solved the number problem.

    For the sorting problem, I replaced lines 671-672 in the zotpress.shortcode.bib.js?with the code below ; not sure if it’s fully compatible, but here’s the code

    if ( jQuery("#"+$instance.attr("id")+" .zp-List h3[rel='"+orderedType+"']").length == 0 ) {
    						var insertedH3 = false;
    						if ( jQuery("#"+$instance.attr("id")+" .zp-List h3[rel]").length > 0 ) {
    							jQuery("#"+$instance.attr("id")+" .zp-List h3[rel]").each(function(){
    								var h3Rel = jQuery(this).attr("rel");
    								if (orderby == "asc") {
    									if (orderedType<h3Rel) {
    										insertedH3 = true;
    										jQuery(this).before( "<h3 rel='"+orderedType+"'>"+tempTitle+"</h3>\n" );
    										return false;
    									}
    								} else {
    									if (h3Rel<orderedType) {
    										insertedH3 = true;
    										jQuery(this).before( "<h3 rel='"+orderedType+"'>"+tempTitle+"</h3>\n" );
    										return false;
    									}
    								}
    							});
    						}
    						if ( !insertedH3 ) {
    							jQuery("#"+$instance.attr("id")+" .zp-List").append( "<h3 rel='"+orderedType+"'>"+tempTitle+"</h3>\n" );
    						}
    					}
Viewing 1 replies (of 1 total)