Bugzilla – Attachment 131149 Details for
Bug 29592
Imported records should not be completed with defaultvalues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29592: Do not apply defaultvalue to imported record
Bug-29592-Do-not-apply-defaultvalue-to-imported-re.patch (text/plain), 1.37 KB, created by
Katrin Fischer
on 2022-02-26 22:36:15 UTC
(
hide
)
Description:
Bug 29592: Do not apply defaultvalue to imported record
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-02-26 22:36:15 UTC
Size:
1.37 KB
patch
obsolete
>From 4bff5a81ac8bc829da146f7aa65a22f03dde905d Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 29 Nov 2021 14:59:13 +0000 >Subject: [PATCH] Bug 29592: Do not apply defaultvalue to imported record > >The condition breedingid excludes records from Z3950. > >Test plan: >Import to new or existing record. Verify that defaults are not >applied. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > cataloguing/addbiblio.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl >index 036764417c..f0bfd96708 100755 >--- a/cataloguing/addbiblio.pl >+++ b/cataloguing/addbiblio.pl >@@ -288,9 +288,9 @@ sub create_input { > > my $index_subfield = CreateKey(); # create a specifique key for each subfield > >- # Apply optional framework default value when it is a new record >+ # Apply optional framework default value when it is a new record (and not an import) > # Substitute date parts, user name >- if ( $value eq '' && !$cgi->param('biblionumber') ) { >+ if ( $value eq '' && !$cgi->param('biblionumber') && !$cgi->param('breedingid') ) { > $value = $tagslib->{$tag}->{$subfield}->{defaultvalue} // q{}; > > # get today date & replace <<YYYY>>, <<YY>>, <<MM>>, <<DD>> if provided in the default value >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29592
:
128082
|
128083
| 131149 |
131150