Skip to content

Το ADALinker είναι ένα Plugin για το Joomla που αναζητά σε όλο το περιεχόμενο του ιστοτόπου τη λέξη-κλειδί 'ΑΔΑ:', διαβάζει το μοτίβο της πράξης που ακολουθεί και το μετατρέπει σε σύνδεσμο προς τη σελίδα αυτής της πράξης στη Δι@ύγεια.

License

Notifications You must be signed in to change notification settings

rinenweb/plg_content_adalinker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

English Description

ΑΔΑlinker

Το 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Ζ)". Οποιοσδήποτε άλλος τρόπος μπορεί να μην λειτουργήσει. Για παράδειγμα, αν στο κείμενο υπάρχει οποιαδήποτε διαφοροποίηση ως προς τη λέξη-κλειδί "ΑΔΑ:", όπως "ΑΔΑ" ή "Α.Δ.Α." κ.λπ., ο αριθμός απόφασης που ακολουθεί δεν θα διαβαστεί σωστά.

Plugins_Content_-_ADALinker

Ρυθμίσεις

Από την έκδοση 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

description

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.

Requirements

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+

Installation

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

Usage

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.

Settings

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).

License and Disclaimer

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.

About

Το ADALinker είναι ένα Plugin για το Joomla που αναζητά σε όλο το περιεχόμενο του ιστοτόπου τη λέξη-κλειδί 'ΑΔΑ:', διαβάζει το μοτίβο της πράξης που ακολουθεί και το μετατρέπει σε σύνδεσμο προς τη σελίδα αυτής της πράξης στη Δι@ύγεια.

Topics

Resources

License

Stars

Watchers

Forks

Languages