This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once('./setup.php'); | |
require_once(__CA_MODELS_DIR__.'/ca_occurrences.php'); | |
$o_db = new Db(); | |
$qr_prods = $o_db->query('SELECT occurrence_id FROM ca_occurrences WHERE type_id = 116'); | |
while($qr_prods->nextRow()) { | |
$t_occ = new ca_occurrences($qr_prods->get('occurrence_id')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ok":true, | |
"intrinsic_fields":{ | |
"locale_id":"1", | |
"type_id":"136", | |
"media":"https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png", | |
"original_filename":"My original file name.png", | |
"access":"0", | |
"status":"0" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** --------------------------------------------------------------------- | |
* tests/search/queries/SimpleSearchQueryTest.php | |
* ---------------------------------------------------------------------- | |
* CollectiveAccess | |
* Open-source collections management software | |
* ---------------------------------------------------------------------- | |
* | |
* Software by Whirl-i-Gig (http://www.whirl-i-gig.com) | |
* Copyright 2015 Whirl-i-Gig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once('./setup.php'); | |
require_once(__CA_APP_DIR__.'/helpers/mediaPluginHelpers.php'); | |
$po_config = Configuration::load(); | |
$po_external_app_config = Configuration::load($po_config->get('external_applications')); | |
$ps_path_to_ghostscript = $po_external_app_config->get('ghostscript_app'); | |
print "ghostscript path from external conf: $ps_path_to_ghostscript <br/>\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"intrinsic_fields" : { | |
"idno" : "NEWTEST-456", | |
}, | |
"remove_all_labels" : true, | |
"preferred_labels" : [ | |
{ | |
"locale" : "en_US", | |
"forename" : "Walter", | |
"middlename" : "H.", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"intrinsic_fields" : { | |
"idno" : "TEST-123", | |
"type_id" : 43 | |
}, | |
"preferred_labels" : [ | |
{ | |
"locale" : "en_US", | |
"forename" : "Walter", | |
"middlename" : "H.", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ok":true, | |
"ind":{ | |
"type_info":{ | |
"item_id":"79", | |
"parent_id":"78", | |
"list_id":"18", | |
"type_id":null, | |
"idno":"ind", | |
"idno_sort":"ind ", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ok":true, | |
"preferred_labels":{ | |
"en_US":[ | |
"My new test object" | |
] | |
}, | |
"nonpreferred_labels":{ | |
"en_US":[ | |
"Some cool alternate label!" |