Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author yoannspace

    (@yoannspace)

    Hi,
    You need to go to the plugin’s settings. As with other plugins, you will find this on the left side of the administration page (wp-admin).
    Once you are in the Zenodo plugin setting page, you can enter your ORCID. No need for a client ID/secret, we use the public API of Zenodo.
    Best regards

    Plugin Author yoannspace

    (@yoannspace)

    Hi @mccdcp,

    A new version is online.

    It will allow you to use:
    [display-your-zenodo-community keyword=”analytics”] or similar.

    I haven’t added the multiple keywords as shown: [display-your-zenodo-community keyword=”analytics, methods”]. That could be part of a future update, but I wanted to be quick and allow you to use this new option. (The problem is not the code, but releasing a new version is often a pain in WordPress…)

    I hope you like it.

    Best,
    Yoann

    PS: If you would like to give me your website URLs where you use this plugin, I would be keen on showing different examples in the README, for other users. Only if you want of course.

    Plugin Author yoannspace

    (@yoannspace)

    Hi,

    Sorry I did not come back to you earlier… I just saw this message.
    It should be fairly easy, yes. As you probably know, you can set this in the general admin options.

    In order to have this done also in the shortcode itself, would be probably pretty simple.
    I will try to do this in the next weeks, but if you can’t wait, I think you should simply add a parameter to the display_zenodo_data function (let’s call it $attr, so: function display_zenodo_data( $attr ) { ... }) and use it like this (in here):

    
    if( is_array( $attr ) ) {
        //Of course you should add some specific checks here so it does not break or hurt your website
        $shortcode_specific_keyword = $attr['keyword'];
    }
    

    Then send this variable to the zp_retrieve_json function (in here), so you have to modify a bit the call and the function itself. And finally inside that zp_retrieve_json function, do something like (in here)

    
    if( $shortcode_specific_keyword ) {
        $extra_keyword = $shortcode_specific_keyword;
    } elseif( array_key_exists( 'extra_keyword', $display_your_zenodo_community_options ) ) {
        $extra_keyword = $display_your_zenodo_community_options['extra_keyword'];
    }
    

    That should be it, but I haven’t tested anything here…

    I hope it helps.

    Best,
    Yoann

    • This reply was modified 4 years, 1 month ago by yoannspace. Reason: typo
    • This reply was modified 4 years, 1 month ago by yoannspace. Reason: typo
    Forum: Plugins
    In reply to: [HAL] Erreur pagination
    Thread Starter yoannspace

    (@yoannspace)

    Merci pour la mise à jour ! (Je ferme ce ticket)
    (une note, la page README.txt ne contient pas les infos de la nouvelle version, e.g. changelog, etc…)

    Yoann

    Forum: Plugins
    In reply to: [HAL] Erreur pagination
    Thread Starter yoannspace

    (@yoannspace)

    Bonjour,
    Je laisse le patch ici au cas où ça vous intéresse : https://gist.github.com/yoannspace/adcdc04228412de4cfc46905512b5600
    Yoann

    Forum: Plugins
    In reply to: [HAL] Erreur pagination
    Thread Starter yoannspace

    (@yoannspace)

    Je peux vous envoyer un patch si vous voulez, ça peut être plus simple pour que vous puissiez le regarder et l’intégrer si c’est intéressant.
    Je l’ai intégré dans votre code pour notre site en attendant une nouvelle version.

    Cordialement,
    Yoann

Viewing 6 replies - 1 through 6 (of 6 total)