Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    sterlingjenson
    @sterlingjenson
    If you have not used C/A before, I want to emphasize that the devs tried to make it highly customizable. I find that I like elements from one profile that is not in the one I want to use.
    For instance the dublin core profile did not have a condition report section, so I developed a whole section to record conditions of the items
    murchmurch
    @murchmurch
    Hi, im tyring to import word documents into CA, I have LibreOffice 5.2 installed and configured in the CA settings file. When I do a import of a *.docx file i get a popup from LibreOffice saying: "Cant start the program. Configurationfile bootstrap.ini is damaged" Any ides on what may be the problem? (Im running on a windows 10 machine)
    ericwm
    @eriwm

    @collectiveaccess Good Morning. I have finally got my doc viewer working properly - my gmagick-php extension was not working correctly . I can now get page previews for .doc files but when I try to upload .xls or .ppt files (using media upload in the object editor) the ca editor screen disappears and this message appears
    Notice: Undefined offset: 0 in /var/www/html/providence/app/lib/core/Db.php on line 267

    Fatal error: Uncaught Error: Class 'ZipArchive' not found in /var/www/html/providence/app/lib/core/Parsers/PHPExcel/PHPExcel/Reader/Excel2007.php:94 Stack trace: #0 /var/www/html/providence/app/lib/core/Plugins/Media/Office.php(331): PHPExcel_Reader_Excel2007->canRead('/tmp/phpW7UfF2....') #1 /var/www/html/providence/app/lib/core/Plugins/Media/Office.php(193): WLPlugMediaOffice->isWordExcelorPPTdoc('/tmp/phpW7UfF2....') #2 /var/www/html/providence/app/lib/core/Media.php(190): WLPlugMediaOffice->divineFileFormat('/tmp/phpW7UfF2....') #3 /var/www/html/providence/app/lib/core/BaseModel.php(4187): Media->divineFileFormat('/tmp/phpW7UfF2....') #4 /var/www/html/providence/app/lib/core/BaseModel.php(2479): BaseModel->_processMedia('media', Array) #5 /var/www/html/providence/app/lib/core/BaseModelWithAttributes.php(474): BaseModel->insert(Array) #6 /var/www/html/providence/app/lib/ca/BundlableLabelableBaseModelWithAttributes.php(249): BaseModelWithAttributes->insert(Array) #7 /var/www/html/providence/app/models/ca_object_represen in /var/www/html/providence/app/lib/core/Parsers/PHPExcel/PHPExcel/Reader/Excel2007.php on line 94
    I get a similar error message when trying to upload .ppt files.
    I am using ubuntu 16.04 ,1.7 dev schema 143 and php7
    Any suggestions on how to fix this would be most welcom

    Julia
    @juliaweist
    @artvrc can you give an example of somewhere commas are ignored? Also your constant is entered incorrectly for ca.entities.Entity_source_menu. This should be the list value code you are targeting to be imported for all rows for that element.
    Kehan Harman
    @kehh
    @eriwm I believe you need the PHP zip extension enabled on your machine: http://www.php.net/manual/en/book.zip.php
    On Ubuntu you can install this using apt install php-zip.
    ericwm
    @eriwm
    @kehh Hi Kehan, thanks for your reply. I have installed php.zip and I can now upload .xls and see a thumbnail in my object editor. I cannot see page previews in the viewer which is probably related to these errors which are now showing up. Hope the Errors.doc is readable. Any help would again be much appreciated Eric.
    ericwm
    @eriwm
    @kehan, scratch the above I have done a git clone of the latest 1.7dev and tried to install now system is broken I will have to investigate this problem before worrying about media uploads.
    ericwm
    @eriwm
    @kehh Seems like I broke something in PHP7 when I installed php.zip. I have re-installed everything and can now upload and view .xls files but .ppt still does not work. I have switched on display errors in php but nothing shows up. Trying to upload .ppt results in ca screen disappearing from browser and thats where it ends. Any ideas?
    artvrc
    @artvrc
    Screen Shot 2017-02-21 at 1.55.41 PM.png
    @juliaweist It is ca_entities.preferred_labels that gets cut off after a comma.
    @juliaweist As for ca.entities.Entity_source_menu you pointed out that it's incorrect, I thought I entered the list item identifier that I wanted to be chosen correctly (according to http://docs.collectiveaccess.org/wiki/Data_Importer#Rule_types, it says " You can also set a constant data value, rather than a mapping, by setting the rule type to "Constant" and the Source column as the value or list item idno from your CollectiveAccess configuration. "). So I entered the list item idno for "VRACore entity list (Local)". It still won't get imported, though.
    murchmurch
    @murchmurch
    Hi! Do you know where i can find the log files? My import of doc files fails, and i need to find out what is actually happening.
    Julia
    @juliaweist
    @artvrc Ok I see. The cut off is happening because of the way we parse names. Try mapping to ca_entities.preferred_labels.surname.
    Is ca_entities.Entity_source_menu a list? If so it can't take just any value, only the list items defined in the config for that list
    The issue with the import for this one is in your mapping: ca.entities.Entity_source_menu should be ca_entities.Entity_source_menu
    @murchmurch you can find the log under /app/log if you are running the import through the UI. The server needs write permissions to /app/log in order to generate the log file
    murchmurch
    @murchmurch
    Thanks, but the folder is empty. Do I need to enable error logging somwhwere?
    Julia
    @juliaweist
    Yes, the server needs write permissions to the folder
    artvrc
    @artvrc
    @juliaweist Thank you, Julia! All seems good now.
    artvrc
    @artvrc
    Screen Shot 2017-02-23 at 11.57.20 AM.png
    I am having trouble importing more than a couple of thousands of records. It hung up close to 2000. This was one of my smaller files, and eventually I need to import a file that contains 63,000 records. What can I do to proceed without crash?
    Julia
    @juliaweist
    @artvrc for larger imports you should run it on the command line:
    gotlandsmuseum
    @gotlandsmuseum
    Hi! We have started getting the error message a lot: Fatal error: Maximum execution time of 30 seconds exceeded in /Library/Server/Web/Data/Sites/ca.gotlandsmuseum.se/providence/app/helpers/utilityHelpers.php on line 333
    What could be wrong?
    Kehan Harman
    @kehh
    @gotlandsmuseum that could be due to any number of reasons. It might be that you have out of process search indexing disabled: https://github.com/collectiveaccess/providence/blob/master/app/conf/app.conf#L1401, or you might be trying to process any uploaded files within the web request rather than through the CA Queue system. Experiment with enabling the queue: https://github.com/collectiveaccess/providence/blob/master/setup.php-dist#L120-L126. Alternatively it might be that your MySQL server hasn't been tuned for production use and the requests just can't be processed in time. The limit is set by the max_execution_time directive in php.ini, and you can increase that incrementally to see how long you need for the request to finish. Ensure that you restart apache / php-fpm after changing php.ini.
    If you enable the queue you'll have to enable a cron job to process the queue.
    Kehan Harman
    @kehh
    It is possible to add a browse facet listing relationship types but not the items from the target of the relationship? My use case here is I want to browse to find entities who have been an Artist / Etcher, Collaborating Artist, etc.
    I'm thinking maybe the has type will work for this?
    Karl Becker
    @karbecker
    Hi there! Could anybody help me out with an example mapping for importing a hierachical vocabulary list? I’ve tried using the listItemHierachyBuilder many time and never got it to work in any way… It would be great to see just a small working example which I could use as a blueprint for my own mapping! Thanks!
    ThunderTurtles
    @ThunderTurtles
    Hi Karl, I've never actually used the listItemHierachyBuilder but the syntax should be the same as the storageLocationHierarchyBuilder. I've attached a working example of that. Hopefully it's helpful.
    Julia
    @juliaweist
    @ThunderTurtles great name!
    Karl Becker
    @karbecker
    @ThunderTurtles Thanks! We'll try this probably next week and I'll keep you posted on the outcomings!
    artvrc
    @artvrc
    A question about data/media import in Providence.. When I do data import, it overwrites the media import that was done before, and all images attached to the objects before disappear. Is this a normal behavior, or is there a setting to retain media when doing another data import?
    naeemmuhammad
    @naeemmuhammad

    We have some trouble in displaying interstitial data by using display templates in pawtucket2.
    We have a field ‘Author’ with element code ‘marc700’, which consists of a container with element code ‘marc700_line1’, this container subsequently consists of an element with code ‘marc7009’ of type ‘Text’. This field is bounded to ‘object<=>entity’ relationship. We use ‘Author’ to fill in relationship data on a relationship screen (interstitial). When we access this field on object detail page in Pawtucket2 nothing appears, although data is shown correctly in Collective Access (version 1.6.1).
    In Pawtucket2 object detail page (\views\Details\ca_objects_default_html.php) we use the following display :
    {{{
    <unit relativeTo="ca_entities" restrictToRelationshipTypes="aut" delimiter="<br>">
    ^ca_entities.preferred_labels
    <unit relativeTo="ca_objects.related" delimiter=", ">
    ^ca_objects.marc700.marc7009
    </unit>
    </unit>
    }}}

    Type restriction “aut” (restricting results to a particular author type) is working and preferred labels of entities are displayed correctly. However, the second ‘<unit>’ tag gives no results. With this tag we want to show the ‘Author’ interstitial information. We tried various combinations in ‘relativeTo’ attribute but no success. We used examples given in the documentation, but nothing worked. Any help to solve this problem?

    Julia
    @juliaweist
    @artvrc only if you're using the overwrite or replace settings. Try none or merge
    brunocalado
    @brunocalado
    Demo is no long working. http://demo.collectiveaccess.org/index.php/system/auth/login error: Could not load language 'pt_BR'
    Julia
    @juliaweist
    @brunocalado sorry about that! Should be back up now.
    brunocalado
    @brunocalado
    The same happen to my instalation. How do I fix?
    Thank you
    Julia
    @juliaweist
    Are you trying to use the Portuguese (Brazil) translation? Please provide some info about your set up
    artvrc
    @artvrc
    I am trying to make the object <--> occurrence relationships work. I have included Related Objects in the occurrence UI, but it's not pulling up the occurrence record that is chosen in the object record. I have tried restricting the relationship type on the occurrence UI too, but no luck. What am I missing??
    Julia
    @juliaweist
    Have you tried removing all restrictions? Type and relationship type?
    artvrc
    @artvrc
    Screen Shot 2017-03-07 at 12.14.23 PM.png
    Screen Shot 2017-03-07 at 12.14.08 PM.png
    Yes, no restrictions are selected.