Git Product home page Git Product logo

huhwt-cce's Introduction

webtrees module huhwt-clippings_cart_enhanced

License: GPL v3 webtrees major version

Latest Release Downloads

This webtrees custom module replaces the original 'Clippings Cart' module. It offers additional possibilities to add records to the clippings cart and owns beside the possibility to export GEDCOM information for visualizing the records in the clippings cart using a diagram.

This custom module is mainly based on the hh_clippings_cart_enhanced by Hermann Hartenthaler (https://github.com/hartenthaler/hh_clippings_cart_enhanced) and is only executable with webtrees-2.1. For webtrees-2.0 use huhwt-cce20.

For features and background of this module please have a look at the above given link.

Attention:

  This module requires to be operated in a PHP 8.2-onward system 
  environment due to some features not have been available before.

  Systems with PHP 8.1 environment have to use Release 2.1.17.0.

Contents

This Readme contains the following main sections

Description

Functions and actions for records are described in detail in the Hartenthaler module description.

This module covers all clipping actions covered in the Webtrees standard. In addition, records from 'Family List' and 'Individual List' as well as persons and families from the 'Shared Notes List' can also be taken over. huhwt-xtv (tree view extended) and huhwt-mtv (multi-tree view for admin Action “Check duplicates”) can now also transfer to the clippings cart.

The clipping actions carried out are displayed as an additional overview. Each clipping action done by CCE will be identified (example: INDI~I1 -> Individual I1 Action:'Only this record' - INDI_ANCESTOR_FAMILIES~I1 Action: 'This Person, his ancestors and their families'). You can filter the collected entries according to these actions. Each of these actions can be undone individually.

The cart's content can be stored as files on Server-Side (file location is defined by Tree-Name and User-ID, you may choose your own name). Saved files may be reloaded and added to the actual cart's content.

An action initiated by the user then takes place on the records in the clippings cart, such as

  • the export to a GEDCOM zip file, as in the actual clippings cart module
  • the export to file in plain textual GEDCOM
  • the display of the objects in list form with the possibility of sorting and filtering this list (tbd)
  • the executed collection actions are displayed in a supplementary overview and can be selectively undone - 'Undo' option. However, there is no 'Redo' option (yet).
  • the transfer of the records in the clippings cart to new functions that visualize this data or analyze it statistically. Such a function could be for example a link-node-diagram like TAM (Topographic Attribute Map) or Lineage.

The [TAM] and [Lineage] functions are provided as their own independent modules.

This module can be operated in addition to the other 'Clippings Cart' functions or replace them completely.

CAVEAT: Clippings of other 'Clippings Cart' functions can't be precisely identified because of missing references, they will get a generic identifier.

Note: Since webtrees-2.1.18 the Family-/IndividualListModule are working properly again. Nevertheless there is a recommended modification in webtrees core module 'app/Module/IndividualListModule.php'. It's reasoned by a hard-coded overdefinition for the 'lists/surnames-table' in a vesta-Module ...

line 397 - old:

echo view('lists/surnames-table', [

line 397 - new ( this mod will give you an information on the count of names in the table in the table's header )

echo view('lists/surnames-tableCCE', [

Requirements

This module requires PHP 8.2 at least. This module requires webtrees version 2.1.18 at least. This module has the same general requirements as webtrees#system-requirements.

Installation

This section documents installation instructions for this module.

  1. Download the latest release. (By now: pre-release!).
  2. Unzip the package into your webtrees/modules_v4 directory of your web server.
  3. Occasionally rename the folder to huhwt-cce. It's recommended to remove the respective directory if it already exists.

Upgrade

To update simply replace the huhwt-cce files with the new ones from the latest release.

Translation

You can help to translate this module. It uses the po/mo system. You can contribute via a pull request (if you know how) or by e-mail. Updated translations will be included in the next release of this module.

There are now translations in English, German, Netherlands, Catalan, Spanish and Russian available.

  • Netherlands - many thanks to TheDutchJewel
  • Catalan, Spanish - many thanks to BernatBanyuls
  • Russian - many thanks to ol810

Support

Issues: you can report errors raising an issue in this GitHub repository.

Forum: general webtrees support can be found at the webtrees forum

Thank you

Special thanks to hartenthaler for providing this valuable module.

License

This module was originally derived from the Vesta clippings cart module.

  • Copyright (C) 2022/2023 huhwt - EW.H
  • Copyright (C) 2021 Hermann Hartenthaler
  • Copyright (C) 2021 Richard Cissée. All rights reserved.
  • Derived from webtrees - Copyright 2022 webtrees development team.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.


huhwt-cce's People

Contributors

huhwt avatar thedutchjewel avatar hartenthaler avatar

Stargazers

Oliver Surke avatar Thomas Kujawa avatar JPS avatar  avatar jprause avatar

Watchers

 avatar  avatar

Forkers

baskar-yahoo

huhwt-cce's Issues

Error in dev version when using Vesta modules

When opening the Vesta list menu "Individuals with Patriarchs" there is an error:

View file not found: …/app/../resources/views/lists/CCEsurnames-table.phtml …/app/View.php:260
#0 …/app/View.php(183): Fisharebest\Webtrees\View->getFilenameForView()
#1 …/app/View.php(278): Fisharebest\Webtrees\View->render()
#2 …/app/Helpers/functions.php(145): Fisharebest\Webtrees\View::make()
#3 …/modules_v4/vesta_extended_relationships/IndividualListModule_2_1_16.php(396): view()
#4 …/modules_v4/vesta_extended_relationships/ExtendedIndividualListRequestHandler.php(81): Cissee\Webtrees\Module\ExtendedRelationships\IndividualListModule_2_1_16->createResponse()

Fehlverhalten nach Timeout

Nachdem ich durch Timeout abgemeldet worden bin, habe ich mich neu angemeldet. Es wurde angezeigt, dass der Sammelbehälter nun leer ist. Dennoch wurde die Option zur Übertragung an die Tag-Verwaltung angezeigt. Nach dem Klick darauf kam die folgende Fehlermeldung:

Undefined array key 1 …/modules_v4/huhwt-tsm/TaggingServiceManager.php:407
#0 …/modules_v4/huhwt-tsm/TaggingServiceManager.php(407): Fisharebest\Webtrees\Webtrees::Fisharebest\Webtrees\{closure}()
#1 …/app/Http/RequestHandlers/ModuleAction.php(85): HuHwt\WebtreesMods\TaggingServiceManager\TaggingServiceManager->getTaggingServiceAction()
#2 …/app/Http/Middleware/RequestHandler.php(55): Fisharebest\Webtrees\Http\RequestHandlers\ModuleAction->handle()
#3 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\RequestHandler->process()

Hinzufügen von "allen verbundenen Personen"

Es kommt die Fehlermeldung

Class "HuHwt\WebtreesMods\ClippingsCartEnhanced\AllConnected" not found …/modules_v4/huhwt-cce/ClippingsCartEnhanced.php:1715
#0 …/modules_v4/huhwt-cce/ClippingsCartEnhanced.php(701): HuHwt\WebtreesMods\ClippingsCartEnhanced\ClippingsCartEnhanced->addAllLinked()

Sammelaktionen - Error

Die Idee mit den Sammelaktionen und die Möglichkeit diese rückgängig zu machen, ist super gut!

Ich habe eine Aktion ausgeführt und will diese nun löschen. dabei kommt eine Fehlermeldung:
Class "HuHwt\WebtreesMods\ClippingsCartEnhanced\RebuildCart" not found …/modules_v4/huhwt-cce/ClippingsCartEnhanced.php:1518

scandir(): Argument #1 ($directory) must be of type string, null given

scandir(): Argument #1 ($directory) must be of type string, null given …/modules_v4/huhwt-cce/ClippingsCartEnhancedModule.php:256
#0 …/modules_v4/huhwt-cce/ClippingsCartEnhancedModule.php(256): scandir()
#1 …/modules_v4/huhwt-cce/ClippingsCartEnhancedModule.php(125): HuHwt\WebtreesMods\ClippingsCartEnhanced\ClippingsCartEnhancedModule->doCartLoad()

Ich stand auf der Anzeige eines leeren Sammelbehälters. Dann wurde ich wegen Timeout ausgeloggt. Dann habe ich das Kopieren einer Datei in den Sammelbehälter angeklickt und die Fehlermeldung erschien, da ich nicht mehr angemeldet war.

Leeren Sammelbehälter in Datei speichern

Wenn der Sammelbehälter leer ist, wird denn noch das Speichern in eine Datei angeboten. Der Versuch zeigt dann eine Zeile mit weißem Hintergrund und dem Inhalt "NIX". Das ist verwirrend. Ich hätte erwartet, dass die Option ausgegraut oder unsichtbar ist.

unexpected token "<<" in ClippingsCartEnhanced.php:114

Fatal error in module: huhwt-cce
ParseError: syntax error, unexpected token "<<", expecting end of file in /mnt/web109/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/modules_v4/huhwt-cce/ClippingsCartEnhanced.php:114 Stack trace: #0 /mnt/web109/a3/99/51547399/htdocs/hermann/hartenthaler/php/webtrees/app/Services/ModuleService.php(735): include() #1

Hinzufügen einer dritten Visualisierungsart: GVExport

Es wäre schön die dritte Visualisierungsart neben TAM und LIN als Menüpunkt unter den Folgeaktionen zu ergänzen: GVExport. Die Übertragung von Daten ist nicht nötig, da GVExport selber die Daten aus dem Sammelbehälter holt. Die Option kann angeboten werden, wenn mindestens ein INDI Datensatz im Sammelbehälter liegt. Es muss "nur" das Diagramm GVExport aufgerufen werden.

Format der Sammelbehälter-Datei

Ich finde diese Funktion wirklich sehr hilfreich! Ich habe die Dateien auf dem Server im Ordner data auch gefunden. Aber wie ist das Format definiert und wie ist das einfachste Format?

Ich habe eine Komma-separierte Liste von XREFS, die ich gerne im Sammelbehälter sehen würde. Was geht ist:
{"cartActs":{"INDI~Test":true},"CAxrefs":{"I9550":"INDI~Test","I_192":"INDI~Test","I_69":"INDI~Test","I_70":"INDI~Test","I226":"INDI~Test","I245":"INDI~Test"}}

Geht es noch etwas einfacher? Ich habe hier einen webtrees-Bericht zu Berufen genutzt, der mir z.B. alle Orgelbauer in meinem Baum auflistet (mit aktivierter Vesta-Funktion zur Anzeige der XREF nach dem Namen). Die Tabelle habe ich nach Excel kopiert, Text in Spalten mit Trennzeichen "(", dann ein paar simple Excel-Aktionen und die Liste war fertig. Alles was man weglassen kann, würde es noch einfacher machen.
Dann eine vorhandene Cart-Speicherdatei runterkopiert, den Inhalt ausgetauscht, wieder auf den Server hochgeladen und in den Sammelbehälter importiert. Bingo!

2.1.4.1- Untranslated string

In version 2.1.4.1 an untranslated string Webtrees Standard action was added in Execute an action on records > Download records ...:
afbeelding

Fehler beim Aufruf von Lineage, wenn der Sammelkorb leer ist

Ich hatte etwas im Sammelkorb und bin auf die weiterführende Aktion gegangen. Als ich später zurück kam, war die Anmeldung abgelaufen, also neu angemeldet. Dann die Aktion "Lineage" ausgelöst und es kam die folgende Fehlermeldung, da inzwischen der Sammelkorb wg. Neuanmeldung geleert worden war.

Undefined array key "Individual" …/modules_v4/huhwt-cce/ClippingsCartEnhanced.php:1069
#0 …/modules_v4/huhwt-cce/ClippingsCartEnhanced.php(1069): Fisharebest\Webtrees\Webtrees::Fisharebest\Webtrees\{closure}()
#1 …/modules_v4/huhwt-cce/ClippingsCartEnhanced.php(916): HuHwt\WebtreesMods\ClippingsCartEnhanced\ClippingsCartEnhanced->cceDownloadAction()
#2 …/app/Http/RequestHandlers/ModuleAction.php(85): HuHwt\WebtreesMods\ClippingsCartEnhanced\ClippingsCartEnhanced->postExecuteAction()
#3 …/app/Http/Middleware/RequestHandler.php(54): Fisharebest\Webtrees\Http\RequestHandlers\ModuleAction->handle()
#4 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\RequestHandler->process()

Reducir el nombre del módulo.

Quisiera reducir el nombre del módulo en el menú. Como se ve en las imágenes, resulta un texto muy extenso. Si como autor no deseas cambiarlo, agradecería me informaras si hay algún método para hacerlo por mí mismo en mi página.

error H Hwt_1

Gracias.

Visualisierung mit LIN funktioniert nicht mehr

Es kommt das Zwischenfenster mit der Meldung
"Bitte warten - Datenübertragung läuft"
aber diese Meldung bleibt stehten, obwohl nur ganz wenige Datensätze im Sammelbehälter liegen.

Use new webtrees Validator

All
$xref = $request->getQueryParams()['xref'] ?? '';
should be replaced by
$xref = Validator::attributes($request)->isXref()->string('xref');

Restrict possibilities for GEDCOM export

There should be a possibility for the admin to restrict the possibilities for GEDCOM export using the clippings cart.

  1. allow/disallow record types (INDI, SOUR, OBJE, ...) when exporting GEDCOM
  2. add a SOUR record to every fact; this SOUR should reference the original site
  3. put a NOTE on every SOUR saying "Unless you looked it up yourself, assume it's wrong!"

Because the clippings cart can be accessed by the standard clippings cart and the Vesta clippings cart module too, the admin is responsible to switch off these modules if he likes to restrict the GEDCOM access possibilities.

(see webtrees Forum)

wrong icons used

Screenshot (8)

Es gibt hier im Screenshot 4 Icons zu sehen:

  1. Aus Datei lesen und in Sammelbehälter legen
  2. Den Sammelbehälter in eine Datei speichern
  3. Aktualisieren
  4. Sammelbehälter

Die 1. Icon-Grafik interpretiere ich aber als "in Datei speichern" und die 2. als "aus Datei lesen", also genau verkehrt herum. In diesen beiden Icons müsste die Seite mit dem umgeklappten Eselsohr durch die Grafik aus 4. mit dem Korb ersetzt werden. Oder die beiden Icons 1 und 2 müssen einfach vertauscht werden.

Einzelne Datensätze löschen

Wenn man im Punkt "Löschen" den Punkt "Einzelne Datensätze löschen" auswählt, dann kommt die Meldung "Aktion 'Datensätze zum Löschen auswählen:' geht nicht - ist noch nicht eingebaut", aber war schon immer eingebaut. In der normalen Anzeige des Inhalts des Sammelbehälters kann man jeden einzelnen Datensatz löschen. Dorthin hat der Menüpunkt früher verzweigt.

2.1-1.0 - Download records saves empty file

Adding records to the clippings chart works fine:

afbeelding

Execute an action on records in the clippings cart works also fine for the option Visualize records in a diagram ..., but not for the option Download records ... because this downloads only empty files.

afbeelding

No matter which Download option or Privatize options I choose, in all cases an empty file is saved.

I've enabled the following modules:

  • huhwt-cce
  • huhwt-mtv
  • huhwt-wtlin
  • huhwt-wttam
  • huhwt-xtv

PS: downloading with the default webtrees Clippings cart works fine.

V2.1.18.1

There is a mismatch between release number v2.1.18.1 and name of zip file 2.1.18.0

Sammelkorb aus Datei übernehmen - wenn gar kein Sammelkorb gespeichert worden ist

Screenshot (4)

  1. Der Sammelkorb heißt eigentlich Sammelbehälter.
  2. Wenn kein Sammelkorb gespeichert worden ist, dann sollte die Option ausgegraut oder nicht vorhanden sein. Das Öffnen des Fensters (siehe Screenshot) macht keinen Sinn.
  3. Der Button "Speichern" im neuen Fenster sollte wohl eher "laden" oder "öffnen" heißen und nicht "speichern".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.