Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    murchmurch
    @murchmurch
    HI! Im trying to import metadata from images using ExifTool ( runing on a ubuntu system). But when i run the import i get :smile: Errors during import:
    (2018-02-11 20:04:21) Could not read source /var/www/html/providence17/import/mia/unnamed.jpg (format=EXIF).
    A normal image import works fine an i get all the metadata in the image file description. But i cant map it using the excel template. Any ide what i am doing wrong?
    murchmurch
    @murchmurch
    Rule type Source CA table.element Group Options Refinery Refinery parameters
    Mapping IFD0/ImageDescription ca_objects.preferred_labels.name
    Mapping filepath ca_object_representations objectRepresentationSplitter "{
    ""objectRepresentationType"": ""front"",
    ""attributes"": {
    ""media"": ""^filepath""
    }
    }"
    Setting name    Setting value
    Setting name Fotoimport
    Setting code 123
    Setting inputFormats EXIF
    Setting table ca_objects
    Setting type Image
    Setting numInitialRowsToSkip 0
    Setting existingRecordPolicy none
    Setting errorPolicy ignore
    Setting archiveMapping yes
    Setting archiveDataSets yes
    Setting basePath #XML tree#
    Setting locale DEFAULT
    The content of the XML file
    murchmurch
    @murchmurch
    Tested it on a windows machine and get the same error message:Errors during import:
    (2018-02-11 22:37:34) Could not read source H:/xampp/htdocs/providance17/import/mia/unnamed.jpg (format=EXIF)
    luismalfatti
    @luismalfatti
    Please, I've had this problem for several days, I've exhausted all the suggestions that I found in the collectiveaccess forum and I did not solve it. My installation of Pawtucket 1.75 returns the message " Fatal error: Cannot declare class Error, because the name is already in use in /var/www/html/pawtucket/app/lib/core/Error.php on line 46 ", help for the solution pls, tks
    TBthegr81
    @TBthegr81
    I have an object with multiple representations, where all but one have access set to "Not accessible to public".
    But when viewing the object in Pawtucket I can click the representation to open up the media-viewer and from there see all representation regardless of access status.
    Is there anything that can be done about this or do I need to disable the media-viewer?
    TBthegr81
    @TBthegr81
    In Pawtuckets app.conf there seems to be some options regarding access enforcement...
    Specifically the line "public_access_settings = [1]" should already there exclude any representations with access 0 right?
    CollectiveAccess
    @collectiveaccess
    @luismalfatti If you're getting that error you're running PHP 7 with a very old version of Pawtucket.
    @TBthegr81 Make sure access control is not disabled in app.conf. Specifically in your theme's app.conf make sure dont_enforce_access_settings is NOT set to a non zero value
    TBthegr81
    @TBthegr81
    dont_enforce_access_settings is set to 0, and if I set it to non-zero value I get different results.
    When on the object-details page in Pawtucket with dont_enforce_access_settings set to 0 I only get the primary representation, if I set it to a non-zero value I get all representations as thumbnails.
    Regardless off dont_enforce_access_settings I can view all representations in the media viewer.
    CollectiveAccess
    @collectiveaccess
    Hmm that sounds like a bug. Which media viewer is this?
    TBthegr81
    @TBthegr81
    How do I check that?
    It should be whatever ships default with 1.7.5
    CollectiveAccess
    @collectiveaccess
    What does it look like? And what sort of media is it?
    There are different viewers for different types of media
    and for documents there are multiple types
    maybe send me a screen shot?
    sshipley64
    @sshipley64
    @collectiveaccess I know there are probably a lot more issues with higher priority, but I just wanted to check in and see if there was anything new on the issue of PDFs not working in the viewer upon upgrading to 1.7.5 in Windows from December...
    TBthegr81
    @TBthegr81
    @collectiveaccess All representations are jpegs, I posted an screenshot to the thread I made in the forum, feels like this is deserving of a thread...
    http://www.collectiveaccess.org/support/forum/index.php?p=/discussion/299250/
    CollectiveAccess
    @collectiveaccess
    Ok great. I will investigate later today.
    CollectiveAccess
    @collectiveaccess
    @sshipley64 Well I have the Windows Server ISO on my laptop ready to install. That's as far as I have gotten so far. Sorry. I can only work so many hours per day. I'll try to get to it in the next few days.
    ericwm
    @eriwm

    Hi, (Providence 1.7.6 Develop)
    I added the following to my browse config.
    accession_facet = {
    type = fieldList
    field = item_status_id,

            group_mode = none,
    
            indefinite_article = an,
            label_singular = _("accession status"),
            label_plural = _("accession statuses")
        },

    I am using the default metadata element on my object editor screen which allows selecting the object's Accession Status
    i.e accessioned, de-accessioned, loan, non-accessioned, pending accession, pending de-accession (mine) and potential acquisition. This is the same list that appears in Lists and Vocabularies under Object status values.

    I have an xls data source which includes an accession status column which contains several of the status terms but when I import this data only the "loan" status is imported, other status values are ignored. My import mapping is attached for reference. All other columns are imported correctly. Any advice on fixing this problem would be much appreciated.
    Eric
    Rule type Source CA table.element Group Options Refinery Refinery parameters
    Mapping 1 ca_objects.sub_matter "{
    ""skipifEmpty"": 1
    }"
    Mapping 2 ca_objects.preferred_labels {"skipifEmpty": 1} "{
    ""attributes"": {
    ""notes"": ""^14""
    }
    }"
    Mapping 3 ca_entities {"skipifEmpty": 1} entityJoiner "{
    ""relationshipType"": ""^4"",
    ""entityType"": ""^5"",
    ""prefix"": ""^6"",
    ""surname"": ""^3"",
    ""forename"": ""^7"",
    ""middlename"": ""^8"",
    ""other_forenames"": ""^9"",
    ""suffix"": ""^10"",
    ""displayname"": ""^16""
    }"
    Mapping 11 ca_objects.dewey_number {"skipifEmpty": 1}
    Mapping 12 ca_objects.idno {"skipifEmpty": 1}
    Mapping 13 ca_objects.item_status_id {"skipifEmpty": 1}
    Mapping 14 ca_notes {"skipifEmpty": 1}
    Mapping 15 ca_collections {"skipifEmpty": 1} collectionSplitter { "relationshipType": "part_of", "collectionType": "^15"}

    Julia
    @juliaweist
    Do your non-loan values match the list item idno of the targeted values? If not you need to use the original values/replacement values settings
    ericwm
    @eriwm
    @juliaweist
    @juliaweist
    Hi Julia, Thank you for pointing me in the right direction. I made a fundamental mistake in assuming that the list terms were the same as the list term ids. The only one that does match is loan. I have corrected my import list to reflect the correct ids and everything is working ok. Again many thanks.
    Eric
    Julia
    @juliaweist
    @eriwm Great!
    Kehan Harman
    @kehh
    Is there any way to create displays for interstitial data? I'd like to use the Related X List view to show interstitial attribute values.
    Julia
    @juliaweist
    @kehh Yes. You'll make the display for the table on one side of the interstitial relationship and then make the display relativeTo the interstitial, i.e. <unit relativeTo="ca_objects_x_occurrences"> ^ca_objects_x_occurrences.attribute_code</unit>
    Axel Vankrunkelsven
    @axelvnk_twitter
    Hi guys, we're having some problems with our providence installation
    the cache folder is exploding in size
    which eventually leads to an unresponsive application
    CA_CACHE_TTL is set to 3600, which is the default i suppose
    CollectiveAccess
    @collectiveaccess
    @axelvnk_twitter Yes, it's a problem with Doctrine (which we rely upon). If you're running a busy site you can either [a] have a cron script clear the cache periodically or [b] use REDIS or memcache
    The file based cache is the default because it's easy to set up and works ok for installations that see moderate traffic (ie. the majority). Replacing doctrine is on our todo list FWIW
    We generally use redis. It works well.
    Axel Vankrunkelsven
    @axelvnk_twitter
    Thanks for the response. Okay I already have one that periodically rm -rf's te directory, but was wondering if there was a "real" solution to the problem.
    CollectiveAccess
    @collectiveaccess
    The "real" solution is to use redis
    askaandfish
    @askaandfish
    Hi everyone, I'm customizing the print templates for search results. I have this search results by inputting a keyword in Basic Search, and then some refine filters (e.g. object type, entities). I want to print the refine filters by <?php print $this->getVar('browse_criteria') ?> but it returns nothing. Is it not supported to do so or have I missed something? Thanks.
    ca-ubos
    @ca-ubos
    :point_up: November 13, 2017 8:33 PM Hi @collectiveaccess, is it possible to ouput the media URLs of other, not primary object representations? I tried ^ca_object_representations.type_id="129".media.large.url for a different type_id of the representation, both with and without quotes, but this is merely me playing trial and error… Thanks!
    naeemmuhammad
    @naeemmuhammad

    Hi,
    I need some information about OAI-PMH provider configuration. I want only objects with public access to be harvested. Apparently all objects are available for harvesting regardless of their access settings. Any help to achieve this goal?

    Perhaps it can be achieved with 'public_access_settings' parameter in 'oai_provider.conf' file but despite assigning various values to this parameter, no success.

    ericwm
    @eriwm
    Hi,
    Ihave done a bit more digging into label printing and tried using the Avery 8164. When trying to read the PDF download I get the error message 'PDF document is damaged" I checked the apache error log and found this message-
    [Wed Mar 07 00:04:04.398762 2018] [:error] [pid 2058] [client 127.0.0.1:46320] PHP Warning: Declaration of & Barcode_code128::draw($text, $imgtype = 'png') should be compatible with & Barcode::draw($text, $dest_file, $type = 'int25', $imgtype = 'png', $height = 60) in /var/www/html/providence-1.7.6/app/lib/core/Print/Barcode/code128.php on line 0, referer: http://127.0.0.1/providence-1.7.6/index.php/find/BrowseObjects/Index/reset/preference:persistent_search/parameter:type_id/
    The Avery 8617 works ok but of course does not include a barcode output
    My configuration output confirms that GD is available for barcode output.
    Any suggestions on how to fix this would be appreciated.
    Thanks Eric.
    TBthegr81
    @TBthegr81

    We have some problems with bots/crawlers overusing the search-function and pushing the server so hard it doesn't have time to service real people.
    Anyone else had this problem and have any tips on how to deal with it?

    The server runs a 8 core Xeon but atleast 3-4 of the cores are constantly at 100% because of bots.

    Since the bots seem keen on using the search-function I wonder if we can free up resources by setting up Elastic for search, if that is more efficient than the default?

    CollectiveAccess
    @collectiveaccess
    @TBthegr81 You could. Or maybe we can add something to figure out when a bot is abusing the search and cut them off
    @eriwm Can you send me a PDF that won't open? The actual file
    @naeemmuhammad public_access_settings should do it. If it's not either you're not setting valid codes or something is wrong in the code. It's hard to mess up the codes, so perhaps something is broken.
    CollectiveAccess
    @collectiveaccess
    @ca-ubos Where are you trying to do this?
    ts-avrd
    @ts-avrd
    Hi! I'm trying to add already-existing Sub-Elements to a new Container. However, "Add Sub-elements" only gives me the option to add a new Metadata Element instead of choosing existing ones. Is this intended behaviour? :)
    Julia
    @juliaweist
    @ts-avrd yes, it's not possible to add already-existing sub-elements to new containers.
    ca-ubos
    @ca-ubos
    @collectiveaccess I’m trying to use this setting in a data exporter mapping. In the column Source I can use ca_object_representations.media.original.url but I don’t know how to access representatiosn other than primary ones.