Το ADALinker είναι ένα Plugin για το Joomla που αναζητά σε όλο το περιεχόμενο του ιστοτόπου τη λέξη-κλειδί 'ΑΔΑ:', διαβάζει το μοτίβο της πράξης που ακολουθεί και το μετατρέπει σε σύνδεσμο προς τη σελίδα αυτής της πράξης στη Δι@ύγεια.
Το Plugin είναι αρκετά απλό στην υλοποίηση και (λογικά) θα τα πάει καλά με:
- Joomla 3.X
- Joomla 4.X
- Joomla 5.X
- PHP 7.0+
- PHP 8.0+
Το Plugin εγκαθίσταται όπως οποιοδήποτε άλλο extension. Έπειτα από την εγκατάσταση, χρειάζεται να ενεργοποιηθεί πηγαίνοντας στα Plugins και βρίσκοντάς το υπό το όνομα Content - ADALinker
Το Plugin αναζητά σε όλο το περιεχόμενο του ιστοτόπου (δηλαδή κείμενο σε Άρθρα, Κατηγορίες, Tags κ.λπ.) τη λέξη-κλειδί 'ΑΔΑ:', διαβάζει το μοτίβο της πράξης που ακολουθεί (π.χ. Α1Β2Γ3Δ4-Ε5Ζ) και το μετατρέπει σε σύνδεσμο προς τη σελίδα αυτής της πράξης στη Δι@ύγεια, δηλαδή στο url https://diavgeia.gov.gr/decision/view/Α1Β2Γ3Δ4-Ε5Ζ.
Προσοχή: Το μοτίβο που αναζητείται είναι απόλυτα συγκεκριμένο, δηλ. "ΑΔΑ:" που ακολουθείται από κενό χαρακτήρα και τον αριθμό της πράξης. Μπορεί επίσης να είναι εντός παρένθεσης "(ΑΔΑ: Α1Β2Γ3Δ4-Ε5Ζ)". Οποιοσδήποτε άλλος τρόπος μπορεί να μην λειτουργήσει. Για παράδειγμα, αν στο κείμενο υπάρχει οποιαδήποτε διαφοροποίηση ως προς τη λέξη-κλειδί "ΑΔΑ:", όπως "ΑΔΑ" ή "Α.Δ.Α." κ.λπ., ο αριθμός απόφασης που ακολουθεί δεν θα διαβαστεί σωστά.
Από την έκδοση 1.1 εισάγονται δύο προαιρετικές ρυθμίσεις μέσα στο Plugin. Συγκεκριμένα:
- Κλάση Συνδέσμου: Μπορείτε να συμπληρώσετε κάποια κλάση για τον σύνδεσμο προκειμένου να διευκολυνθείτε σε τυχόν περαιτέρω μορφοποίησή του ή σε επέκταση της λειτουργίας του. Για παράδειγμα, αν χρησιμοποιείτε το JCE MediaBox, μπορείτε στο εν λόγω πεδίο να βάλετε την κλάση "jcepopup" ώστε ο σύνδεσμος να ανοίγει σε αναδυόμενο παράθυρο.
- Τύπος Συνδέσμου: Εδώ μπορείτε να επιλέξετε το πού θα οδηγεί ο σύνδεσμος. Η επιλογή "Προβολή Σελίδας" οδηγεί στη σελίδα της πράξης στη Δι@ύγεια (δηλαδή ο σύνδεσμος θα είναι της μορφής diavgeia.gov.gr/decision/view/ΑΔΑ. Η επιλογή "Προβολή Αρχείου" οδηγεί απ' ευθείας στην προβολή του αρχείου της πράξης στη Δι@ύγεια (δηλαδή ο σύνδεσμος θα είναι της μορφής diavgeia.gov.gr/doc/ΑΔΑ?inline=true).
Αυτό το πρόγραμμα, είναι ελεύθερο λογισμικό και διανέμεται υπό τους όρους της άδειας χρήσης GNU GPL 3. Πρέπει να έχετε λάβει ένα αντίγραφο της μαζί με αυτό το πρόγραμμα. Αν όχι μπορείτε να λάβετε ένα από τη διεύθυνση https://www.gnu.org/licenses/gpl-3.0.txt
Αυτό το πρόγραμμα διανέμεται με την ελπίδα ότι θα είναι χρήσιμο, αλλά ΧΩΡΙΣ ΚΑΜΙΑ ΕΓΓΥΗΣΗ. Xωρίς καν την σιωπηρή εγγύηση ΕΜΠΟΡΕΥΣΙΜΟΤΗΤΑΣ ή ΚΑΤΑΛΛΗΛΟΤΗΤΑΣ ΓΙΑ ΣΥΓΚΕΚΡΙΜΕΝΟ ΣΚΟΠΟ. Δείτε τη Γενική Δημόσια Άδεια GNU για περισσότερες λεπτομέρειες.
Δεν προσφέρεται κανενός είδους υποστήριξη. Η χρήση λογισμικού που διανέμεται ελεύθερα δεν σας δίνει το δικαίωμα δωρεάν υποστήριξης ή εργασίας από τους προγραμματιστές του. Μπορείτε να επικοινωνήσετε μαζί μου για τυχόν προβλήματα ή για οποιεσδήποτε ιδέες για νέες δυνατότητες, αλλά δεν υπάρχουν εγγυήσεις ότι το αίτημά σας θα υλοποιηθεί ή ότι θα υπάρξει ανταπόκριση.
ADALinker is a Plugin for Joomla that searches all website content for the keyword 'ADA:', reads the pattern of the decision after the ADA and turns it into a link to that decision's page on Diavgeia.
ADALinker Plugin is fairly simple and will (hopefully) play nice with:
- Joomla 3.X
- Joomla 4.X
- Joomla 5.X
- PHP 7.0+
- PHP 8.0+
The Plugin is installed like any other extension. After installation, it needs to be activated by going to Plugins and finding it under the name Content - ADALinker
The Plugin searches all website content (i.e. text in Articles, Categories, Tags, etc.) for the keyword 'ADA:', reads the following decision pattern (eg A1B2C3D4-E5Z) and turns it into a link to the page of this decision in Diavgeia, i.e. to the url https://diavgeia.gov.gr/decision/view/Α1Β2Γ3Δ4-Ε5Ζ.
Caution: The pattern searched for is very specific, i.e. "ΑΔΑ:" followed by a blank character and the decision number. It can also be in parentheses "(AD: A1B2C3D4-E5Z)". Any other way may not work. For example, if the text contains any variation on the keyword "ΑΔΑ:", such as "ADA" or "A.D.A." etc., the decision number that follows will not be read correctly.
Since version 1.1, two optional settings are introduced into the Plugin. Specifically:
- Link Class: You can fill in a class for the link in order to facilitate any further formatting or extension of its function. For example, if you use JCE MediaBox, you can put the class "jcepopup" in that field so that the link opens in a popup window.
- Link Type: Here you can choose where the link will point to. The "View Page" option leads to the decision's page in Diavgeia (i.e. the link will be of the format diavgeia.gov.gr/decision/view/ADA. The "View File" option leads directly to inline viewing of the decision's file in Diavgeia (i.e. the link will be of the format diavgeia.gov.gr/doc/ΑΡΑ?inline=true).
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 module. If not, see https://www.gnu.org/licenses/gpl-3.0.txt.
I do not offer any kind of support. Using freely distributed software does not entitle you to free support or labor from its developers. You may contact me with any ideas for new features, but there are no guarantees that your request will be implemented or ever responded to in a certain timeframe or at all.