Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    naeemmuhammad
    @naeemmuhammad
    Hi, How can i customize advanced search form in Pawtucket2? I need additional controls like checkbox, drop down and tabs.
    Mike Benowitz
    @mwbenowitz
    This message was deleted
    Mike Benowitz
    @mwbenowitz

    Hi @naeemmuhammad you can create a custom advanced search in the search.conf file (see http://docs.collectiveaccess.org/wiki/Pawtucket2:Advanced_Search for a description)

    You can then create the new form named in the view = field of your newly defined search using display bundles. To define a checkbox add render=is_set to the end of the bundle specifier (e.g. ca_objects.public_access%render=is_set). Adding a search field for a field controlled by a list or set vocabulary will automatically populate as a dropdown.

    naeemmuhammad
    @naeemmuhammad
    @mwbenowitz thanks. What should be the value of the render element for rendering a radio button and tabs?
    Mike Benowitz
    @mwbenowitz
    @naeemmuhammad the render value for radio buttons is radio_buttons
    and sorry, but not sure what you mean by tabs
    naeemmuhammad
    @naeemmuhammad
    Sorry perhaps i should have been more specific. Tab control, where we can display multiple sheets(panels) on top of each other. Each panel contains a set of html elements. Such as: https://api.jqueryui.com/tabs/#entry-examples
    Sophie
    @pinkfishies
    @naeemmuhammad You can simply format the advanced search view to work with the jquery ui tabs
    You can use any php/html throughout the view as you would on any other page. Just the advanced search form adheres to the specialized markup
    Perry Roth-Johnson
    @perryrothjohnson
    Hi, today my CA install started spitting out a proxy error, saying the proxy server received an invalid response from an upstream server, could not handle the request GET, and the reason was an error reading from remote server ... any ideas? I'm running CA 1.6.1 on a Red Hat OpenShift server. I tried restarting the server and tidying up logs and temp files, but no dice.
    weird, it just started working again
    but this has been an intermittent problem that pops up every few days ... anyone else having the same issue?
    Perry Roth-Johnson
    @perryrothjohnson
    Sophie
    @pinkfishies
    @perryrothjohnson Glad you resolved the issue!
    mrjayviper
    @mrjayviper
    please refer to these 2 pictures:

    http://imgur.com/DJTJbZN
    http://imgur.com/ELKRgN0

    as you can see from the 1st pic, the location info below "Edit Art" (top left) is stuck to the previous location and not the current location. How do I fix this? We're using movement location tracking if that makes a difference. Thanks

    Barbara Krautgartner
    @babslgam
    when using web service api how can i enable sorting by values from datatype list?
    naeemmuhammad
    @naeemmuhammad

    I am using ajax requests on some html components in one of my search views in Pawtucket2. Ajax calls another view in the same directory (views/Search), however requests are returned with a view containing header and footer. How can I integrate ajax calls in views and receive response without header and footer?
    Example:
    I have a drop down box in advanced search view (/views/Search/ ca_objects_advanced_search_objects_html.php). When an item in the drop down box is selected an ajax request to selection.php is made. Code in selection.php does some processing on the ajax request and returns some data that will be used to populate some additional html components in advanced search view. Ajax call is successfully made to selection.php, however response of the request contains a full view with header and footer.

    Thanks.

    CollectiveAccess
    @collectiveaccess
    The header and footer should be automatically omitted for ajax request. Do your ajax requests include a HTTP_X_REQUESTED_WITH header set to XMLHttpRequest?
    You might also try setting a query string parameter named "download" to 1
    and see if that gives the desired results. It's an alternate way of suppressing headers and footers.
    @babslgam Can you be more specific about what you're trying to do, and with which service?
    naeemmuhammad
    @naeemmuhammad
    @collectiveaccess thanks for the help, it is working fine now. Setting HTTP_X_REQUESTED_WITH header or passing 'download' query string parameter are indeed solutions for the problem i had.
    Jesse
    @blackadder78
    Is there a command line argument for rebuilding hierarchical indices? I'm looking in CLIUtils, but I'm not finding anything.
    Sophie
    @pinkfishies
    @blackadder78 Have you tried rebuild-search-index ? http://docs.collectiveaccess.org/wiki/CaUtils
    CollectiveAccess
    @collectiveaccess
    There is no cliutils command for rebuilding hier indices
    We'll need to add it :-)
    I just created an issue for it
    moronic
    @moronic
    I'm trying to change the value of a set using the set() function, and it seems to change, but does not change in the database. Any idea what is going on?
    CollectiveAccess
    @collectiveaccess
    @moronic Are you loading an existing record? If so then be sure to set the access mode to ACCESS_WRITE
    and then call update() to save
    Eg.
    $obj->set("field", "value");
    $obj->setMode(ACCESS_WRITE);
    $obj->update();
    moronic
    @moronic
    Thank you very much. I just knew I had missed something obvious.
    moronic
    @moronic
    Hehe, I was going to ask about why I couldn't get a method to work. Then I discovered I was using dot notation instead of arrow... I chose my nym with care.
    ericwm
    @eriwm
    Hi All, been away for 6 weeks and now trying to catch up with any new developments in 1.7. Did a git pull this morning and tried viewing an uploaded PDF document. I still have the same problem, which is that the viewer shows on the left hand side thumbnails of all the pages in the document but I cannot get them to open in the main screen. This still has a small rotating block in the middle. Is there possibly something wrong on my side or are you still working on this. Thanks .
    moronic
    @moronic
    When finding sets I get this:
    "PHP Warning: Missing argument 1 for BaseModel::find(), called in /providence/app/lib/core/BaseModel.php on line 10399 and defined in /providence/app/lib/core/BaseModel.php on line 10386"
    Can't seem to figure out what I'm doing wrong with the call.
    Kehan Harman
    @kehh

    @blackadder78

    Is there a command line argument for rebuilding hierarchical indices? I'm looking in CLIUtils, but I'm not finding anything.

    I had to do this last week and here's a gist that does it. Place in the root of your CA install and run using php

    mstrnad
    @mstrnad
    Hi, can I disable the zip-packaging of the downloaded media somewhere? This wasn't happening in previous versions I believe. Thanks
    CollectiveAccess
    @collectiveaccess
    It should only zip when there are multiple files being downloaded, but there are issues with some versions where even a single file ends up zipped. This is definitely fixed in develop
    mstrnad
    @mstrnad
    @collectiveaccess Thanks. We are at 1.6.1, Schema revision 126, Release type GIT. So what you are saying is to reinstall with the latest GIT clone? If there was a way to disable it altogether just in config, I wouldn't mind (no scenario for us when multiple files are downloaded via the providence interface).
    CollectiveAccess
    @collectiveaccess
    No, you don't have to do that.
    I'll push a 1.6.2 release this week
    Kehan Harman
    @kehh
    :+1:
    CollectiveAccess
    @collectiveaccess
    @mstrnad The zip fix is now in the master-fix branch, which is the basis of 1.6.1; I expect to roll up a 1.6.2 branch tomorrow
    ericwm
    @eriwm
    Screenshot from 2016-09-07 16-31-32.jpg