Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    TBthegr81
    @TBthegr81

    Ok there is something I dont get with locales here.
    I have the Swedish Locale, and its loaded.
    I know what file is loaded becuase of I delete or move that .mo file it says its having problem loading the locale.

    Then I have a view-file in my theme with a _t(), if I change that to some msgid thats already existing, it takes the swedish translation for that key.

    Then I downloaded poedit, downloaded my .po file, added a translation that wasnt there before, compiled it to a new .mo file, checked that the filesize had changed, uploaded the .mo file. And wanted to display this new translation in my view, but it doesnt find it. It falls back to showing the key-name in English.

    Is there a step I am missing here??

    TBthegr81
    @TBthegr81
    Found it... The translation was cached in Pawtuckets /tmp/ folder, cleaned up in there and it loaded just fine
    alimhalinew
    @alimhalinew
    hi
    Is Collective Access compatible with YouTube?
    bzotivla
    @bzotivla
    Hi all,
    I recently started using CA and I have the problem - objects browse "No facets available", on Pawtucket.
    Also, i created a "Public Presentation" with access - "accessible to the public" with objects and it no shows anything, only the name of the Gallery and (1/0) - i only have one object on this set.
    Thank you in advance!
    [Application version - 1.7.6
    Browser - Firefox Quantum 61.0.1 (for Ubuntu)]
    Kehan Harman
    @kehh
    @bzotivla can you ensure that the records that you want to expose have their access field set to publicly available? Pawtucket restricts the data according to the access field. You can confirm if this is the the cause by changing the settings listed here: https://docs.collectiveaccess.org/wiki/Pawtucket_Application_Configuration#Item_Viewability_.28access_enforcement.29 but please remember to switch them back so that you don't expose any data that is actually resticted.
    TBthegr81
    @TBthegr81
    Is it possible to setup 1 backend Providence with 2 different frontend Pawtuckets, and each Pawtucket lists and have access to a subset of the content in the Providence?
    Could you add som limit in the Pawtucket-config files for what type of objects that gets displayed and if they are filtered by some kind of tag or something?
    bzotivla
    @bzotivla
    @kehh I changed a value and it works now. Thank you so much!
    TBthegr81
    @TBthegr81

    Also having problems with email sending.
    I have access to a SMTP server on another host and I have tested the connection by sending an email via telnet.
    Same hostname/port is written in every setup.php (Pro/Paw) but no mails are ever sent.

    Is there some PHP Email plugin I should install?

    TBthegr81
    @TBthegr81

    Have tracked the problem down to Zend/Mail.php where it chooses the method for Mail delivery. Its suppose to use their smtp transport ('Zend/Mail/Transport/Smtp.php') but it defaults to the class 'Zend/Mail/Transport/Sendmail.php'.

    ... And there we go, in global.conf there was a setting "smtp_use_sendmail_transport" that made Mail.php pick Sendmail instead, thuse disabling the SMTP settings.
    Put that to a 0 and password-reset mail got sent.

    bowbot
    @bowbot_twitter
    Is it possible to create an import map to create metadata fields and bypass the manual web UI process? https://docs.collectiveaccess.org/wiki/Configuring_Metadata_Elements
    Kehan Harman
    @kehh
    @bowbot_twitter I have done something similar by using the import mapping to create a CA installation profile xml based on the fields in the mapping, but it's really hard and brittle. I've been working on a data migration tool for copying from a MySQL database using an import mapping, but that currently doesn't do anything about the field definitions. However it does grumble if the field doesn't exist. Going to open source the migration tool soon (next month or so).
    bowbot
    @bowbot_twitter
    Thanks! @kehh will watch for it.
    Kehan Harman
    @kehh
    Hey all - is it possible to define a 'variable' in a display template to use elsewhere within another unit? Similar to how you can specify 'environment' in a data migration import mapping?
    CollectiveAccess
    @collectiveaccess
    @kehh Not currently
    Kehan Harman
    @kehh
    @collectiveaccess thanks.
    Kehan Harman
    @kehh
    Another display template question - can I get just the end date of a date range attribute? Similar to getDirectDate?
    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