Annotum / Annotum

A scholarly authoring and publishing platform based on WordPress.
http://annotum.org
Other
139 stars 29 forks source link

Convert to Post omits References Section #249

Closed carlthewebmaster closed 8 years ago

carlthewebmaster commented 8 years ago

Steps to reproduce:

  1. Open an article containing references in the editor.
  2. Click the "Convert to Post" button.
  3. Preview the created post.

Expected results:

  • References section intact
  • Footnote links (to actual reference in list) work.

Actual results:

  • Entire references section including Footnote anchors missing from converted post.

Workaround:

Before converting an article to a post, follow these steps to retain the References Section:

  1. Clone the article to a new article by opening the article in the article editor, then clicking "clone". This will create a copy of the article and open it in the editor.
  2. With the cloned article open in the editor, click "preview" to view the cloned article in your browser (not edit view - front-end website view).
  3. Using your browser's "view source" function, locate the <div> containing the references:

    <div id="references" class="references">
  4. Copy the entire <div>, which will look something like the selection below:
    Note: you may wish to paste the copied text into a text editor or other application as a temporary holding place, if you can't perform the next step immediately. Once you click "convert to post" the references will be gone.

    <div id="references" class="references">
                        <section class="sec">
                            <h1><span>References</span></h1>
                            <ul><li data-refid="1" id="ref1" class="">Hartmann P, Kovács AZ, Douglass AM, Reyes JC, Matthews LS, Hyde TW. Slow Plastic Creep of 2D Dusty Plasma Solids. Phys Rev Lett. 2014 Jul 11;113(2):025002. PubMed PMID:25062196.<br><a href="http://www.ncbi.nlm.nih.gov/pubmed/25062196">Reference Link</a></li><li data-refid="2" id="ref2" class="">Ade PA, Akiba Y, Anthony AE, Arnold K, Atlas M, Barron D, Boettger D, Borrill J, Chapman S, Chinone Y, Dobbs M, Elleflot T, Errard J, Fabbian G, Feng C, Flanigan D, Gilbert A, Grainger W, Halverson NW, Hasegawa M, Hattori K, Hazumi M, Holzapfel WL, Hori Y, Howard J, Hyland P, Inoue Y, Jaehnig GC, Jaffe A, Keating B, Kermish Z, Keskitalo R, Kisner T, Le Jeune M, Lee AT, Linder E, Leitch EM, Lungu M, Matsuda F, Matsumura T, Meng X, Miller NJ, Morii H, Moyerman S, Myers MJ, Navaroli M, Nishino H, Paar H, Peloton J, Quealy E, Rebeiz G, Reichardt CL, Richards PL, Ross C, Schanning I, Schenck DE, Sherwin B, Shimizu A, Shimmin C, Shimon M, Siritanasak P, Smecher G, Spieler H, Stebor N, Steinbach B, Stompor R, Suzuki A, Takakura S, Tomaru T, Wilson B, Yadav A, Zahn O. Measurement of the Cosmic Microwave Background Polarization Lensing Power Spectrum with the POLARBEAR Experiment. Phys Rev Lett. 2014 Jul 11;113(2):021301. PubMed PMID:25062161.<br><a href="http://www.ncbi.nlm.nih.gov/pubmed/25062161">Reference Link</a></li><li data-refid="3" id="ref3">Guillou, E., Ibarra, A., Coulon, V., Casado-Vela, J., Rico, D., Casal, I., Schwob, E., Losada, A., Mendez, J.. Cohesin organizes chromatin loops at DNA replication factories. Genes &amp; Development. 2010
    2010
    ;24(24):2812-2822. DOI:10.1101/gad.608210.<br><a href="http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3003199/">Reference Link</a></li>        </ul>
                        </section>
                    </div>
  5. Now, go back to the cloned article in the editor, and click the "convert to post" button. The post will open in the normal (non-article) post editor.
  6. Switch the editor to "text" rather than "visual" view, and paste the entire References <div> html at the bottom of the article.
  7. Save and preview. The references should appear at the bottom, and footnote links should function as expected.
carlthewebmaster commented 8 years ago

To be clear this is resolved via the changes in the last commit . You need to replace the Annotum v2.11 version of annotum-base/functions/article-post-type.php with the most recent version.