Giter Site home page Giter Site logo

embedgalley's People

Contributors

ajnyga avatar asmecher avatar grazingscientist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

embedgalley's Issues

LICENSE needed!

You should add a license to this repo. Otherwise, the people out there are not allowed to use it....

Tags not rendering correctly

Everything works fine, but in the reference lists, some tags are not rendering correctly. I noticed with book titles and chapters.

For example this one: Hondagneu-Sotelo, P. (1994). . . University of California Press: Berkeley, C.A.. .

Should look like this: Hondagneu-Sotelo, P. (1994). Gendered transitions: the Mexican experience of immigration. Berkeley, C.A.: University of California Press.

How can I fix this?
Thank you

Fatal error in OJS 3.1.2

In the most current version of OJS (3.1.2), articles with JATS-XML do not load anymore.

In the logs I get the error:

PHP Fatal error:  Uncaught  --> Smarty: 
Unable to load template 'app:plugins/generic/embedGalley/templatestemplates/articleFooter.tpl
' in 'frontend/pages/article.tpl' <-- \n  thrown in
/ojs/journal_name/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 195

I think this may be connected to this line , but that is only a guess.

Would be awesome, if you could fix this.

Including Images

Hi there!

I just uploaded this xml file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "TextureArticle 0.1.0" "http://substance.io/TextureArticle-1.0.0.dtd">
<article id="article" xmlns:xlink="http://www.w3.org/1999/xlink">
  <front id="front-1">
    <article-meta id="article-meta-1">
      <title-group id="title-group-1">
        <article-title id="article-title-1">This is a Nice Test Article</article-title>
      </title-group>
      <history id="history-1" />
      <abstract id="abstract-1">
        <p id="p-1">A nice article not in need of any abstract.</p>
      </abstract>
    </article-meta>
  </front>
  <body id="body-1">
    <p id="p-2">Well, I have to write something.</p>
    <fig id="fig-7ca66d845ea9ec67723b37adf209b6fc">
      <object-id id="object-id-3cae7257ceed7091fb226510f4bc922f">fig-7ca66d845ea9ec67723b37adf209b6fc</object-id>
      <label>Figure 1</label>
      <caption id="caption-940ee25b59a2f2982561703336202d60">
        <title id="title-5e83b2c705efd3ff3664c4a847316410">A title</title>
        <p id="p-95ed9f3dcf7c1330940737588b114b05">A caption</p>
      </caption>
      <graphic id="graphic-bfd8aceaa6d085a3e5edc2e070942909" mime-subtype="jpeg" mimetype="image" xlink:href="e862c6fa801d48141fd64505eb397f94.jpg" />
    </fig>
  </body>
  <back id="back-1">
    <ref-list id="ref-list-1" />
  </back>
</article>

When uploading only this (not the image file), my article page loses its sidebar...
How can I included images without giving a link to the file but uploading it directly in the backend?

Edit: When the sidebar gets lost, the log tells me: "Uncaught Error: Call to undefined method stdClass::saveHTML()". Perhaps this helps....

DOMDocument loads asks for dtd file

Another error: The DOMDocument::load() asks for a .dtd file. As far as I understand, this is required for translating the article tags to HTML.
If I provide a dtd file, it is never sufficient (because some tags are not found, etc.). Could you provide an example of your JATS input files that work?

Edit: Sorry! Its not the DODocument but the XSLTProcessor::transformToDoc() asking for the dtd

Call stylesheet with path not URL

I would recommend to call the stylesheet not with the server URL but with the path on the server. This avoids the plugin not working in journals that are behind some kind of firewall...

In function _generateHTML:

$path = Core::getBaseDir() . DIRECTORY_SEPARATOR . $this->getPluginPath() . DIRECTORY_SEPARATOR . 'xsl' . DIRECTORY_SEPARATOR . $citation_style . ".xsl";

This solution was already proposed in #2, but unfortunately not included in the software yet.

Only one of mulitple style attributes is rendered

When having something like

<table>
    <td id="table-cell-1234" align="center" style="background-color: royalblue">ABC</td>
</table>

In the HTML, only the text-align: center is realized in my table. The color is ignored. However, I would expect that both attributes are stacked to give the final style.

The problem is that the add-style template in the XSLT does not acknowledge any already present style attributes. Can this be realized?

Not working with OJS 3.1.2-2

Hi @ajnyga

I was testing your module (your release tagged as 1.0.0.2) against last OJS last stable (3.1.2-2) and when clicking in "settings" I got this error:

Failed Ajax request or invalid JSON returned.

On log I can read the following:

[Tue Sep 17 00:13:11.776847 2019] [php7:warn] [pid 652] [client 93.176.187.155:57510] PHP Warning:  Declaration of EmbedGalleySettingsForm::fetch($request) should be compatible with Form::fetch($request, $template = NULL, $display = false) in /var/www/html/plugins/generic/embedGalley/EmbedGalleySettingsForm.inc.php on line 76, referer: http://myjournal.uab.cat:8082/athenea/management/settings/website
[Tue Sep 17 00:13:11.777242 2019] [php7:warn] [pid 652] [client 93.176.187.155:57510] PHP Warning:  filemtime(): stat failed for lib/pkp/templates/plugins/generic/embedGalley/templatessettingsForm.tpl in /var/www/html/lib/pkp/classes/template/PKPTemplateResource.inc.php on line 51, referer: http://myjournal.uab.cat:8082/athenea/management/settings/website
[Tue Sep 17 00:13:11.777493 2019] [php7:error] [pid 652] [client 93.176.187.155:57510] PHP Fatal error:  Uncaught  --> Smarty: Unable to load template 'app:plugins/generic/embedGalley/templatessettingsForm.tpl' <-- \n  thrown in /var/www/html/lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 195, referer: http://myjournal.uab.cat:8082/athenea/management/settings/website

Please, let me know if you need more info.

Thanks for your work,
m.

Not working in OJS 3.1.1

Hi, I upgraded ojs to version 3.1.1 and this plugin is not working anymore.
No errors in log and no errors in browser.
Some idea?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.