From 91fca4a9abf22c8eac5b5733501c85ed407dcd2e Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Tue, 8 Apr 2008 22:14:13 +0200 Subject: [PATCH] BiblioAddsAuthorities improvement/fix this commit restore a better behaviour : - if ON : the librarian can enter manually an authority-linked marc field. and if it does not exist in the authorities file, it will be created automatically - if OFF : the authority must exist in the authority file, and the librarian can't enter if manually in the MARC editor This patch just deals with the OFF case (the ON was already here). With OFF the behaviour is now the same as in 2.2 Signed-off-by: Joshua Ferraro --- cataloguing/addbiblio.pl | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl index a93f63f93e..cd6f1e1cfa 100755 --- a/cataloguing/addbiblio.pl +++ b/cataloguing/addbiblio.pl @@ -342,6 +342,7 @@ sub create_input { # it's a thesaurus / authority field } elsif ( $tagslib->{$tag}->{$subfield}->{authtypecode} ) { + if (C4::Context->preference("BiblioAddsAuthorities")) { $subfield_data{marc_value} = " {$tag}->{$subfield}->{authtypecode}."&index=$subfield_data{id}','$subfield_data{id}'); return false;\" title=\"Tag Editor\">... - "; + "; + } else { + $subfield_data{marc_value} = + " + {$tag}->{$subfield}->{authtypecode}."&index=$subfield_data{id}','$subfield_data{id}'); return false;\" title=\"Tag Editor\">... + "; + } # it's a plugin field } elsif ( $tagslib->{$tag}->{$subfield}->{'value_builder'} ) { -- 2.39.2