From 77f43b1a636c1dbde09caa598f6e03990e24cf39 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 8 Feb 2024 09:50:12 +0100 Subject: [PATCH] Bug 34478: Replace forms with links - authorities/authorities Bug 34478: [TO SQUASH] Replace forms with links - authorities/authorities Signed-off-by: Jonathan Druart --- authorities/authorities.pl | 3 ++- .../prog/en/modules/authorities/authorities.tt | 13 ++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/authorities/authorities.pl b/authorities/authorities.pl index 91ea5d9d2a..0d19045ebb 100755 --- a/authorities/authorities.pl +++ b/authorities/authorities.pl @@ -597,7 +597,8 @@ if ($op eq "cud-add") { my $record = TransformHtmlToMarc($input, 0); my ($duplicateauthid,$duplicateauthvalue); - ($duplicateauthid,$duplicateauthvalue) = FindDuplicateAuthority($record,$authtypecode) if ($op eq "cud-add") && (!$is_a_modif); + ( $duplicateauthid, $duplicateauthvalue ) = FindDuplicateAuthority( $record, $authtypecode ) unless $is_a_modif; + my $confirm_not_duplicate = $input->param('confirm_not_duplicate'); # it is not a duplicate (determined either by Koha itself or by user checking it's not a duplicate) if (!$duplicateauthid or $confirm_not_duplicate) { 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 f9d27a0b44..8c03d9967a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt @@ -419,13 +419,12 @@

Duplicate record suspected

Is this a duplicate of [% duplicateauthvalue | html %] ?

-
- - -
-
- -
+

+ Yes: Edit existing authority +

+

+ No: Save as new authority +

[% END # /IF duplicateauthid %] -- 2.39.5