Hi, I want to create a new template for a custom action in the patron details. What I need is to call a web service to update some data of the patron but only is the staff wants (Ideally it will be called on a cron job at midnight). I have two languages English and Spanish, do I need to change both views of the *koha-tmpl/intranet-tmpl* or should I change the English one and the regenerate them? Thanks for any help! Regards Rodrigo
Can't you inject that using Jquery? El lun., 31 oct. 2016 a las 14:32, Rodrigo Santellan (<rsantellan@gmail.com>) escribió:
Hi,
I want to create a new template for a custom action in the patron details. What I need is to call a web service to update some data of the patron but only is the staff wants (Ideally it will be called on a cron job at midnight).
I have two languages English and Spanish, do I need to change both views of the *koha-tmpl/intranet-tmpl* or should I change the English one and the regenerate them?
Thanks for any help!
Regards
Rodrigo _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
-- Tomás Cohen Arazi Theke Solutions (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B2F3C15F
I could, is that the preferred way? Should I check on https://wiki.koha-community.org/wiki/JQuery_Library for coding standards of Koha? Regards On Mon, Oct 31, 2016 at 2:47 PM, Tomas Cohen Arazi <tomascohen@gmail.com> wrote:
Can't you inject that using Jquery?
El lun., 31 oct. 2016 a las 14:32, Rodrigo Santellan (< rsantellan@gmail.com>) escribió:
Hi,
I want to create a new template for a custom action in the patron details. What I need is to call a web service to update some data of the patron but only is the staff wants (Ideally it will be called on a cron job at midnight).
I have two languages English and Spanish, do I need to change both views of the *koha-tmpl/intranet-tmpl* or should I change the English one and the regenerate them?
Thanks for any help!
Regards
Rodrigo _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
-- Tomás Cohen Arazi Theke Solutions (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B2F3C15F
ARe you trying to introduce a new feature or enhancement to Koha? For everyone to use? Or is it just too specific? El lun., 31 oct. 2016 a las 14:49, Rodrigo Santellan (<rsantellan@gmail.com>) escribió:
I could, is that the preferred way?
Should I check on https://wiki.koha-community.org/wiki/JQuery_Library for coding standards of Koha?
Regards
On Mon, Oct 31, 2016 at 2:47 PM, Tomas Cohen Arazi <tomascohen@gmail.com> wrote:
Can't you inject that using Jquery?
El lun., 31 oct. 2016 a las 14:32, Rodrigo Santellan (< rsantellan@gmail.com>) escribió:
Hi,
I want to create a new template for a custom action in the patron details. What I need is to call a web service to update some data of the patron but only is the staff wants (Ideally it will be called on a cron job at midnight).
I have two languages English and Spanish, do I need to change both views of the *koha-tmpl/intranet-tmpl* or should I change the English one and the regenerate them?
Thanks for any help!
Regards
Rodrigo _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
-- Tomás Cohen Arazi Theke Solutions (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B2F3C15F
-- Tomás Cohen Arazi Theke Solutions (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B2F3C15F
Is really specific. On Mon, Oct 31, 2016 at 2:52 PM, Tomas Cohen Arazi <tomascohen@gmail.com> wrote:
ARe you trying to introduce a new feature or enhancement to Koha? For everyone to use? Or is it just too specific?
El lun., 31 oct. 2016 a las 14:49, Rodrigo Santellan (< rsantellan@gmail.com>) escribió:
I could, is that the preferred way?
Should I check on https://wiki.koha-community.org/wiki/JQuery_Library for coding standards of Koha?
Regards
On Mon, Oct 31, 2016 at 2:47 PM, Tomas Cohen Arazi <tomascohen@gmail.com> wrote:
Can't you inject that using Jquery?
El lun., 31 oct. 2016 a las 14:32, Rodrigo Santellan (< rsantellan@gmail.com>) escribió:
Hi,
I want to create a new template for a custom action in the patron details. What I need is to call a web service to update some data of the patron but only is the staff wants (Ideally it will be called on a cron job at midnight).
I have two languages English and Spanish, do I need to change both views of the *koha-tmpl/intranet-tmpl* or should I change the English one and the regenerate them?
Thanks for any help!
Regards
Rodrigo _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
-- Tomás Cohen Arazi Theke Solutions (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B2F3C15F
-- Tomás Cohen Arazi Theke Solutions (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B2F3C15F
So you should try avoiding the templates. Otherwise you would need to maintain your own branch. So Jquery is a good way of injectng stuff to the DOM, but it will depend on what you are trying to do. regards El lun., 31 oct. 2016 a las 14:59, Rodrigo Santellan (<rsantellan@gmail.com>) escribió:
Is really specific.
On Mon, Oct 31, 2016 at 2:52 PM, Tomas Cohen Arazi <tomascohen@gmail.com> wrote:
ARe you trying to introduce a new feature or enhancement to Koha? For everyone to use? Or is it just too specific?
El lun., 31 oct. 2016 a las 14:49, Rodrigo Santellan (< rsantellan@gmail.com>) escribió:
I could, is that the preferred way?
Should I check on https://wiki.koha-community.org/wiki/JQuery_Library for coding standards of Koha?
Regards
On Mon, Oct 31, 2016 at 2:47 PM, Tomas Cohen Arazi <tomascohen@gmail.com> wrote:
Can't you inject that using Jquery?
El lun., 31 oct. 2016 a las 14:32, Rodrigo Santellan (< rsantellan@gmail.com>) escribió:
Hi,
I want to create a new template for a custom action in the patron details. What I need is to call a web service to update some data of the patron but only is the staff wants (Ideally it will be called on a cron job at midnight).
I have two languages English and Spanish, do I need to change both views of the *koha-tmpl/intranet-tmpl* or should I change the English one and the regenerate them?
Thanks for any help!
Regards
Rodrigo _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
-- Tomás Cohen Arazi Theke Solutions (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B2F3C15F
-- Tomás Cohen Arazi Theke Solutions (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B2F3C15F
-- Tomás Cohen Arazi Theke Solutions (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B2F3C15F
For what I see the code that I put on IntranetUserJS will be used on every intranet page. Is there a way to use it only in a sigle page? It is possible to define a javascript file? Regards On Mon, Oct 31, 2016 at 3:00 PM, Tomas Cohen Arazi <tomascohen@gmail.com> wrote:
So you should try avoiding the templates. Otherwise you would need to maintain your own branch. So Jquery is a good way of injectng stuff to the DOM, but it will depend on what you are trying to do.
regards
El lun., 31 oct. 2016 a las 14:59, Rodrigo Santellan (< rsantellan@gmail.com>) escribió:
Is really specific.
On Mon, Oct 31, 2016 at 2:52 PM, Tomas Cohen Arazi <tomascohen@gmail.com> wrote:
ARe you trying to introduce a new feature or enhancement to Koha? For everyone to use? Or is it just too specific?
El lun., 31 oct. 2016 a las 14:49, Rodrigo Santellan (< rsantellan@gmail.com>) escribió:
I could, is that the preferred way?
Should I check on https://wiki.koha-community.org/wiki/JQuery_Library for coding standards of Koha?
Regards
On Mon, Oct 31, 2016 at 2:47 PM, Tomas Cohen Arazi <tomascohen@gmail.com> wrote:
Can't you inject that using Jquery?
El lun., 31 oct. 2016 a las 14:32, Rodrigo Santellan (< rsantellan@gmail.com>) escribió:
Hi,
I want to create a new template for a custom action in the patron details. What I need is to call a web service to update some data of the patron but only is the staff wants (Ideally it will be called on a cron job at midnight).
I have two languages English and Spanish, do I need to change both views of the *koha-tmpl/intranet-tmpl* or should I change the English one and the regenerate them?
Thanks for any help!
Regards
Rodrigo _______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
-- Tomás Cohen Arazi Theke Solutions (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B2F3C15F
-- Tomás Cohen Arazi Theke Solutions (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B2F3C15F
-- Tomás Cohen Arazi Theke Solutions (https://theke.io <http://theke.io/>) ✆ +54 9351 3513384 GPG: B2F3C15F
Hi Rodrigo, Il 31/10/2016 19:20, Rodrigo Santellan ha scritto:
For what I see the code that I put on |IntranetUserJS will be used on every intranet page. Is there a way to use it only in a sigle page?
You can start your JS with code that select a specific page: See:https://wiki.koha-community.org/wiki/JQuery_Library#Change_default_encoding_... All code is inside: if (window.location.href.indexOf("tools/stage-marc-import.pl") > -1) { [...] } So in fact it work only in page "tools/stage-marc-import.pl" Bye Zeno Tajoli -- Zeno Tajoli /SVILUPPO PRODOTTI CINECA/ - Automazione Biblioteche Email: z.tajoli@cineca.it Fax: 051/6132198 *CINECA* Consorzio Interuniversitario - Sede operativa di Segrate (MI)
I will try that on my scripts! Thanks a lot!! On Mon, Oct 31, 2016 at 5:06 PM, Tajoli Zeno <z.tajoli@cineca.it> wrote:
Hi Rodrigo,
Il 31/10/2016 19:20, Rodrigo Santellan ha scritto:
For what I see the code that I put on |IntranetUserJS will be used on every intranet page. Is there a way to use it only in a sigle page?
You can start your JS with code that select a specific page:
See:https://wiki.koha-community.org/wiki/JQuery_Library# Change_default_encoding_to_MARC-8
All code is inside: if (window.location.href.indexOf("tools/stage-marc-import.pl") > -1) { [...] } So in fact it work only in page "tools/stage-marc-import.pl"
Bye Zeno Tajoli
-- Zeno Tajoli /SVILUPPO PRODOTTI CINECA/ - Automazione Biblioteche Email: z.tajoli@cineca.it Fax: 051/6132198 *CINECA* Consorzio Interuniversitario - Sede operativa di Segrate (MI)
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
participants (3)
-
Rodrigo Santellan -
Tajoli Zeno -
Tomas Cohen Arazi