[Koha-bugs] [Bug 12743] Allow default values from the ACQ framework to be used when creating a record in acquisitions

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 4 13:04:06 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12743

Gaetan Boisson <gaetan.boisson at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Passed QA                   |Failed QA

--- Comment #5 from Gaetan Boisson <gaetan.boisson at biblibre.com> ---
Bug found after more testing:

The fields of the form in acquisitions will create values in the marc record.
If we have default values for the same fields in the ACQ framework, we will
systematically have two marc tags created in the record. It is not a huge
problem since very few fields are created by the form in acquisitions but would
be better handled this way:

If the marc tag doesn't exist (ie wasn't created by the acquisitions form),
create it with the subfield and its default values.
If the marc tag already exist, but the subfield doesn't, add the subfield with
its default value to the existing tag
If both marc tag and subfield already exists, do nothing.

Of course one could argue that for repeatable fields, one should be able to
chose where to create the subfield. But i don't see an easy way to do this, and
since so few fields are concerned, i think we'd better just be careful when
using this feature not to overlap too much with fields handled by the form.



Here's anexample (with french unimarc) of the current behaviour to make things
clearer:

The document type field in the form will create a value in 099$t (bibliographic
level itemtype.)
The ACQ framework is set to put a default value of 1 in 099$z.
Then the resulting record will look like this:

099 ## - Informations locales
  z 1
099 ## - Informations locales
  t [docupment type]

the field 099 being not repeatable, this is not valid, additionally, if one
then manually edits the record, the two 099 show up in the interface, and if a
default value is set for 099$t, the new record will look like this (two
document types):

099 ## - Informations locales
  t [document type default value]
  z 1
099 ## - Informations locales
  t [docupment type]

If the ACQ framework has a default value for a subfield that is created by the
acquisitions form, the marc tag will also be duplicated. Like this:
099 ## - Informations locales
  z 1 (value coming from the ACQ framework)
099 ## - Informations locales
  t (value coming from the ACQ framework)
099 ## - Informations locales
  t (value entered in the acquisitions form)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list