Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Karl Krägelin
    @karkraeg
    9CDA99F3-4937-47C5-833B-C1ACAC1822F0.png
    ADF0050A-5E08-4342-BA90-A7D9FEA84F20.png
    Karl Krägelin
    @karkraeg
    turns out our MySQL my.cnf needed max_allowed_packet=500Mand then a re-run of the search-index-rebuilding to make it work. So it’s solved!
    juanulload
    @juanulload
    @collectiveaccess im running it in the web browser, i'm waiting for the pass to get access to the host and running it in the command line
    CollectiveAccess
    @collectiveaccess
    @juanulload Yes, try running it in the command line and let me know if there are error messages
    juanulload
    @juanulload
    @collectiveaccess thanks!
    Karl Krägelin
    @karkraeg
    @collectiveaccess I’m geting the following error when I try to use caUtils import-media: Class 'ca_data_importers' not found in /var/www/html/import/app/lib/ca/Utils/CLIUtils.php on line 4262 – any help on how to resolve this? (here’s a forum entry to this: http://www.collectiveaccess.org/support/forum/index.php?p=/discussion/comment/319087/#Comment_319087) Thanks!
    Kehan Harman
    @kehh
    @kbecker87 make sure you're not using the (now deprecated) php APC module - I got all sorts of strange results similar to yours when it was inadvertently enabled. I belive a reliable replacement for it is xcache.
    Kehan Harman
    @kehh
    @collectiveaccess - we're going to attempt to make it possible to have lists attributes which only have certain values in them that apply to certain record types - for example an insect specimen would have a preparationType of pinned whereas this wouldn't apply to a plant specimen (which would have herbarium sheet). I know it's possible to have two separate attributes with two separate lists, but that then leads to greater complexity (two separate search form placements, display placements etc). I've got a few questions:
    • does this sound sensible?
    • where would you suggest doing this? I was thinking of adding a type restriction setting to the ca_list_items. This would likely require a new table ca_list_item_type_restrictions.
    • should this be enabled by default or should there be a config item defining whether it's enabled. Should this be on a list by list basis? eg enable_type_restrictions_for_lists = [preparationType, samplingProtocol]
    Karl Krägelin
    @karkraeg
    @kehh Thanks! After Seth fixed PROV-2212 (collectiveaccess/providence@ca185b8) we did not get any error. Instead, we managed to import 1 of 500 media files, so it’s working for us, but only partially. I’m guessing it’s some mistake we’re making though.
    ca-ubos
    @ca-ubos

    Hi! I’ve got a question about browsing in Pawtucket2: I defined browsing terms in the pawtucket browse.conf like this:

    schlagworte = {
        type = authority,
        table = ca_list_items,
        relationship_table = ca_objects_x_vocabulary_terms,
        restrict_to_relationship_types = [schlagwort],
        group_mode = hierarchical,
        show_hierarchy = 1,
        hierarchical_delimiter =  ⬅ ,
        label_singular = _("Schlagwort"),
        label_plural = _("Schlagworte")
    },

    Say I got this hierarchy of vocabulary terms: Nature → Animals → Crab.

    If I add Crab as a related vocabulary term (relationship type: schlagwort) to an object, I see the parent „Nature“ when browsing in Pawtucket. When I klick on „Nature“ (respectively the small arrow besides it) though, nothing happens - the next screens stay blank.

    But when I add „Animals“ to any object (another one or the same, doesn’t matter), browsing fully works in Patwuckt: I can click on „Nature“, see „Animals“, click on it and see „Crab“. Why is it that I can’t skip a level of the hierarchy?

    Thanks for your help!

    sshipley64
    @sshipley64
    I'm trying to figure out what/if there is a data importer existingRecordPolicy that would replace the existing metadata while leaving the media digital object alone. I've tried merge with replace, but that also gets rid of media.
    Kehan Harman
    @kehh
    @sshipley64 do you require the mapping for the media digital object - you could always set that one to SKIP (or some kind of skipIfExpression rule). I think existingRecordPolicy only relates to fields actually in the import mapping.
    Julia
    @juliaweist
    @sshipley64 yes, @kehh is correct. It should only replace if you have a mapping for the object representation(s)
    @kehh typically you'd just include all of the list items (unrestricted) and link/select per record where appropriate. Is there a specific advantage in your set up for including the restrictions?
    Kehan Harman
    @kehh
    @juliaweist This is so that users don't choose terms that don't apply to their particular record type when editing records. These are effectively dependant values in the lists where the values are dependant on the type of record being edited. We are planning on implementing this functionality in CA - we just wanted to do it in a way that was consistent your way of doing things rather than just tacking it on. This is the result of the fact that there will be some users who are less trained than others and we want to still ensure data quality by putting the onus on the system to do this rather than the user, thereby reducing the chance of PEBKAC.
    ericwm
    @eriwm
    Hi,
    Has his seting been removed from prov 1.7.5 I was not able to find it in my app.conf.
    Enabling a "cross-table" hierarchy
    Cook Book Chapter 2
    Problem
    You want to be able to nest Object records underneath Collections hierarchically.
    Solution
    In app.conf, set:
    
    ca_objects_x_collections_hierarchy_enabled = 1
    ca_objects_x_collections_hierarchy_relationship_type = part_of
    Julia
    @juliaweist
    Hi @kehh ok understood. The way that would most closely follow how we are currently handing this would be a type restriction on the list item, articulated the same way we handle restrictions on displays in the profile, i.e.:
    <display code="example" type="ca_objects" system="1" typeRestrictions="library" includeSubtypes="0">
    the problem is, though, that we don't define list items for a particular table the way we do for displays, editors, etc.
    Julia
    @juliaweist
    Are the values that are applicable to the record types grouped in any way in the list, for example underneath common parents?
    If so a better solution may be to adapt the style of our restrict_to_list setting to target specific hierarchy levels and all their children
    Julia
    @juliaweist
    Hi @eriwm thanks for catching that. The feature wasn't removed but it was accidentally left out of app.conf when we redesigned the layout with ASCII art headers :-). I've added it back and pushed to GitHub/develop.
    ericwm
    @eriwm
    @juliaweist Thanks Julia, I will do an update,
    Kehan Harman
    @kehh
    @juliaweist thanks for those pointers. I was starting to think something along the lines of what you've recently done with bundle placements on forms where there's a setting to restrict the types / subtypes for a specific placement similar to https://github.com/collectiveaccess/providence/blob/master/app/models/ca_editor_ui_screens.php#L1719-L1738. However your idea of a parent term may work. However there are options that might be shared between collections so the sublists are not mutually exclusive I don't think.
    Barry Hoggard
    @bhoggard
    I just changed my detail.conf to uncomment representationViewerCaptionTemplate = <div class='small'>^ca_object_representations.preferred_labels.name</div> and now I see [BLANK] for representations where I don't have a title. How do I get rid of that?
    example detail page: https://cl.ly/3J0I3W3d2y1i
    Kehan Harman
    @kehh
    @bhoggard use a conditional unit with an expression - either an <if> or a <case> - see http://docs.collectiveaccess.org/wiki/Display_Templates#Conditional_tags:_.3Cifdef.3E.2C_.3Cifnotdef.3E.2C_.3Cifcount.3E.2C_.3Cif.3E - I suggest a regex match on the [BLANK] string. Let me know if you need more details.
    gotlandsmuseum
    @gotlandsmuseum
    Hello! We just moved and upgraded our Collective Access installation from 1.6 to 1.7 and we now have the problem of being stuck on the login page. When anyone tries to login they are reverted back oi the login form instead of being redirected to the dashboard. Any ideas?
    Barry Hoggard
    @bhoggard
    @kehh I can't do a conditional inside detail.conf, so that approach would require changing the template that representationViewer uses I guess.
    @gotlandsmuseum Can you try logging in with a different browser, or start a new private/incognito window to see if that works? That sometimes indicates cookies that got messed up.
    I had thought that some functions knew to filter out [BLANK], but maybe that's not the case for Pawtucket2
    gotlandsmuseum
    @gotlandsmuseum
    @bhoggard Tried that without any success.
    gotlandsmuseum
    @gotlandsmuseum
    Installed it all over again and now it works :-)
    ca-ubos
    @ca-ubos
    Hi @collectiveaccess, could you please tell me if my problem with browsing hierarchical lists I posted here earlier :point_up: September 14, 2017 4:05 PM is based on a misconfiguration by me or if it’s the indented behaviour of Providence? Thanks for your help!
    Keskora
    @Hyperchema
    Hello! I have a question for you guys. I'm wanting to change what fields are shown about an image on the details and gallery view of my site... where would I configure that? I can't seem to find it anywhere in the .conf files
    this would be on the pawtucket side that is
    Keskora
    @Hyperchema
    Hello again.... I have resolved my previous problem but I am having another error. Whenever I go to change the subject information on an object in providence, the fields are in French. The rest of my backend is in English but just not this one page. Is there a way to fix this?
    Julia
    @juliaweist
    You can change the language/label of the fields under Manage > Administration > Metadata elements > Labels > Name
    Keskora
    @Hyperchema
    None of the metadata elements are in french
    just this one page
    rsteinert
    @rsteinert
    Anyone have an idea why uploaded images for a record upload/download fine but don't show up on the record (blank image marker instead)?
    teresaazevedo08
    @teresaazevedo08
    Hello everyone. Maybe some of you can help me: for now we are only using Providence to create our database, and we need to restrict the access of one user to only a group of objects. I've created a set with all the objects that user (researcher) can see (and not edit), and when he accesses CA there's a search configured so that he can easely access to only that set. The problem is that if he makes a search for any other object he can see it. Is there any way to restrict the access to only one group of objects? Thank you very much in advance!
    Julia
    @juliaweist
    @Hyperchema I'm not sure I follow---the elements on that page are in French though? If so you should be able to change their labels this way. Perhaps you could upload a screenshot to clarify.
    @rsteinert can you provide more detail? Image uploaded to object representations? What type of image? What version are you running, etc.
    @teresaazevedo08 there are many ways to handle access control and the best option depends on the larger workflow of your project (i.e. who else can and can't see what). A few options here: http://docs.collectiveaccess.org/wiki/Access_Control and here: http://docs.collectiveaccess.org/wiki/Access_Control_Settings#Record-Level_Access.
    If you provide more details we can make suggestions.
    teresaazevedo08
    @teresaazevedo08
    Thank you so much for your quick answer. What I specifically want is to make a new user (researcher) able to only have access to the objects related to a specific collection. That is, we have 1500 objects belonguing to "collection X", and this user /login in through providence) should only be able to see those, and not the rest of the objects from our collection.
    Julia
    @juliaweist
    It sounds like source level access control would work best, then.