Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Stefan
    @stefankeidel
    You may also want to look at this API if you're just starting out: http://docs.collectiveaccess.org/wiki/SimpleAPI
    That puts the return format configuration on the server side
    It's not as flexible but maybe a bit easier to wrap your head around
    tsitsibau
    @tsitsibau
    (and how can i hack the default return format ?)...
    (evil)
    tsitsibau
    @tsitsibau
    is there any possibility that there is a switch like enable_access_control that does magically what'm looking for... limit all results to public objects?
    (thanks for your help)
    Stefan
    @stefankeidel
    No, there isn't. That wouldn't be hard to implement though -- feel free to file a ticket at http://clangers.collectiveaccess.org and we'll see what we can do
    tsitsibau
    @tsitsibau
    thanks stefan i opened a ticket
    although it would be great if you can help me with this hack... to solve the problem temporarily...
    Kehan Harman
    @kehh
    @tsitsibau the SimpleAPI works pretty well and gives you the opportunity of ensuring that certain access types are restricted, and you can also ensure that only fields you want to share are exposed via the API. You can take a look at some of our configurations here: https://github.com/rwahs/providence-configuration/blob/master/conf/services.conf
    we then wrap those responses in a Single Page App https://github.com/rwahs/research-frontend
    tsitsibau
    @tsitsibau
    hello again
    thanks @kehh ... it was very helpful, i'm now trying to use simple api
    i've figured out how to do that so far... the only problem is how to get all object representations
    Stefan
    @stefankeidel
    They have a few media examples in there, for instance here: https://github.com/rwahs/providence-configuration/blob/master/conf/services.conf#L45
    tsitsibau
    @tsitsibau
    i tried these, but i get only primary image
    Stefan
    @stefankeidel
    I talked to @kehh about that exact issue just this week I think
    tsitsibau
    @tsitsibau
    i tried something like this...
    Repres = ""<unit relativeTo="ca_object_representations" filterNonPrimaryRepresentations="0" delimiter="," returnAsArray="1"><unit>^ca_object_representations.media.original%returnURL=true</unit>|<unit>^ca_object_representations.media.preview170%returnURL=true</unit></unit>"",
    but i am still getting 1 image
    Stefan
    @stefankeidel
    Again, this option is for ca_objects units only right now
    tsitsibau
    @tsitsibau
    let me make this clear... because i'm confused
    i use simple api... and i want to fetch an object's information
    and display all the representations of this object
    can i do this?
    tsitsibau
    @tsitsibau
    i use the following without success
            Repres = <unit relativeTo="ca_object_representations" filterNonPrimaryRepresentations="0" delimiter="," returnAsArray="1"><unit>^ca_object_representations.media.original%returnURL=true</unit>|<unit>^ca_object_representations.media.preview170%returnURL=true</unit></unit>,
    i also want to find related collections with public access
    and i use the following without success
            Collection = <unit relativeTo="ca_collections" delimiter="," returnAsArray="1"  checkAccess="[1]"><unit>^ca_collections.preferred_labels.name</unit>|<unit>^ca_collections.collection_id</unit></unit>,
    tsitsibau
    @tsitsibau
    (it returns all of them)
    sterlingjenson
    @sterlingjenson
    Greetings all. I am running two different C/A instances, one of which is a recent copy of the production system. When I run a mapping on the testbed one, it seems to run just fine; however on the production system, I am getting an error. (i.e. cannot create add or update . . . foreign key constraint.) Any suggestions on how to figure out what the difference is?
    I basically created a new mysql db for the testbed database, copied the providence files over to a new folder and updated the setup file
    Stefan
    @stefankeidel
    @sterlingjenson what's the FK error? @tsitsibau Some of these options won't work on units. You don't need to put checkAccess for each individual unit. Just put it in the service definition of the simpleAPI endpoint
    There are working examples here: http://docs.collectiveaccess.org/wiki/SimpleAPI
    sterlingjenson
    @sterlingjenson
    via copy and paste: (2016-06- 24 09:12:09) [2004-0049- 0001] Could not add related storage location with
    relationship location: Cannot add or update a child row: a foreign key constraint fails
    fk_ca_objects_x_storage_locations_type_id FOREIGN KEY (type_id)
    (providence.ca_objects_x_storage_locations, CONSTRAINT
    REFERENCES ca_relationship_types (type_id)) [250]
    Stefan
    @stefankeidel
    Looks like the relationship type you're trying to use is missing
    sterlingjenson
    @sterlingjenson
    ah, I see. for object and collection storage relationships, it will be "related," correct?
    Stefan
    @stefankeidel
    That depends on your profile, but yeah -- that's the default type from base.xml
    sterlingjenson
    @sterlingjenson
    thanks.
    Jesse
    @blackadder78
    I'm running a data import, and I'm trying to use the option applyRegularExpressions to convert a file name to an object idno. I can't get the regular expression to apply - it is simply importing the file name as the idno. Here's the text of my applyRegularExpressions statement:
    {"applyRegularExpressions": [{"match": "(NYSA_A1810-78_V15_[0-9]{4})_.+", "replaceWith": "\\1"}]}
    Can you tell what I'm doing wrong?
    ericwm
    @eriwm
    @collectiveaccess Hi, I have just run git pull again and now when I try to preview a pdf document I get the tool bar at the top of the screen, the thumbnails of the pages on the left hand side of the screen but only the small rotating block in the main screen so some improvement from my previous post.
    Kehan Harman
    @kehh
    @stefankeidel @tsitsibau I had no luck with multiple representations on objects. This is the latest master-fix. Do you want me to file a bug?
    tsitsibau
    @tsitsibau
    @kehh it's really a problem for me.... i'll probably have to use the other api (not simple) just for this... which gives all representations...
    Stefan
    @stefankeidel
    @kehh That option is more or less a hack I added for a very specific use case and it works well for that use case (related objects). We may want to make that available as a more generic feature but there are no plans to do so at this point.
    As usual we welcome any code contributions
    Bounty2017
    @Bounty2017
    Hi, I'm currently creating an archive management system for a new nuclear archive being built in Wick, Scotland using collective access - on investigation of the current system and data they currently have it seems going forward the best data schema to use for this is a Data Warehouse, is this possible within the Collective Access system? Thank you
    CollectiveAccess
    @collectiveaccess
    What do you mean by data warehouse?