Whilst small files can be uploaded to forum posts, if you have a custom theme or module to contribute please add it on the "Add-ons" page.

TOPIC: Custom Module: Shared Places

Custom Module: Shared Places 7 months 4 days ago #1

  • ric2015
  • ric2015's Avatar
  • Offline
  • New
  • Posts: 74
Shared places have been discussed several times in the past, e.g. in the forum; in issues: [1], [2]; and probably elsewhere ...

I have just finished a prototype version of a custom module supporting shared places, available here: https://cissee.de/.

Current features:
  • Shared places are handled as top-level _LOC records, containing coordinates, notes, and media.
  • Shared places may be edited and viewed via an additional main menu.
  • On the (extended) facts and events tab, shared place data is displayed in addition to direct place data: You may configure whether to assign shared places via the place name itself, or via xrefs (the latter option is technically cleaner but there is no edit support for these xrefs yet, and a place requires a name anyway).
  • All shared place data is fully included in the gedcom exported by webtrees (and may also be imported via gedcom), based on a gedcom extension (Gedcom 5.5EL). If you have a gedcom file containing _LOC data exported from another program (e.g. Ahnenblatt, TNG apparently, others?), this should also work.
  • I have included a modified OpenStreetMap module which uses location data from shared places. The Google Maps module could be adjusted similarly.



Further work:
  • Support other _LOC fields.
  • Improve the edit controls. I'm not sure how much effort to put into this, considering that all edit functionality is redesigned in webtrees 2.x.
  • Adjust the Gov4webtrees module: There is no need to store GOV Ids separately any more. Even the historical place hierarchies may be modelled via _LOC records - the specification allows this.
  • Migrate Google Maps Module data to shared places?
  • Your feature requests here ...
Some caveats:
  • This is based on a gedcom extension, namely Gedcom 5.5EL (link1, link2), and therefore produces non-standard gedcom data. Not all external programs will be able to handle the additional records properly.
  • As this is work in progress, you should probably backup your tree more often than usually if you plan to use this extensively. The fields that are already supported are very unlikely to change though - I don't see any risk in using them right away.
Let me know if and how this works for you!
Richard

webtrees 1.7.9 at cissee.de/webtrees
Custom modules (Extended Relationships, Gov4Webtrees, Shared Places) available at cissee.de
The administrator has disabled public write access.

Custom Module: Shared Places 2 weeks 23 hours ago #2

  • Pierre
  • Pierre's Avatar
  • Offline
  • New
  • Posts: 6
Hi Richard,
I have used your openstreetmap module "hooked" smoothly on my local webtree with a wamp server. No problem. But the problem is with the file "FunctionsPrintFacts_179.php" after upload the unzipped modules to my distant webtrees/module_v3 with Filezilla standard outputs.

After upload the file is badly transformed. I explain. before upload : normal Notepad++ edited structure. After upload, all the lines are "gathered" on a long single line on top.
Then, it becomes impossible to acces to "admin_modules.php" with the administration/modules tab : (white screen endless). I attach the syntax error that i could read with wamp server after trying the bugged uploaded file on local.

May be you have idea of how I could fix this problem.

Regards
Attachments:
Pierre. Ver 1.7.9
The administrator has disabled public write access.

Custom Module: Shared Places 1 week 6 days ago #3

  • ric2015
  • ric2015's Avatar
  • Offline
  • New
  • Posts: 74
Pierre wrote:
After upload, all the lines are "gathered" on a long single line on top.

We were able to resolve this issue. For future reference: This was caused by using 'ASCII' as ftp transfer type. Unfortunately, FileZilla by default doesn't use the transfer type 'binary', see e.g. here.

I will also convert all files to 'DOS' (with regard to line breaks) in subsequent releases, which should avoid this issue when 'ASCII' transfer type is used.
Richard

webtrees 1.7.9 at cissee.de/webtrees
Custom modules (Extended Relationships, Gov4Webtrees, Shared Places) available at cissee.de
The administrator has disabled public write access.
Moderators: makitso
Powered by Kunena Forum