Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    CollectiveAccess
    @collectiveaccess
    Ok I'll try to work on this this weekend. It won't happen during the week I'm afraid
    harrelle
    @harrelle
    Hi, I'm having a problem trying to use the Universal viewer in Providence 1.7.5 -- big page views of previously uploaded PDFs aren't showing up at all even after reprocess-media. Thumbnails in the left pane are showing up but load sloooowly... I thought maybe my PDFs were just too big but if I reupload them they seem to show up fine. Anything else I can try? ¯_(ツ)_/¯ RHEL 6.9 php 5 ....???
    sterlingjenson
    @sterlingjenson
    @harrelle Which pdf plug in are you using?
    Jonathan Clancy
    @jpclancyarthist_twitter
    I'd like to install collective access on my Mac to create a demo site. Is this possible?
    Mike Benowitz
    @mwbenowitz
    @jpclancyarthist_twitter definitely! Probably the easiest way is to set up using XAMPP (https://www.apachefriends.org/index.html) or a similar apache development environment and then following the directions at: http://docs.collectiveaccess.org/wiki/Installing_Providence. You can also set up a MAMP server on your own, but that is a bit more involved
    Jonathan Clancy
    @jpclancyarthist_twitter
    Thank you. I'll try it and keep my fingers crossed
    brunocalado
    @brunocalado
    Hi. I just installed pawtucket following the instructions but I can't find any of the art on the instalation. I have set the art to public in the CA. What have I missed?
    Mike Benowitz
    @mwbenowitz
    @brunocalado check to be sure that the media directory in pawtucket is pointing to the providence media directory, that could be an issue with a symlink, also check the __CA_APP_NAME__ setting in the setup.php file for pawtucket. That is used to set the media directory and if it doesn't match what is in the providence setup.php it won't be able to locate any media files
    naeemmuhammad
    @naeemmuhammad
    Hi, Collective Access website(http://www.collectiveaccess.org/) and forum (http://www.collectiveaccess.org/support/forum/index.php) are not accessible for a few days. I was wondering if these urls have been changed?
    brunocalado
    @brunocalado

    @mwbenowitz thank you for reply.

    I set up 4 art work to public. All of them have media.

    They´re title appears on pawtucket but I can't see any other data. The only information I get is:

    Mulher de papel
    ARTE
    IDENTIFIER:
    mpap1
    (had as creator)
    (had as creator) (is described by)
    (is described by)
    (is described by)
    (is described by)
    (depicts)

    The CA_APP_NAME is equal in ca/setup.php and ca/pawtucket/setup.php.

    The link is media and points to:
    lrwxrwxrwx 1 mint mint 23 Dez 13 15:12 media -> /var/www/html/ca/media/
    I also tried:
    lrwxrwxrwx 1 mint mint 9 Dez 14 10:49 media -> ../media/

    Mike Benowitz
    @mwbenowitz
    @brunocalado the object representations themselves must be set to be publicly accessible as well as the object they are associated with
    CollectiveAccess
    @collectiveaccess
    @naeemmuhammad The sites are up and people have been posting. Perhaps your network has an issue?
    @zombabie What book viewer are you referring to. The two viewers you mention are all there is in 1.7.5
    CollectiveAccess
    @collectiveaccess
    1.7.5 the old NYTimes viewer is no longer supported. Mirador and UniversalViewer are the options now.
    brunocalado
    @brunocalado
    @mwbenowitz now there is media showing off. How can I show the fields in the object? There is nothing more then the art title.
    Mike Benowitz
    @mwbenowitz
    @brunocalado You can set what fields display for each image in your theme's detail.conf. For each type of record you can change the representationViewerCaptionTemplate setting to display multiple fields
    askaandfish
    @askaandfish
    Hi, just want to ask for help why pdf cannot preview and find somebody also encounter same problem here.......has it been fixed? Thanks!
    I'm using Windows and Apache
    ca-ubos
    @ca-ubos

    Hi! I need some help using php preg_replace with attributes in pawtucket2. For instance I’d like to change the LCSH ID to a URL.

    Calling

    <unit relativeTo="ca_objects.lcsh_terms.id" delimiter="<li>"><a href="^ca_objects.lcsh_terms.id">^ca_objects.lcsh_terms.text</a></unit>

    gets me info:lc/authorities/names/n86705923. Using preg_replace I wish I could change this to http://id.loc.gov/authorities/names/n86705923. The following code however does not work:

    <?php
        $str = '^ca_objects.lcsh_terms.id';
        $re = '/info:lc/';
        $subst = 'http://id.loc.gov';
        $result = preg_replace($re, $subst, "$str");
        echo "The result of the substitution is ".$result;
    ?>

    The output is:

    The result of the substitution is info:lc/authorities/names/n86705923

    What am I missing here? It is like the $str is not handled as a string…

    sshipley64
    @sshipley64
    I'm having an issue that often but not always, when I try to save search tools, metadata elements in the manage menu or create entities from the quick add , the user is logged out, and all the information is gone when logged back in. This can happen several times in a row.
    Mike Benowitz
    @mwbenowitz
    @ca-ubos your third argument to preg_replace doesn't need to be in quotes. You could also use str_replace if you'll always be replacing "info:lc". It takes the same arguements: str_replace('info:lc', 'http://id.loc.gov', $str)
    ca-ubos
    @ca-ubos

    @mwbenowitz thanks, I changed to str_replace but it still does not change anything. My Code is:

    {{{<ifcount code="ca_objects.lcsh_terms" min="1">    
        <H5>Library of Congress Subject Headings</H5>
        <ul>
            <li><unit relativeTo="ca_objects.lcsh_terms.id" delimiter="<li>">^ca_objects.lcsh_terms.text</unit>
        </ul>
        <?php
            $str = '^ca_objects.lcsh_terms.id';
            $url = str_replace('info:lc', 'http://id.loc.gov', $str);
            echo "The URL is ".$url;
        ?>  
    <HR></ifcount>}}}

    and the Output looks like this:

    CollectiveAccess
    @collectiveaccess
    @sshipley64 I've never seen this one. Make sure there isn't something clearing the contents of the app/tmp directory while people are logged in. Removing tmp files will log all users out.
    sshipley64
    @sshipley64
    No. It doesn't look to be that. It's odd that it seems to be happening only after those particular activities.
    Mike Benowitz
    @mwbenowitz
    @ca-ubos ah, I see. The ^ notation in the code block doesn't get rendered until after your php executes, so it can't do the match there. You can do that in php by using get $t_object->get() creating the element with that method (you'll probably want to create the entire list in php and echo the resulting string)
    ca-ubos
    @ca-ubos
    @mwbenowitz Thanks! I got it working now, but I can’t figure out how to use it combined with <unit> tags. I’ll look into it after the holidays. Here is my code for anyone interested:
                            <?php
                                $str = $t_object->get('ca_objects.lcsh_terms.id');
                                $name = $t_object->get('ca_objects.lcsh_terms.text');
                                $url = str_replace('info:lc', 'http://id.loc.gov', $str);
                                echo "<a href=\"" .$url. "\">" .$name. "</a>";
                              ?>
    Mike Benowitz
    @mwbenowitz
    @ca-ubos Great, you can loop through the repeating container in PHP as well, through $t_object->get("ca_objects.lcsh_terms", array('returnWithStructure' => true)) which returns a lower-level representation of the container.
    sterlingjenson
    @sterlingjenson
    I have a bit more time to work on trying to get elasticsearch running today. I recall in one of the fields in one of the conf files in Providence asks if the version being used is Elasticsearch version 2 or version 5.
    I have tried looking in app.conf and search.conf which is the obvious places for it. Does anyone know where this field is? Or have misremembered a detail after a couple weeks away from the problem.
    sterlingjenson
    @sterlingjenson
    Never mind, I found the setting in the app.conf file right where I should have expected it. I might need to get away from computer screens all day
    askaandfish
    @askaandfish
    I am modifying the display template use in search result. I want the single date / date range display only year part, but not month and day. How to do that? Thanks a lot!
    sshipley64
    @sshipley64
    @askaandfish It's on the wiki here: http://docs.collectiveaccess.org/wiki/Display_Templates. For the year you would have ^ca_objects.date%format=Y
    askaandfish
    @askaandfish
    @sshipley64 Thank you
    askaandfish
    @askaandfish
    I used ^ca_objects.date%format=Y-Y so that it can display date range. Though single date will be displayed as 2017-2017, but I can export the result and modify in excel. You saved my life!
    ca-ubos
    @ca-ubos
    @mwbenowitz Thank you so much! just learned a whole lot about PHP. My definitively whacky and hacky solution works fine! If anybody wnats to improve this cumbersome code be my guest 😊
    <ul>
    <?php 
      // get metadata element lcsh_terms with structure as array
      $lcshterms = $t_object->get("ca_objects.lcsh_terms", array('returnWithStructure' => true));
        // iterate over nested arrays
        foreach ($lcshterms AS $ebene1) {
          foreach ($ebene1 AS $ebene2) {
            //get string
            $str = $ebene2['lcsh_terms'];
            // regex string to get term only
            $rename = '/(.+?)\[.*/m';
            $substname = '$1';
            $name = preg_replace($rename, $substname, $str);
            // regex string to get id only
            $reurl = '/(.+?)\[(.*)(\])/m';
            $substurl = '$2';
            $rawurl = preg_replace($reurl, $substurl, $str);
            // str_replace id to get URL
            $url = str_replace('info:lc', 'http://id.loc.gov', $rawurl);
            // output name as link to URL:
            echo "<li><a href=\"".$url. "\" target=\"_blank\">".$name. "</a>";
          }
      }
    ?>
    </ul>
    rsteinert
    @rsteinert
    Any idea why MySQL replication gets thrown off when processing ca_sql_search_word_index. I have start with a fresh copy of my database twice now and the each time slave throws an error , "Could not execute Delete_rows event on table ca_sql_search_word_index; Can't find record in 'ca_sql_search_word_index', Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND;"
    CollectiveAccess
    @collectiveaccess
    Are you changing data on the slave? There are lots of actions in CA that cause indexing to happen, which will write changes into the ca_sql_search_word_index table. MySQL row-based replication doesn't like when table content on the slave changes out from under it. My guess is that you're using the slave for something and the bit of indexing that's getting performed on the slave only is the cause of the problem,.
    You might get around this by not replicating the indexing tables, and then periodically reindexing on the slave side. This has obvious disadvantages though.
    rsteinert
    @rsteinert
    I have Providence working off the master version and Pawtucket working off the slave, so I am guessing that Pawtucket's activity is changing "ca_sql_search_word_index" on its own? My idea with this set up was to have the master database and to replicate it for use by Pawtucket on another server (a subdomain of our main website). I didn't consider that Pawtucket would change the data as well.
    mollybrucepatterson
    @mollybrucepatterson
    I’m having a problem that seems like it might be a browser compatibility issue, and I’m wondering if anyone else has encountered it or knows of a solution. I’m using Providence 1.7.6. Three of my colleagues are unable to scroll down, whether it’s viewing a record or search results. They’re using Chrome, and when we tested in Internet Explorer they were able to scroll. So it seems browser related. But I also use Chrome, and I am able to scroll, no problem. I double-checked, we’re all using the same version of Chrome and the same Chrome extensions. So I’m having trouble figuring out what is triggering the issue. The only difference I can find is my OS is Windows 10, whereas my colleagues all have Windows 7 or 8 – is it possible the OS has something to do with it? I’m confused.
    CollectiveAccess
    @collectiveaccess
    Try flushing your browser cache
    As in clear all temporary files
    The issue is that you have the old CSS stylesheet cached in your browser
    and you just updated from a fairly out of date version (~1 year old)
    mollybrucepatterson
    @mollybrucepatterson
    that did it! thanks.
    ca-ubos
    @ca-ubos
    Hi! Does CA (Pawtucket2) support the HTML <img> alt Attribute? This would be great in terms of Web accessibility…
    CollectiveAccess
    @collectiveaccess
    For which sort of <img> tag? You can specify alt tags for images in your theme, of course. We don't allow control of the alt tag for images from the database though. It wouldn't be hard to add that if you need it.
    bowbot
    @bowbot_twitter
    Hello--I am cross-posting from the user forum. https://is.gd/tGCnpq I having an issue with PDF and image previews on several different C/A instances that are all running 1.7.5 and none of them completely preview a PDF. Have tested with Imagemagick or Graphicksmagick. Ghostscript, and Libtiff are installed and visible to the C/A. Anyone else experiencing these issues? Thanks!
    naeemmuhammad
    @naeemmuhammad
    Hi, I need some information about limit on Object ⇔ object relationships fields. Apparently one of our object has about 450 relationships with other objects. It seems that because of these many relationships we cannot edit this object. Can we increase this limit. Thanks.
    kaiall
    @kaiall
    Here's a fun new problem: created a new user. Had some issues creating it, but those are resolved now. But the user can't login. All I'm getting is "Login was invalid" Help?