@bzotivla What did you try?
You could do it like this:
code_facet = {
type = attribute,
element_code = code,
group_mode = alphabetical,
label_singular = _("code"),
label_plural = _("code")
}
Where did you make your changes in browse.conf? in app/conf or in app/conf/local of your PA-installation?
Hi, Suddenly we have a problem with login to our collective access (version 1.7.3). User is logged off immediately after successful login. Any help to solve this problem? Here is a snapshot of the log for a login attempt.
2/25/2019@12:06:59pm CET LOGF Failed login with redirect for user id '' (/ca_mjb_test/index.php/Dashboard/Index); IP=10.112.50.1; user agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36' Auth
2/25/2019@12:06:58pm CET LOGN Successful login for 'administrator'; IP=10.112.50.1; user agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36 Auth
We have the following browse.conf configuration for the 'browse by gender' functionality but the issue is that it finds all relationships and we would like to restrict the gender browse to only consider certain relationship types like
restrict_to_relationship_types = [creator,Collaborating_Artist,publisher,painter,engraver,printer,etcher,author,handcolourist,masterprinter,videographer]
i.e. if one of the above is male or female then display the results in Browse and exclude others from the browse results. Can this be configured?
I tried to use "suppress = [772]," where 772 is the item id of the entity type to to be excluded from browse but it doesn't work.
gender = {
type = attribute,
element_code = sex,
relative_to = ca_entities,
group_mode = none,
facet_groups = [],
labelsingular = ("Artist Gender"),
labelplural = ("Artist Genders")
},
CSRF token is not valid
message, when I try to log in. I'm getting following messages in Apache2 error.log:[Sat Mar 02 18:01:47.499495 2019] [php7:warn] [pid 18816] [client myaddress:18979] PHP Warning: setcookie() expects parameter 3 to be integer, float given in /var/www/html/ca/app/lib/core/Controller/Request/Session.php on line 93, referer: http://myserver/ca/index.php/system/auth/login?redirect=http%3A%2F%2Fmyserver%2Fca%2Findex.php%2FDashboard%2FIndex
[Sat Mar 02 18:01:47.508952 2019] [php7:warn] [pid 18816] [client myaddress:18979] PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /var/www/html/ca/app/lib/core/BaseObject.php on line 90, referer: http://myserver/ca/index.php/system/auth/login?redirect=http%3A%2F%2Fmyserver%2Fca%2Findex.php%2FDashboard%2FIndex
We are hoping to display the 'Related objects' and 'Related Objects table' within the Storage Location Contents screen based on the current objects present in the selected location.
Step 1. Using the Object Editor --> Location Tracking screen(UI configuration screen shot attached), we update the location of the object and save the object.
Step 2. Go to the Storage Location Editor screen for the above location, and we have 'Contents' screen (UI configuration screen shot attached) and it has a list of the current contents of this location but we would like to display the current contents(objects) located at this storage location under the 'Related objects' element.
Is it possible to achieve this? Would the system update(delete when moved out from a location) the object relationship automatically when the object's location us updated?
This is our app.conf file - location tracking configuration.
app.conf configuration:
object_storage_location_tracking_relationship_type = storage_loc
movement_storage_location_tracking_relationship_type = moved_to
movement_object_tracking_relationship_type = part
record_movement_information_when_moving_storage_location = 1
movement_storage_location_date_element = removal_date
current_location_criteria = {
ca_movements = {
movement = {
date = removal_date,
template = ^ca_storage_locations.hierarchy.preferredlabels%delimiter=➜_
}
}
}
Any help or advise on this is much appreciated?
@bowbot_twitter
I know this should be obvious, but its escaping me--where do I configure a Pawtucket theme to not use the multisearch ribbon and instead show a grid of objects ala browse?
Solved it! In pageheader.php, I replaced
<form class="navbar-form navbar-right" role="search" action="<?php print caNavUrl($this->request, '', 'MultiSearch', 'Index'); ?>">
with
<form class="navbar-form navbar-right" role="search" action="<?php print caNavUrl($this->request, '', 'Search', 'Objects'); ?>">