From d65cfd570e585d7a15d7aab6a020286b0413d46d Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 25 Aug 2020 10:56:51 +0000 Subject: [PATCH] Bug 11299: (follow-up) Correct rebase errors and add message class to dialog Signed-off-by: Michal Denar Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../en/modules/authorities/authorities.tt | 4 +-- .../prog/en/modules/cataloguing/addbiblio.tt | 25 ++----------------- 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt index ed34c91b91..6e55762e06 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt @@ -212,9 +212,9 @@ function confirmnotdup(redirect){ - + - +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt index be5bc2b0df..fb1e187e3d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt @@ -183,27 +183,6 @@ } [% END %] -function confirmnotdup(redirect){ - $("#confirm_not_duplicate").attr("value","1"); - $("#redirect").attr("value",redirect); - Check(); -} - -function Dopop(link,i) { - defaultvalue = document.getElementById(i).value; - window.open(link+"&result="+defaultvalue,"valuebuilder",'width=700,height=550,toolbar=false,scrollbars=yes'); -} - -/** - * this function open a popup to search on z3950 server. - */ -function PopupZ3950() { - var strQuery = GetZ3950Terms(); - if(strQuery){ - window.open("/cgi-bin/koha/cataloguing/z3950_search.pl?biblionumber=[% biblionumber | html %]"+strQuery,"z3950search",'width=740,height=450,location=yes,toolbar=no,scrollbars=yes,resize=yes'); - } -} - /** * this function append button for create new authority if not found */ @@ -221,7 +200,7 @@ function addCreateAuthorityButton(tag_subfield_line, heading, tag_index) { // Create a new form that will be POSTed in the new window var form = $('
').attr({ method: 'post', - action: "../authorities/authorities.pl", + action: "/cgi-bin/authorities/authorities.pl", target: "new_auth_popup" }); //add the authtypecode @@ -272,7 +251,7 @@ function updateHeadingLinks(links) { // Delete the old message dialog and create a new one $('#autolinker_dialog').remove(); - var message_dialog = $('
' + _("Automatic authority link results:") + '
    '); + var message_dialog = $('
    ' + _("Automatic authority link results:") + '
      '); var message_dialog_ul = message_dialog.find('ul'); $.each(links, function(index, heading) { -- 2.39.5