Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    GautierMichelin
    @gautiermichelin
    yes, that's what I think
    Stefan
    @stefankeidel
    That being said it's not out of the question some stuff isn't covered
    This one still passes and there are a couple of container expressions in there: https://github.com/collectiveaccess/providence/blob/master/tests/testsWithData/get/AttributeGetTest.php
    GautierMichelin
    @gautiermichelin
    hum, no list value in this test
    Stefan
    @stefankeidel
    Does your list element have an empty label or idno?
    GautierMichelin
    @gautiermichelin
    10sec, I clean my very fast and not so clean test script, so I can copy-paste here 6 lines of code...
    Stefan
    @stefankeidel
    Actually, there is a list value in that test
    the very first assertion
    GautierMichelin
    @gautiermichelin
    oups, sorry
    yes, ca_objects.date.dc_dates_types
     $o_search = new ObjectSearch();
     $qr_results = $o_search->search("M├ętope");    
    
     $count = 1;
     while($qr_results->nextHit()) {
         //$qr_results
         print "Hit ".$count.": ".$qr_results->get('ca_objects.preferred_labels.name')."<br/>\n";
         print "Hit ".$count.": ".$qr_results->get('ca_objects.materiaux_tech_c')."<br/>\n";
         print "Hit ".$count.": ".$qr_results->get('ca_objects.materiaux_tech_c.materiaux')."<br/>\n";
         $count++;
     }
    `
    this is the code I use, quite really simple
    metadata names are ok
    I get :
    Hit 2: Tirage partiel d'un bloc d'angle: fragment
    Hit 2: 14008;13977
    Hit 2:
    as an answer
    GautierMichelin
    @gautiermichelin
    the 14008 is a valid list value for "materiaux"
    even if I move away the search, to instantiate a single ca_objects item, I do have the same results
    just tested something weirder : if I a simple text metadata in addition of my 2 list fields, I get the value through get('ca_objects.materiaux_tech_c.textfield')
    seem to me that there is something with lists here
    inside BundlableLabelableBaseModelWithAttributes.php, the treatment is done through $this->_rowAsSearchResult->get($ps_field, $pa_options);
    GautierMichelin
    @gautiermichelin
    Am I wrong or is it app/lib/core/SearchResult.php that handles the intelligence here ?
    I'm trying to refine where to look at, Stefan, sorry to bother :-(
    CollectiveAccess
    @collectiveaccess
    It's all in SearchResult.php
    GautierMichelin
    @gautiermichelin
    thanks Seth
    CollectiveAccess
    @collectiveaccess
    send me a dump of your database and I'll figure out what the issue is
    GautierMichelin
    @gautiermichelin
    I'm on it
    GautierMichelin
    @gautiermichelin
    ok, I'm removing all but one object with all the lists, I had to ask the data owner the authorization to send you a dump. Thanks
    ericwm
    @eriwm
    Good day All, Some belated feedback on my attempts to get providence develop running properly. It turns out that at the same time I downloaded the clone version I also updated my 14.04 Server software and unbeknown to me the server went into a login loop so I could not login to anything. Tried all the workarounds but none fixed the problem so I did a reinstall of the whole server using Ubuntu 16.04. I set everything up and ran the providence installer which completed successfully (in var/www/html/). Now when I try to log in I get this error "The requested URL /providence-develop/system/Auth/DoLogin was not found on this server." I have looked in the files system and cannot find any system Directory. Don't know if this is because I am using a new version of the server with PHP7 or something wrong with my set up. Any help would be appreciated Thanks.
    Stefan
    @stefankeidel
    Sounds like a misconfiguration in setup.php. Either __CA_BASE_DIR__ or __CA_URL_ROOT__
    That's just a guess though
    ericwm
    @eriwm
    Thanks Stefan, I will follow up on this and see what happens.
    Stefan
    @stefankeidel
    Just try to use the default autodetect settings for those two. They should work in most cases
    ericwm
    @eriwm
    Hello Stefan, The default autodetect settings result in "The requested URL /providence-develop/system/Auth/DoLogin was not found on this server."
    ericwm
    @eriwm
    My install is in var/www/html/providence and php info tells me that my document root is /var/www/html . I have tried using /providence for the root directory and var/www/html for the base but just get more errors - strange because I have never had this problem with any of my previous providence version installs? (Note I am now using the clone package name providence not providence-developfrom the zip version)
    I also did a directory search in providence and do not see a /system/folder !!
    jessica-s
    @jessica-s
    @kehh thanks for your reply to my query back on May 2. I allocated a group access to screens within the UI > object editor - selected 'can read' as you suggested. But when I log in as a user in that group, and click on an individual object, the same thing happens, the only thing I can see is a summary of whatever display is set, not all the screens and fields within object editor. I've put their entire list of metadata elements as 'read/edit access' too in Access Control.. no difference.. any other tips?
    Kehan Harman
    @kehh
    @jessica-s Is it using the correct UI for that record type? Look under Preferences > Editing > User interfaces for objects - your customised editor should be listed there as the default for that account. Another thing to look at is access control for that role (Manage > Access Control > Roles > {Insert your role name here} > Object Editing > Edit Object). If they don't have access to editing then only the summary will show up.
    @eriwm there should be an AuthController.php at app/controllers/system/AuthController.php
    jessica-s
    @jessica-s
    Hi @kehh, ok yep that solves it then - I thought if I clicked 'edit objects' in the access roles that would mean they could edit. But I clicked that, then changed all the metadata elements to 'read only' and it worked! Thank you so much, i knew it had to be something simple! :)
    mrjayviper
    @mrjayviper
    question on multipart_id_numbering.conf. I was having a looking at this file and it seems to contain only 1 variable (compared to say app.conf). I made a copy of the file to my conf/local folder. I want to modify the ID format for 1 but default for the rest. Can I just include the ID I want to reconfigure?
    example: formas = { ca_objects{....} }
    ca_object_lots, ca_occurences and etc have been deleted in the conf/local copy. Thank you. ps. I hope I was clear with my question.
    ericwm
    @eriwm
    Thanks for the info Kehan.
    ericwm
    @eriwm
    I have got a bit further now that when I try to connect to providence I get the CA logo in the top left corner of my browser with a text entry box underneath it but this is where the system hangs. I f I look in the apache2 error log I see this - PHP Parse error: syntax error, unexpected '.', expecting ',' or ';' in /var/www/html/providence-develop/app/lib/core/Media/MediaViewerManager.php on line 49 .And this is a copy of that line 49 static $smediaviewerplugindir = __CA_LIB_DIR.'/core/Media/MediaViewers'; - I see that __CA_LIB_DIR is required once in the AuthController.php . Is it possible that this error is related.
    ericwm
    @eriwm
    Eureka - trashed everything on my harddrive - reinstalled 14.04LTS with all the latest updates, dowloaded providence-develop clone and installed. Now everything is working again. Thanks for all the advice.
    ericwm
    @eriwm
    Spoke too soon now have this error is appearing in my apache2 error log when trying to connect PHP Parse error: syntax error, unexpected '.', expecting ',' or ';' in /var/www/html/providence-develop/app/lib/core/Media/MediaViewerManager.php on line 49, referer: http://192.168.1.103/providence-develop/index.php/system/auth/login?redirect=http%3A%2F%2F192.168.1.103%2Fprovidence-develop%2Findex.php%2FDashboard%2FIndex%2Faction%2Flogin
    mrjayviper
    @mrjayviper
    hello again!
    data import help: I have some stuff here which I wanna import into movements. These are basically new records since our movements "table" is currently empty. one of the columns on source spreadsheet is the object idno. I want relate the new movement with an existing object.
    I have a feeling I need to be using the parent parameter but unsure of this and the other parameters that may be required. Can you please help? thanks
    I looked at the different parameters and the best I can come up is this: {"parents":[{"idno":"^my-column-number-here"}]}
    CollectiveAccess
    @collectiveaccess
    @ericwm What version of PHP are you running? I just noticed that a line in MediaViewerManager.php doesn't play nice with PHP 5.5.
    It's fine in PHP 5.6 and 7 though
    I just committed a change to fix this
    @mrjayviper I'm afraid with multipart_id_numbering.conf the entire file needs to be defined when you go local