tematres / PopTerms

PopTerms is a simple web application that allows to use controlled vocabularies managed by TemaTres and integrate it with any web form or web application. PopTerms do not requires TemaTres, You dont need to have your own TemaTres installation. You can use any vocabulary available in TemaTres. PopTerms use the terminological web services provided by TemaTres.
http://www.vocabularyserver.com/popterms/
1 stars 0 forks source link

code indentation, moving server at the root, client-example in a subdir... #1

Open gautiermichelin opened 8 years ago

gautiermichelin commented 8 years ago

... and a start of work on multilingual direct selection from the popup.

Hi Diego,

I've jumped largely inside PopTerms and had to make a few moves for a better outsider comprehension : I moved the server directory at the root, moving the client directory in a subdir (client-example) and a automated code indentation (with IntelliJ Idea IDE, I have an education license and it's really easier to jump in with a code cleanup).

I didn't want to make a proper pull request directly. Could you just make a git clone from https://github.com/gautiermichelin/popterms/tree/server-at-root and give me your opinion back ?

Best regards,

Gautier

tematres commented 8 years ago

Hi Gautier!! I think your re-code is better of the previous code!! :) Can I adopt it in the master? what is $CFG["WRITES_BACK"] ?

thank you!! :)

tematres commented 8 years ago

Do you know Omeka? May be we can do a tiny plug in to integrate popterms to Omeka. I'm new in Zend :/

gautiermichelin commented 8 years ago

Hello,

Ca, ça fait plaisir :-) Naturally, you could adopt this code. I'm cleaning one thing or two in the next days and you'll have a Pull Request for this code for your Popterms repository.

$CFG["WRITES_BACK"] allows to fetch back either label, code or both.

For user relying only on labels, that don't change anything if you declare "label". If you choose to fetch back code, the code is sent back to the opening window. That is necessary for a project of mine as code should be the same for a term, whatever its language (using an adaptation of HISCO thesaurus). Among other use case, it allows to fetch back on demand labels from Tematres.

You can have a sneak peek on http://eured.univ-lemans.fr/popterms/client-example/index.fr.html# (only on the french version of the page) : on top of the screen you have a selector.

If you select or type OCC5 for example with Popterms, a little bit of jQuery ajax fetches back "Service workers" for display.

Bye,

Gautier

De: diego ferreyra notifications@github.com Date : 9 mai 2016 20:07 Pour: tematres/popterms popterms@noreply.github.com Copie à: GautierMichelin gautier.michelin@gmail.com, Author author@noreply.github.com Sujet: [tematres/popterms] code indentation, moving server at the root, client-example in a subdir... (#1)

Hi Gautier!! I think your re-code is better of the previous code!! :) Can I adopt it in the master? what is $CFG["WRITES_BACK"] ?

thank you!! :)

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/tematres/popterms/issues/1#issuecomment-217942236

gautiermichelin commented 8 years ago

Hi back,

Yes I know omeka a bit, but I'm not very fond of it for my own projects, I can't find inside the flexibility with the data structure I'm used to with CollectiveAccess :-) You can have a look at http://champeaux-polonia.montmorency-tourisme.fr/public/ to see the kind of things I'm playing with.

A plugin for omeka could interest me but not before july/august, I don't have much free time for that now.

Best regards,

Gautier

diego ferreyra mailto:notifications@github.com 9 mai 2016 20:08

Do you know Omeka? May be we can do a tiny plug in to integrate popterms to Omeka. I'm new in Zend :/

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/tematres/popterms/issues/1#issuecomment-217942524