Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Kehan Harman
    @kehh
    And another query - is it possible to move objects to a different hierarchy using the hierarchy location bundle?
    (to be clear I want to move a first level child to a different root parent)
    CollectiveAccess
    @collectiveaccess
    @kehh Yes. Just search for the root you want to move it to.
    Kehan Harman
    @kehh
    Sweet thanks.
    murchmurch
    @murchmurch

    Hi! Im trying to import images into CA and extracting metadata using the EXIF tool. When i run the import i get this log: 2018-09-02 8:17:12 - INFO --> Found 2 files in directory 'H:/xampp/htdocs/providance17/import/mia'

    2018-04-20 8:18:41 - INFO --> Started import of H:/xampp/htdocs/providance17/import/mia/UlfWickbom_text.jpg using mapping 1234
    2018-04-20 8:18:41 - ERROR --> Could not read source H:/xampp/htdocs/providance17/import/mia/UlfWickbom_text.jpg (format=exif)
    2018-04-20 8:18:41 - INFO --> Importerade UlfWickbom_text.jpg som UlfWickbom_text.jpg

    As you can see the Files are found in the folder but when the EXIF part of the operation is run it can no longer find the file:
    2018-04-20 8:17:12 - INFO --> Found 2 files in directory 'H:/xampp/htdocs/providance17/import/mia'
    2018-04-20 8:18:41 - INFO --> Started import of H:/xampp/htdocs/providance17/import/mia/UlfWickbom_text.jpg using mapping 1234
    2018-04-20 8:18:41 - ERROR --> Could not read source H:/xampp/htdocs/providance17/import/mia/UlfWickbom_text.jpg (format=exif)
    2018-04-20 8:18:41 - INFO --> Importerade UlfWickbom_text.jpg som UlfWickbom_text.jpg

    Do I have to specify something special in the mapping file for the file location to make it work? I get the same behavior on a Ubuntu system..
    If i configure the media_metadata.conf file to import the metadata it works as a charm.. But this does not give me the specific specific control that the import file gives. Any ie whats going on?
    I have created a Data mapping excell that has EXIF as Imput Format and im using the media import setting "Extract embedded metadat object using mapping"

    Ant help would be much appreciated!!

    naeemmuhammad
    @naeemmuhammad
    Hi,
    naeemmuhammad
    @naeemmuhammad
    Hi,
    It seems lookup fields are not working in advanced search. None of lookup fields are searching and shown list they are linked with. Lookup fields work fine at other places, such as object editor. I tested it on Collective Access demo site as well and found out that lookup fields are not working in advanced search. On demo site, when same field was changed to drop-down list it displayed the list in advanced search. I tested with 'Location Where Found' field (element_id=90). Anyone else experienced the same problem? And any solution to make lookup field work in advanced search?
    Kehan Harman
    @kehh
    @murchmurch do you have the exif php extension installed / enabled? If not then try enabling it, and if so try disabling it.
    @naeemmuhammad check for JS errors in your console when opening the advanced search page.
    naeemmuhammad
    @naeemmuhammad
    @kehh ok i will. I tested them on different browsers just to make sure if it is a java script error or something else. But no success.
    murchmurch
    @murchmurch

    @kehh Im not quite sure how to enable it. I have it in the external_application.conf file :

    Path to ExifTool binary (http://www.sno.phy.queensu.ca/~phil/exiftool/)

    exiftool_app = /usr/bin/exiftool
    And the exiftool is in that directory. Do i have to do something else?

    murchmurch
    @murchmurch
    @kehh I think i solved it... it seems that the path should be the full path and the exe file:
    /usr/bin/exiftool/exiftool seemed to have done the trick...
    murchmurch
    @murchmurch

    @kehh Unfortunately my windows installation still has the same problem, In the Application_config i have put in the path of the exiftool.ex :
    Path to ExifTool binary (http://www.sno.phy.queensu.ca/~phil/exiftool/)
    exiftool_app = c:\temp\exiftool.exe
    but in the log i get :
    ERROR --> Could not read source H:/xampp/htdocs/providance17/import/mia/UlfWickbom_text.jpg (format=exif)

    the JPG file is locataed at the correct URL

    any ide?

    Kehan Harman
    @kehh
    @murchmurch not sure - have you tried reading the file directly with exiftool? Or with with an application that shows you the exif data? I know GIMP does a good job of this and is available for windows.
    murchmurch
    @murchmurch
    @kehh I have the excat same image file and the exact same data maping file on a Ubuntu system, where the exiftool extraction works correct. But on the windows machine it seems not to be able to find the exiftool exe file... Is there ant other way to extract metadata from a image and put it in to CA when you do a import of images?
    murchmurch
    @murchmurch
    @kehh As i understand its this line of code that does the actuall exiftool call:
    exec("{$vs_path_to_exif_tool} -json -a {$vs_unknown_param} -g1 ".caEscapeShellArg($ps_filepath)." 2> /dev/null", $va_output, $vn_return);
    If i enter the same line in the comand prompt i get a nice response from exiftool...
    H:\exiftool -json - a -g1 H:/xampp/htdocs/providance17/import/mia/UlfWickbom_text.jpg
    murchmurch
    @murchmurch

    @kehh @collectiveaccess So i finaly figured it out. There where 3 things in conjunction that made this fail on a Windows machine:

    1)
    The function caExifToolInstalled() in mediaPluginHelpers.php always returned false on a windows system:
    Sollution move up the :
    if (caGetOSFamily() == OS_WIN32) to the top of the function, otherwise its never tested and the function returns false

    2)In a Windows enviroment the function caExtractMetadataWithExifTool() in mediaPluginHelpers.php need to be changed. The exec that runs the exiftool uses the output redirection > that fails . :
    exec("{$vs_path_to_exif_tool} -json -a {$vs_unknown_param} -g1 ".caEscapeShellArg($ps_filepath)." 2> /dev/null", $va_output, $vn_return);
    needs to be changed to:
    exec("{$vs_path_to_exif_tool} -json -a {$vs_unknown_param} -g1 ".caEscapeShellArg($ps_filepath)", $va_output, $vn_return);

    3)
    In the external application config the path to the exiftool.exe need to be put in as: c://path//exiftool so that PHP can read it and not in the standard windows path c:\path\exiftool

    When all three changes are made then everything works!!!!!
    I dont know if its possible to implement these changes in a future release @collectiveaccess?

    Kehan Harman
    @kehh
    @murchmurch you shouldn't need the double forward slashes - PHP on windows automatically converts forward slashes to back slashes for the OS. I think it should still work as c:/path/exiftool.
    Biblioteca é muito +
    @bib_mais_twitter
    I need to show in the list of results the 'user name' who created a record; how could I edit content list to display this information? using Providence 1.7.3 and we would to create a display that shows in results "user name" connected with object created. In Manage > My Displays > item search in Display list contents (we do not find option to insert user name (ca_users) that appears in Log.
    Any suggestion how to do that? Thanks
    Kehan Harman
    @kehh
    @bib_mais_twitter try ^ca_objects.created.user (there's also fname, lname, email).
    Massimiliano Losego
    @losegomax_twitter
    image.png
    we're experiencing a problem with Pawtucket slideshow when images are more than 3.
    Anybody has the same issue?
    We can't replicate the problem with the previous version of viewer in Pawtucket.
    TBthegr81
    @TBthegr81

    Am trying to save an object but having trouble figuring out the syntax.
    Creating my object with
    $entity = new ca_entities();
    $entity->setMode(ACCESS_WRITE);
    $entity->set('type_id', "76");

    And that all works, if I do a
    $entity->insert()
    It gets saved.

    But then I wanna add some name/email and whatnot values, tried
    $entity->addAttribute('email', $email);
    $entity->set('email', $email);

    But that doesn't seem to work, what am I missing?

    Biblioteca é muito +
    @bib_mais_twitter
    @kehh it worked, thank you very much! In addition, could this element (ca_objects.created.user) be included as an item in the search form? perhaps as an access point?
    Kehan Harman
    @kehh
    @bib_mais_twitter I'm not sure about that. Give it a try by creating an access point.
    bzotivla
    @bzotivla
    Hi all,
    I'm having some problems with the media in Pawtucket.
    In the image below (my Pawtucket installation) you can see that the image is broken and does not appear. I have media representation access set to "Accessible to public" so I have no idea what I'm doing wrong. Any thoughts?
    Thanks in advance.
    media.png
    Kehan Harman
    @kehh
    @bzotivla can you check whether the URL specified by the image tag is accessible by your web server.
    With Pawtucket you generally have to either copy the media in to the pawtucket installation make it available by a symbolic link. See https://docs.collectiveaccess.org/wiki/Installing_Pawtucket#Dealing_with_symlink_troubles for some help.
    Beatrice
    @bliberi_gitlab
    I'm experiencing the same exact problem with image viewer as @losegomax_twitter. It looks like if, when there are more than 3 images, a completely different component with an iframe is loaded. Is there someone that knows what's going on?
    bzotivla
    @bzotivla
    @kehh that didnt work. What value should i put on "public_access_settings" (app.conf) of Pawtucket? I have [0] and it shows everything i want except the image. It is a wrong value?
    My web server "says" that is not possible to load the image.
    thanks!
    CollectiveAccess
    @collectiveaccess
    @bliberi_gitlab You can set things such that a document viewer interface is used if there are more than X images
    @bliberi_gitlab Take a look in media_display.conf under the entry for image formats.
    You'll see directives: either use_mirador_for_image_list_length_at_least or use_universal_viewer_for_image_list_length_at_least
    Set these higher, or remove them entirely
    @bzotivla What sort of web server is this? Linux? Windows? Mac?
    bzotivla
    @bzotivla
    @collectiveaccess Its Linux
    Beatrice
    @bliberi_gitlab
    @collectiveaccess thank you!
    CollectiveAccess
    @collectiveaccess
    @bzotivla If you're getting broken images then it's likely that your media is in the wrong place, or your symlink is pointing the wrong location. Where is your back-end located on the server? And where is Pawtucket located on the machine?
    bzotivla
    @bzotivla
    @collectiveaccess The problem has been solved. It was a problem with the symlink. Thank you!
    OBXLABS
    @OBXLABS
    Hi @collectiveaccess - I asked this question on the forum but it's perhaps better placed here:
    Our institution is interested in using CA to manage our digital and physical archives. I've tried to go through the data import tutorial but it hasn't been successful. Most of the metadata does not import, including dates and descriptions. Are the sample mapping and sample data xlsx sheets up to date?
    sterlingjenson
    @sterlingjenson
    @OBXLABS , Perhaps double check the names of the fields that you want to import as I recall when I did the mapping a small typo in one of fields meant that the data was not being imported correctly.
    sterlingjenson
    @sterlingjenson
    I remember having to change the dates in the data as different individuals catalogued the dates differently. We had YYYY-MM-DD format and the importer wanted MM-DD-YYYY. I recall seeing a discussion about how to allow CA to import YYYY-MM-DD format after the fact, so I know the program has an option to import that date format
    Michael Schär
    @Michael-Schaer
    Hi there, what is the syntax in the data import mapping for importing to a metadataElement?
    Something like this:
    Rule type, Source, CA table.element
    Mapping, 1, myCustomMetaDataElement
    Michael Schär
    @Michael-Schaer
    Found it: The answer is "ca_objects.myCustomMetaDataElement"
    Julia
    @juliaweist
    @Michael-Schaer yes that's correct but keep in mind that ca_objects can more generally be ca_table.myCustomMetaDataElement
    and that for containers the syntax is ca_table.myCustomMetaDataElement.containerSubElement
    @OBXLABS - answered your question on the forum but here it is again: The CA demo site does not use the installation profile (aka CollectiveAccess configuration) that's provided on the Data Import Tutorial page, although it has some fields in common and those you've identified because they've imported correctly. To use the sample data and mapping available on the Data Import Tutorial page you must install the import profile configuration in a CollectiveAccess testing space.
    Josh Morgan
    @FantabulousJosh_twitter
    Having a bit of issue searching on a vocabulary in advanced search. Typing in any value does not return a result, nor does it start suggesting lists via type-ahead. This may be connected to the issue of Browse searching and nothing showing up when I click Terms.
    Julia
    @juliaweist
    @FantabulousJosh_twitter - how is the vocabulary set up in your system? As a relationship to ca_list items, or a metadata element drop-down list?