Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    kk
    @kgoetz:matrix.org
    [m]
    If you can mount your network filesystem in to place it can be used, CA doesn't support things like object storage though. @nullpanda:
    nullpanda
    @nullpanda
    It'd be an NFS mount yeah, just wasn't sure if there's a proper separate folder used for images that can be configured etc
    and Pi should be capable
    kk
    @kgoetz:matrix.org
    [m]
    Ca works with nginx, ftr
    Matías Butelman
    @mbutel_twitter
    Hello. Is there a way to make a detail type use a different view file, for example, instead of ca_objects_default_html.php, ca_objects_publications_html.php?
    Aaaamu
    @aaaamu_gitlab
    Suddenly i get a lot of errors of the "lock wait timeout exceeded" type when trying to save changes to objects in providence. Any idea where the problem is likely to be found?
    CollectiveAccess
    @collectiveaccess
    @aaaamu_gitlab Try restarting the mysql service
    @mbutel_twitter It will use an alternate view based upon the record type, if that view is defined
    Assuming the type code for the record is "publication" then ca_objects_publication_html.php would be used if defined, otherwise the default would be used.
    Matías Butelman
    @mbutel_twitter
    excellent!
    Consider adding this piece of information to the docs, I couldn't find it !
    behindicebergs
    @behindicebergs
    Hey everyone! I was wondering if there was a way of moving the information located in one basic table's field to another without having to run an export and then an import. We have some non-standarized information, partly in a select container and then some in a text field in another metadata element. Is it possible to move information from one column to another? And would it need to be converted somehow in case the container column doesn't store the data as string? Cheers!
    Infra|Red
    @InfraRed:matrix.org
    [m]
    @behindicebergs: I don't think there is an easy way of doing that (but I might be wrong). I would maybe look at a prepopulate block to take the data from one field and write it into another field. You can then run the caUtils apply-prepopulare-rules to apply it to all records. Once you are sure the data is how you want it, you could probably delete the field you don't want anymore and remove the prepopulate rule. @collectiveaccess might have a better way though.
    behindicebergs
    @behindicebergs
    hey @InfraRed:matrix.org ! thanks for the reply, I'm still a bit of a newbie regarding CA so there's a lot of terminology I didn't understand there, but I'll look into it nonetheless! Thanks again for your time!
    Infra|Red
    @InfraRed:matrix.org
    [m]
    prepopulate is a plugin. You will need to turn it on, then copy the conf file over to your conf/local directory and edit it there. You will need to have enough knowledge to edit these types of config files.
    nullpanda
    @nullpanda
    Is anyone interested in making some configuration files in return for compensation?
    CollectiveAccess
    @collectiveaccess
    @nullpanda What do you need help with?
    13 replies
    Al Barzon
    @Sandaloz_twitter
    Hello Guys, I have some questions about the REST API (JSON), how can I browse a collection with limit and pagination via Json POST Body? I have this criteria, but doesn't works. In the URL I sent the limit param ?limit=12 and it's working, but the pagination not working at all.
    {
    "criteria":{"collection_facet":55,"page":2}
    }
    MRMarchivist
    @MRMarchivist

    two things:

    I've noticed that my recent git clone of the ca directory does not include app/tmp. it has every other relevant folder that I can see but not that one. Should I create one?

    Also, in this installation, when I try to pull it up on my browser to actually run the installer, it's just empty. No errors, just white space. What could lead to that?

    Infra|Red
    @InfraRed:matrix.org
    [m]
    hi @MRMarchivist : the app/tmp should be created automatically, so don't worry about that yet. As for the blank screen, turn on show errors so you can see what is going wrong.
    3 replies
    MRMarchivist
    @MRMarchivist
    Unfortunately despite changing all settings, I'm still not seeing the errors causing the white screen. Is it still PHP 7.4.3?
    Infra|Red
    @InfraRed:matrix.org
    [m]
    After changing the setting are you restarting the web service?
    Infra|Red
    @InfraRed:matrix.org
    [m]
    @Sandaloz_twitter: not sure if it'll help you or not, but there documentation states the facet of should be in a list. Put 55 into [55] . Also not sure page is an option on the criteria, where did you get that from?
    3 replies
    Infra|Red
    @InfraRed:matrix.org
    [m]
    :point_up: Edit: Sandaloz_twitter (Al Barzon): not sure if it'll help you or not, but the documentation states the facet of should be in a list. Put 55 into [55] . Also not sure page is an option on the criteria, where did you get that from?
    karkarii
    @karkarii:matrix.org
    [m]
    HI
    Im trying to edit a list on the CA but Im getting this error No user interface is available for this editor in /var/www/html/ca/app/lib/Controller/AppController.php line 121:
    anyone help or suggestion please
    Jesse
    @cow-poke
    Hi everyone, sorry to pile on with more questions - but I'm having a hard time getting the JSON API to edit an item. I'm having trouble - understanding how to format the data in my PUT to items, and when I do get it to work (e.g. base my PUT data on a GET to service.php/item/ca_objects/id/53?pretty=1&format=edit) I end up creating duplicate data in titles and other fields that can have multiple values.
    Any suggestions for a minimal data to PUT to items to change just a single field (e.g. preferred label)?
    Jesse
    @cow-poke
    Okay - I found example text in a bug report that let me minimize my PUT data for edit (on the item JSON api endpoint). However when I update the preferred_label, it adds a new label rather than replacing the old label. Any ideas about how to change this behavior.
    Infra|Red
    @InfraRed:matrix.org
    [m]
    From memory you need to delete the existing label at the same time of putting the new one in
    Infra|Red
    @InfraRed:matrix.org
    [m]
    @cow-poke: if you ping me on Monday I should be able to find an example edit data to overwrite existing values.
    Infra|Red
    @InfraRed:matrix.org
    [m]
    @Sandaloz_twitter: glad it's working now. The repository for the documentation is here https://github.com/collectiveaccess/ProvidenceDocs you might be able to make a pull request with your suggested changes?
    Infra|Red
    @InfraRed:matrix.org
    [m]
    I should also point out that the JSON API is being deprecated and the graphQL taking it's place. If you are using the 1.8 code, then try using graphQL instead.
    behindicebergs
    @behindicebergs
    Hey everyone! I'm trying to run an import but I keep getting the message "Could not insert new record. Object with identifier X already exists and no duplicates are allowed". I've tried to change the existingRecordPolicy option a couple times but I keep getting the same message. Is this coming from that setting or from somewhere else? Cheers!
    kk
    @kgoetz:matrix.org
    [m]
    why are you trying to insert a duplicate?
    1 reply
    Infra|Red
    @InfraRed:matrix.org
    [m]
    @behindicebergs: You most likely have it set to not accept duplicates on that field. Turn that off and try again.
    behindicebergs
    @behindicebergs
    @InfraRed:matrix.org thanks for the reply! I tried with merge on idno, merge on replace and I think also overwrite on existingRecordPolicy. Would the option you mention be located somewhere else? Cheers
    Infra|Red
    @InfraRed:matrix.org
    [m]
    Ah, so you want it to edit a record if it finds the same idno, instead of creating a new record?
    behindicebergs
    @behindicebergs
    exactly, yeah
    Infra|Red
    @InfraRed:matrix.org
    [m]
    and the 'identifier' it's getting caught on is the idno (object number) and not the internal CA ID?
    behindicebergs
    @behindicebergs
    it doesn't specify, error logging just says "identifier"
    Infra|Red
    @InfraRed:matrix.org
    [m]
    in your mapping do you map only the idno (out of those two)?
    behindicebergs
    @behindicebergs
    yes
    Infra|Red
    @InfraRed:matrix.org
    [m]
    Any of the _on_idno options should work then. What version are you using?
    behindicebergs
    @behindicebergs
    1.8, latest providence
    Infra|Red
    @InfraRed:matrix.org
    [m]
    I have used overwrite_on_idno successfully from memory. Not sure about the merge_on_idno
    behindicebergs
    @behindicebergs
    Strange, that's the latest setting I attempted. I'll try again in a bit and let you know. Thanks for the replies!
    Infra|Red
    @InfraRed:matrix.org
    [m]
    Here is a screen shot of the settings of one of my mappings.