Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.


If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping


Answers may be delayed for posts that do not include sufficient information.

records added through API script aren't recognized in multipart_id_numbering

If I add records through the API--which appear perfectly fine the automatic numbering doesn't count those.  It will give the next number from the last record that wasn't entered through the API.  If I go back and open the last API record and save it through providence, it will then count.


This is configuration for images in the multipart_id_numbering.conf


ca_objects = {
image = {
elements = {
object_number = {
type = SERIAL, 
width = 6, 
description = _(Object number), 
editable = 1,
table = ca_objects,
field = idno,
sort_field = idno_sort,
sequence_by_type = 1,
}
}
},

on pawtucket 1.7.3 develop on Windows2012 R2 IIS 8.5

Comments

  • Sounds like a bug. Please file a JIRA and include the API calls you're doing in the report. Thanks.

    seth
  • Seth, I have a similar issue. Just appended a note to PROV-2147 in JIRA.
    If you could take a look...

    Thank you!

    Giovanni

    JIRA Note:

    Having similar problem: when creating new object with a SERIAL multipart ID numbering, the API creates a new complete object (i.e. with all the labels, metadata, relationships) BUT without idno. When editing the new object in Providence, it will assign the latest idno available at save.
    But this should happen at the API call...

    Here is my multipart_id_numbering :

    ...
    ts_GRS = {
    separator =.,

    elements = {
    sigla = {
    type = CONSTANT,
    value = GRS,
    editable = 0,
    description = _(Sigla)
    },

    accession_number = {
    type = SERIAL,
    width = 30,
    editable = 1,
    table = ca_objects,
    field = idno,
    sort_field = idno_sort,
    sequence_by_type=1,
    description = _(Accession number)
    }
    }
    }
    ...

    And here is the json passed as argument to the put statement at the API:

    {
    "intrinsic_fields" : {
    "type_id" : "ts_GRS"
    },
    "preferred_labels" : [
    {
    "locale" : "it_IT"",
    "name" : "xxx"
    }
    ],
    "nonpreferred_labels" : [
    {
    "name" : "yyy",
    "type_id" : "57"
    }
    ]
    }

Sign In or Register to comment.