Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Propose relationship link with firstname/lastname keys #1689

Open
michelmno opened this issue Jan 4, 2024 · 4 comments
Open

Comments

@michelmno
Copy link
Contributor

Today with version 7.1b (branch fallback cid 7ab19e8)
the relationship link is generated with indexes as per example
http://localhost/cgi-bin/gwtst?b=testbasefusionnee&lang=en&em=R&et=A&i=5167&im=0&ei=4802&long=on
Capture d’écran du 2024-01-04 19-27-30

while in previous 7.0 (branch master cid 71bf38f)
the relationship link was with firstname/lastname keys
http://localhost/cgi-bin/gw?b=basefusionnee&lang=en;with_logo=yes&select=input&m=NG&em=R&et=A&fn=claire&sn=garnesson&en=fadin&ep=louis%20emile&image=off&long=on&
That has the advantage to be copy/paste elsewhere and not to be changed if DB updated.
Capture d’écran du 2024-01-04 19-28-02

I suggest to add a new button in buttons_rel.txt to generate a link with firstname/lastname keys
from current link with indexes. Link that can be copied by user.

@hgouraud
Copy link
Collaborator

hgouraud commented Jan 4, 2024

Adding opt=no_index on any url will return the url with all ix= replaced by appropriate px= &nx= &ocx=

It might be a good idea to add a button to that effect in home.txt (?? @a2)

@a2line
Copy link
Collaborator

a2line commented Jan 4, 2024

It might indeed if it was working as described.

@michelmno
Copy link
Contributor Author

Adding opt=no_index on any url will return the url with all ix= replaced by appropriate px= &nx= &ocx=

I just tried adding opt=no_index to last url link and sending request, there is no change to the link
http://localhost/cgi-bin/gwtst?b=testbasefusionnee&lang=en&&em=R&et=A&i=5167&ei=4802&opt=no_index
Capture d’écran du 2024-01-05 05-19-40

just to be sure, I tried adding same opt string in initial individual page, before relationship request do not help either.

@michelmno
Copy link
Contributor Author

I just found that the opt=no_index is effective only if the related plugin is specified in gwf as suggested in wiki
https://geneweb.tuxfamily.org/wiki/plugins

... the .gwf parameters file must specify the list of plugins to activate for this base
plugins=plugin1,plugin2,plugin3

So my updated use case

  • gwd started with all built plugins
    ./gwd -bd /home/michel/work/geneweb/local/bases -plugins -unsafe /home/michel/work/geneweb/local/gw.b779ee5cf/plugins
  • gwf set with at least plugins=no_index
  • same relationship url with index
    http://localhost/cgi-bin/gwtst?b=testbasefusionnee&lang=en&em=R&et=A&i=5731&ei=5374
  • if manually adding opt=no_index, then new generated page
    http://localhost/cgi-bin/gwtst?b=testbasefusionnee&lang=en&em=R&et=A&i=5731&ei=5374&opt=no_index
    Capture d’écran du 2024-03-27 18-27-05
  • this is the expected new generated url.
    http://localhost/cgi-bin/gwtst?b=testbasefusionnee&lang=en&em=R&et=A&ep=louis+emile&en=fadin&p=claire&n=garnesson

So as suggested we should add a button (in buttons_rel.txt ?) to copy this no_index link to the clipboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants