[Wikidata-bugs] [Maniphest] [Closed] T178455: Disambiguation for Wikidata search from tags terms in wordpress

2017-11-17 Thread Zeko
Zeko closed this task as "Resolved".
TASK DETAILhttps://phabricator.wikimedia.org/T178455EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Zppix, Pigsonthewing, Aklapper, Tramullas, abian, Lydia_Pintscher, Esh77, DanBri, Framawiki, Mbch331, Samwilson, Philipjohn21, Zeko, Lahi, GoranSMilovanovic, Soteriaspace, Jayprakash12345, JakeTheDeveloper, QZanden, Zoranzoki21, Psychoslave, Wikidata-bugs, aude, TheDJ___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Unblock] T138371: WordPress plugin to associate tags with Wikidata IDs

2017-11-17 Thread Zeko
Zeko closed subtask T178455: Disambiguation for Wikidata search from tags terms in wordpress as "Resolved".
TASK DETAILhttps://phabricator.wikimedia.org/T138371EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Philipjohn21, Liuxinyu970226, Samwilson, Mbch331, Framawiki, DanBri, Esh77, Lydia_Pintscher, abian, Tramullas, Zeko, Aklapper, Pigsonthewing, Zppix, Lahi, GoranSMilovanovic, Soteriaspace, Jayprakash12345, JakeTheDeveloper, QZanden, Zoranzoki21, Psychoslave, Wikidata-bugs, aude, TheDJ___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T178455: Disambiguation for Wikidata search from tags terms in wordpress

2017-11-10 Thread Zeko
Zeko added a comment.
Hello! Its working now and I'm cleaning up all the code

Now, the association will be made at the edit taxonomy screen, as I made it work for both tags and categories, also I changed the code added to 

tag list edit screen -> (also I added a field so its possible to associate taxonomy term with wikidata Id while creating it)
F10708122: image.png

F10708140: image.png

F10708148: image.png

Code added to head:
F10708164: image.png

As well, I'd like to know if you want me to leave that "common" metadata to be added at html head / post_meta or not, so I can definitely remove the plugin settings page.TASK DETAILhttps://phabricator.wikimedia.org/T178455EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Zppix, Pigsonthewing, Aklapper, Tramullas, abian, Lydia_Pintscher, Esh77, DanBri, Framawiki, Mbch331, Samwilson, Philipjohn21, Zeko, Lahi, GoranSMilovanovic, Soteriaspace, Jayprakash12345, JakeTheDeveloper, QZanden, Zoranzoki21, Psychoslave, Wikidata-bugs, aude, TheDJ___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T178455: Disambiguation for Wikidata search from tags terms in wordpress

2017-11-08 Thread Zeko
Zeko added a comment.
Well, some things working, look at this:

Tag edit screen: added field for wikidata id, also disambiguation will follow the same process
F10674552: image.png

when clicking on the search button:
F10674557: image.png
--->
F10674563: image.png

now time to save it at options and to update term metadata =)TASK DETAILhttps://phabricator.wikimedia.org/T178455EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Zppix, Pigsonthewing, Aklapper, Tramullas, abian, Lydia_Pintscher, Esh77, DanBri, Framawiki, Mbch331, Samwilson, Philipjohn21, Zeko, Lahi, GoranSMilovanovic, Soteriaspace, Jayprakash12345, JakeTheDeveloper, QZanden, Zoranzoki21, Psychoslave, Wikidata-bugs, aude, TheDJ___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T178455: Disambiguation for Wikidata search from tags terms in wordpress

2017-11-08 Thread Zeko
Zeko added a comment.
Hello again!

Working now on that, adding our plugin options to tag/category edit screen:

F10673115: image.png

To update wikidata value I think we can add a "button" to the row actions:

F10673124: image.png

For the moment, I display the tag name, but wikidata id will go there! =)TASK DETAILhttps://phabricator.wikimedia.org/T178455EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Zppix, Pigsonthewing, Aklapper, Tramullas, abian, Lydia_Pintscher, Esh77, DanBri, Framawiki, Mbch331, Samwilson, Philipjohn21, Zeko, Lahi, GoranSMilovanovic, Soteriaspace, Jayprakash12345, JakeTheDeveloper, QZanden, Zoranzoki21, Psychoslave, Wikidata-bugs, aude, TheDJ___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Reopened] T178455: Disambiguation for Wikidata search from tags terms in wordpress

2017-11-07 Thread Zeko
Zeko reopened this task as "Open".Zeko added a comment.

In T178455#3742447, @Philipjohn21 wrote:

The set up page feels unnecessary for a number of reasons;
Using the term meta API to add fields to the term edit screen is the correct way to add this kind of feature in WordPress
The setup screen really just duplicates that functionality, with no real benefit when the user can easily use the term edit screen instead




I think that is what I really needed to know, it really helps, thank you.


That setup page will quickly get out of hand. Any site with more than a small number of terms will find that page either incredibly slow to load, or it will completely break under the weight of terms
It's adding a huge amount of bloat by including Bootstrap and not following core WordPress design principles


Shame on me


In https://phabricator.wikimedia.org/T138371 you mentioned that "Of course, if option is not activated, plugin will delete all data it added." - I'm not entirely sure of the meaning but I would encourage any deletion of data to be explicitly chosen by the user with a double confirmation to avoid accidentally wiping out all the effort of adding Wikidata IDs


Not sure of that! for the moment, I store that as plugin options, -what I now see it's a terrible Idea- so it just deleted them from the database as metadata associated to each term. So if option was unchecked, it simply deleted the metadata the plugin added.


Looks like you've used a template to create the initial plugin framework - those often add lots of unnecessary files so I'd encourage you to do a cleanup when you're nearing completion to remove anything that isn't strictly necessary and also to ensure the comments are all relevant :)


As I have been developing for wordpress I've been realizing that =/ I will clean that mess up, I promise!

Give me a shout when you're nearing completion and I'll do a full code review too. Looks like there's still a bunch of debugging going on in there so I'll leave you to that :)

Sure! =)


In T178455#3742450, @Philipjohn21 wrote:
One thing that might work instead of the options page to help folks is a "suggestion" screen where the plugin shows one tag at a time and returns a list of wikidata items that might be relevant. The user could choose to associate one of them, or skip to the next tag.

This would be a nice way to work through each tag but at a comfortable pace over time and in a way that will scale well.


Don't really how to do this, but I will try to.

That really helped, thank you! =)TASK DETAILhttps://phabricator.wikimedia.org/T178455EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Zppix, Pigsonthewing, Aklapper, Tramullas, abian, Lydia_Pintscher, Esh77, DanBri, Framawiki, Mbch331, Samwilson, Philipjohn21, Zeko, Lahi, GoranSMilovanovic, Soteriaspace, Jayprakash12345, JakeTheDeveloper, QZanden, Zoranzoki21, Psychoslave, Wikidata-bugs, aude, TheDJ___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Block] T138371: WordPress plugin to associate tags with Wikidata IDs

2017-11-07 Thread Zeko
Zeko reopened subtask T178455: Disambiguation for Wikidata search from tags terms in wordpress as "Open".
TASK DETAILhttps://phabricator.wikimedia.org/T138371EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Philipjohn21, Liuxinyu970226, Samwilson, Mbch331, Framawiki, DanBri, Esh77, Lydia_Pintscher, abian, Tramullas, Zeko, Aklapper, Pigsonthewing, Zppix, Lahi, GoranSMilovanovic, Soteriaspace, Jayprakash12345, JakeTheDeveloper, QZanden, Zoranzoki21, Psychoslave, Wikidata-bugs, aude, TheDJ___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Closed] T178455: Disambiguation for Wikidata search from tags terms in wordpress

2017-11-07 Thread Zeko
Zeko closed this task as "Resolved".
TASK DETAILhttps://phabricator.wikimedia.org/T178455EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Zppix, Pigsonthewing, Aklapper, Tramullas, abian, Lydia_Pintscher, Esh77, DanBri, Framawiki, Mbch331, Samwilson, Liuxinyu970226, Philipjohn21, Zeko, Lahi, GoranSMilovanovic, Soteriaspace, Jayprakash12345, JakeTheDeveloper, QZanden, Zoranzoki21, Psychoslave, Wikidata-bugs, aude, TheDJ___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Unblock] T138371: WordPress plugin to associate tags with Wikidata IDs

2017-11-07 Thread Zeko
Zeko closed subtask T178455: Disambiguation for Wikidata search from tags terms in wordpress as "Resolved".
TASK DETAILhttps://phabricator.wikimedia.org/T138371EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Philipjohn21, Liuxinyu970226, Samwilson, Mbch331, Framawiki, DanBri, Esh77, Lydia_Pintscher, abian, Tramullas, Zeko, Aklapper, Pigsonthewing, Zppix, Lahi, GoranSMilovanovic, Soteriaspace, Jayprakash12345, JakeTheDeveloper, QZanden, Zoranzoki21, Psychoslave, Wikidata-bugs, aude, TheDJ___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T138371: WordPress plugin to associate tags with Wikidata IDs

2017-11-07 Thread Zeko
Zeko added a comment.
Hello! Here again to update the progress:

First, I added some "ordinary" metadata options to be added at html head, just if the user wants them to, for the moment they're just a few, but I can add more as you find them relevant.
I also included the option to add that metadata to wp posts.
F10655851: image.png

(metadata at hmtl head)
F10655856: image.png

(and metadata at posts -at wp_postmeta column in wp database-)
F10655891: image.png

Of course, if option is not activated, plugin will delete all data it added.

Now, with our wikidata ids =)

Added two options, first one  to change tag archive title at tag pages for a link to wikidata term, and other to add the wikidata link to term metadata.
F10656162: image.png

First, the link: that will only be active if user wants to and if the tag has an associated wikidata id
F10655985: image.png

Second, adding wikidata link to tag metadata: (at wp_termmeta in wp database)
F10656016: image.png

I will be happy to hear your thoughts and any opinion or suggestion =DTASK DETAILhttps://phabricator.wikimedia.org/T138371EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Philipjohn21, Liuxinyu970226, Samwilson, Mbch331, Framawiki, DanBri, Esh77, Lydia_Pintscher, abian, Tramullas, Zeko, Aklapper, Pigsonthewing, Zppix, Lahi, GoranSMilovanovic, Soteriaspace, Jayprakash12345, JakeTheDeveloper, QZanden, Zoranzoki21, Psychoslave, Wikidata-bugs, aude, TheDJ___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T178455: Disambiguation for Wikidata search from tags terms in wordpress

2017-10-26 Thread Zeko
Zeko added a comment.



In T178455#3702995, @Pigsonthewing wrote:

In T178455#3702973, @Zeko wrote:





As said before, now in plugin setup page there is a list of the tags used in the blog:

F10381458: image.png

That all looks good. Maybe in your first image, you could display the Wikidata label & description, at least as a tool-tip?


Now, when mouse is over the input: 
F10444210: image.png

I also added links to tag pages in the tag names.TASK DETAILhttps://phabricator.wikimedia.org/T178455EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Zppix, Pigsonthewing, Aklapper, Tramullas, abian, Lydia_Pintscher, Esh77, DanBri, Framawiki, Mbch331, Samwilson, Liuxinyu970226, Philipjohn21, Zeko, Lahi, GoranSMilovanovic, QZanden, Psychoslave, Wikidata-bugs, aude___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T178890: tags addition to specific pages

2017-10-26 Thread Zeko
Zeko added a comment.
Hello, just wanted to keep you informed =)

Now I'm able to add metadata to tag pages:
F10444125: image.png
Just metadata for that tag name will be added.

And to posts:
F10444136: image.png
Where metadata for every tag in the post will be added.

I'd like you to specify what metadata, names and properties you'd like to add.TASK DETAILhttps://phabricator.wikimedia.org/T178890EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Zppix, Pigsonthewing, Aklapper, Tramullas, abian, Lydia_Pintscher, Esh77, DanBri, Framawiki, Mbch331, Samwilson, Liuxinyu970226, Philipjohn21, Zeko, Lahi, GoranSMilovanovic, QZanden, Psychoslave, Wikidata-bugs, aude___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Created] T178890: tags addition to specific pages

2017-10-24 Thread Zeko
Zeko created this task.Zeko added projects: Wikimania-Hackathon-2016, Wikidata.
TASK DESCRIPTIONI am currently working on this and I have some things to say / ask:


add_term_meta() actually adds metadata for the selected term, but as a "property" metadata for that term, so, if I have a tag called "london" and I want to add a description, I can get it done by add_term_data, and whenever I want to have it, just have to take: get_term('london')->description, in the same way I could insert a wikidata url to the tag object, but this would not actually update the html meta tags in the website header.
Wordpress meta tags page explains this briefly and explains why are they not added automatically in wordpress and how to add them manually... by editing header.php theme file...  =(
In first place, I dont feel that any user would accept a plugin that changes his header.php or forces him to use a pre-edited for the plugin purposes one (I would not). I just need to add some  labels.
In second place, I need to change those  labels depending on the page and the tags or categories displayed on it, so a unique header.php will not fit in.


Saying that, I see two approaches (that are not final or perfect)


Somehow, someway, edit a field on the headers.php to fill it with the proper meta labels.
maybe this way-> hooking to wp_head and 'echoing' the proper meta labels.


And this is how I am doing it.

I hook a function to "wp_head" hook, that is triggered when header.php is loaded (every time a page is) , I load the tag list and the options array (where our associations for every tag are) and  check for the page that is being loaded with "is_page". The Idea is to check if the page link coincides with the tag page link - get_tag_link($tag->term_id) does the magic - and if there is an option set for our tag name in plugin options. If ok, will echo the  label into the header.

This way I don't touch user's header.php, making this less intrussive.

For the moment something is not ok, I don't know if is the page check or if the options list is not loaded properly, so the meta tags do not coincide with the page, but they are added to the header:

F10410607: image.png
(meta property are tag_names, just a test to check if they are added to the header)

I'd like to add, that once this is done, adding a form to include other common meta labels (like author, contact, copyright...) is not a huge effort, just in case you want to add that functionality to the plugin.

Of course, if somebody thinks there is any problem on implementing the metadata addition this way, or knows a better way to do it, I will be happy to hear it =)

Thank you!TASK DETAILhttps://phabricator.wikimedia.org/T178890EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Zppix, Pigsonthewing, Aklapper, Tramullas, abian, Lydia_Pintscher, Esh77, DanBri, Framawiki, Mbch331, Samwilson, Liuxinyu970226, Philipjohn21, Zeko, GoranSMilovanovic, QZanden, Psychoslave, Wikidata-bugs, aude___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Block] T138371: WordPress plugin to associate tags with Wikidata IDs

2017-10-24 Thread Zeko
Zeko created subtask T178890:  tags addition to specific pages.
TASK DETAILhttps://phabricator.wikimedia.org/T138371EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Philipjohn21, Liuxinyu970226, Samwilson, Mbch331, Framawiki, DanBri, Esh77, Lydia_Pintscher, abian, Tramullas, Zeko, Aklapper, Pigsonthewing, Zppix, GoranSMilovanovic, QZanden, Psychoslave, Wikidata-bugs, aude___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T178455: Disambiguation for Wikidata search from tags terms in wordpress

2017-10-23 Thread Zeko
Zeko added a comment.
Sure, and I find it better to show it like that (as a tooltip) so that there is not too much info displayed togetherTASK DETAILhttps://phabricator.wikimedia.org/T178455EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Zppix, Pigsonthewing, Aklapper, Tramullas, abian, Lydia_Pintscher, Esh77, DanBri, Framawiki, Mbch331, Samwilson, Liuxinyu970226, Philipjohn21, Zeko, GoranSMilovanovic, QZanden, Psychoslave, Wikidata-bugs, aude___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T178455: Disambiguation for Wikidata search from tags terms in wordpress

2017-10-23 Thread Zeko
Zeko added a comment.
Hello!

Now its possible to associate tags with wikidata ids and save that assoc to plugin setup.
As said before, now in plugin setup page there is a list of the tags used in the blog:

F10381458: image.png

As we discussed, I added an ajax modal window that shows the wikidata results of the tag term search:

F10381474: image.png

In that modal window, there is some info about the id, and a link to the wikidata item, if we click on a list elem, the wikidata id will be added to the related input field:

F10381480: image.pngTASK DETAILhttps://phabricator.wikimedia.org/T178455EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Zppix, Pigsonthewing, Aklapper, Tramullas, abian, Lydia_Pintscher, Esh77, DanBri, Framawiki, Mbch331, Samwilson, Liuxinyu970226, Philipjohn21, Zeko, GoranSMilovanovic, QZanden, Psychoslave, Wikidata-bugs, aude___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T178455: Disambiguation for Wikidata search from tags terms in wordpress

2017-10-18 Thread Zeko
Zeko added a comment.
F10293586: image.png

Created a setup page and added a list with a tag list (please ignore the tag names), in each one its possible to add a wiki id manually (won't be saved yet) or just press the "search" button that later on will call a _javascript_ function that will open a dialog with a list of results to select.TASK DETAILhttps://phabricator.wikimedia.org/T178455EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Zppix, Pigsonthewing, Aklapper, Tramullas, abian, Lydia_Pintscher, Esh77, DanBri, Framawiki, Mbch331, Samwilson, Liuxinyu970226, Philipjohn21, Zeko, GoranSMilovanovic, QZanden, Psychoslave, Wikidata-bugs, aude___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Created] T178455: Disambiguation for Wikidata search from tags terms in wordpress

2017-10-18 Thread Zeko
Zeko created this task.Zeko added projects: Wikimania-Hackathon-2016, Wikidata.
TASK DESCRIPTION
To add a list of the tags of the blog in the plugin setup page
Add a form to each tag in that setup page in which the user can add manually a wikidata ID
Develop a _javascript_ function to automatically search for the tag term in wikidata and return a list of wikidata items (and their related wikidata ID) to let the user choose the most accurate to the tag he is using.
Save all in Wordpress setup


Working on this right now =)

https://github.com/zeko3991/Wikidata-referencesTASK DETAILhttps://phabricator.wikimedia.org/T178455EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Zppix, Pigsonthewing, Aklapper, Tramullas, abian, Lydia_Pintscher, Esh77, DanBri, Framawiki, Mbch331, Samwilson, Liuxinyu970226, Philipjohn21, Zeko, GoranSMilovanovic, QZanden, Psychoslave, Wikidata-bugs, aude___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Block] T138371: WordPress plugin to associate tags with Wikidata IDs

2017-10-18 Thread Zeko
Zeko created subtask T178455: Disambiguation for Wikidata search from tags terms in wordpress.
TASK DETAILhttps://phabricator.wikimedia.org/T138371EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Philipjohn21, Liuxinyu970226, Samwilson, Mbch331, Framawiki, DanBri, Esh77, Lydia_Pintscher, abian, Tramullas, Zeko, Aklapper, Pigsonthewing, Zppix, GoranSMilovanovic, QZanden, Psychoslave, Wikidata-bugs, aude___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Claimed] T138371: WordPress plugin to associate tags with Wikidata IDs

2017-10-18 Thread Zeko
Zeko claimed this task.
TASK DETAILhttps://phabricator.wikimedia.org/T138371EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Philipjohn21, Liuxinyu970226, Samwilson, Mbch331, Framawiki, DanBri, Esh77, Lydia_Pintscher, abian, Tramullas, Zeko, Aklapper, Pigsonthewing, Zppix, GoranSMilovanovic, QZanden, Psychoslave, Wikidata-bugs, aude___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T138371: WordPress plugin to associate tags with Wikidata IDs

2017-10-18 Thread Zeko
Zeko added a comment.
Include a field on the term edit screen (e.g. Posts > Tags > [Tag] > Edit). There is a term meta API for this in WordPress (see add_term_meta())

This is really nice to know and will save a lot of work =)

My feeling is that many site owners would find that to be undesirable - taking people away from their site to a page that might not necessarily add more to their experience. The average user is unlikely to care much for that wikidata page :)

That is something that worried me off, that could be a little intrussive

I'm not sure we can avoid the manual effort that requires of the user without interrupting the save post flow, which could be frustrating.

But what if the user has already set the associations? He can just focus on his post and forget them, that is the point of the setup page, however we could add some kind of setup during the edition of posts for new tags. Anyway I don't know how frequent is to add new tags ior how many of them can be added in a row.

The code up to this time is at https://github.com/zeko3991/Wikidata-references that is NOT the official repository.  Later on I will upload to an official repository of the University of Zaragoza.

Don't freak out if you see strange things in the code, I'm quite new at wordpress developing and still have to try trivial things to see how it works =) everything will be clean at the end.

Also I'd want to insist about the license topic I asked before.

Thank you!TASK DETAILhttps://phabricator.wikimedia.org/T138371EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Philipjohn21, Liuxinyu970226, Samwilson, Mbch331, Framawiki, DanBri, Esh77, Lydia_Pintscher, abian, Tramullas, Zeko, Aklapper, Pigsonthewing, Zppix, GoranSMilovanovic, QZanden, Psychoslave, Wikidata-bugs, aude___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T138371: WordPress plugin to associate tags with Wikidata IDs

2017-10-17 Thread Zeko
Zeko added a comment.



In T138371#3687264, @Pigsonthewing wrote:
I am happy to test a prototype, when you are ready.


Sure =) asap

Quick but non trivial question here: I am considering using external libraries for some things, as I intend to release the plugin under a GPL, can somebody tell me what kind of problems can we have if I use libraries as bootstrap??

Here are fontawesome and bootstrap licenses:


https://v4-alpha.getbootstrap.com/about/license/
http://fontawesome.io/license/


apparently there is no problem in using them (even for commercial purposes) but I am not sure if it could get in conflict with wikimedia policies.

thank you!TASK DETAILhttps://phabricator.wikimedia.org/T138371EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Liuxinyu970226, Samwilson, Mbch331, Framawiki, DanBri, Esh77, Lydia_Pintscher, abian, Tramullas, Zeko, Aklapper, Pigsonthewing, Zppix, GoranSMilovanovic, QZanden, Psychoslave, Wikidata-bugs, aude___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T138371: WordPress plugin to associate tags with Wikidata IDs

2017-10-16 Thread Zeko
Zeko added a comment.
Hello and sorry for the late reply.

Been working on this lately and I have some questions and some suggestions.
As said by @DanBri I understand this as a topic characterizing of the page (or tag), and an linker to the associated wikidata item and before discussing how to make this (I like the ideas shown here but I think we should define specifically how to implement that) we should talk about how to associate tags or categories to wikidata items.

As @Pigsonthewing said we could add a dialog to make the user make the assoc in a dialog page related to the tag or category (if I understood that correctly) but (I repeat, if I understood it correctly) it could be really tedious for the user to make them one by one. So in a first approach I find logical to make that association, so that the user can handle all of them from one place: in the plugin setup page. But there may be some problems in how to make that association.


We could let the user just add the wiki item id into a textfield and "poof": magic, done. Later we just have to add the assoc to the meta of the page and done. (After we discuss exactly and specifically how to do it)
We could add a semi-automatic way to make the associations. I mean, all tags are a specific and relevant "keyword" or "keywords" and using the wikidata api we can get a list of wikidata items whose title are related to that "keyword" (or the tag name if you like it better) so we can make the user just disambiguate the term. For example: https://www.wikidata.org/w/api.php?action="">  would get us a json with some simple but relevant info about wikidata items related to the search of the term "car" among which the user could decide for the most suitable for his tag.
If we do this, I am not sure we need a dialog page, we could make that with ajax or even just _javascript_, just showing a little pop-up dialog next to the "manual field" so the user selects from there to disambiguate the assoc.
Anyway I would let both options, so if the automatic can't find a proper item for the user (very long tag name, or searchs with very large disambiguation lists) he can just go to wikidata, look for the id he wants to assoc to, and paste it in the textfield.


In addition to this,  we could make this also for posts, we though about a metabox in the post editing area in which we could add new associations, and even more, add formatted references (ie: harvard or ieee format) to the post text but that will be up to you =)

waiting for your opinion  =) Thank you!TASK DETAILhttps://phabricator.wikimedia.org/T138371EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: ZekoCc: Samwilson, Mbch331, Framawiki, DanBri, Esh77, Lydia_Pintscher, abian, Tramullas, Zeko, Aklapper, Pigsonthewing, Zppix, GoranSMilovanovic, QZanden, Psychoslave, Wikidata-bugs, aude___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs