These are chat archives for collectiveaccess/support

20th
Sep 2017
Barry Hoggard
@bhoggard
Sep 20 2017 01:05
I just changed my detail.conf to uncomment representationViewerCaptionTemplate = <div class='small'>^ca_object_representations.preferred_labels.name</div> and now I see [BLANK] for representations where I don't have a title. How do I get rid of that?
example detail page: https://cl.ly/3J0I3W3d2y1i
Kehan Harman
@kehh
Sep 20 2017 01:55
@bhoggard use a conditional unit with an expression - either an <if> or a <case> - see http://docs.collectiveaccess.org/wiki/Display_Templates#Conditional_tags:_.3Cifdef.3E.2C_.3Cifnotdef.3E.2C_.3Cifcount.3E.2C_.3Cif.3E - I suggest a regex match on the [BLANK] string. Let me know if you need more details.
gotlandsmuseum
@gotlandsmuseum
Sep 20 2017 09:53
Hello! We just moved and upgraded our Collective Access installation from 1.6 to 1.7 and we now have the problem of being stuck on the login page. When anyone tries to login they are reverted back oi the login form instead of being redirected to the dashboard. Any ideas?
Barry Hoggard
@bhoggard
Sep 20 2017 14:44
@kehh I can't do a conditional inside detail.conf, so that approach would require changing the template that representationViewer uses I guess.
@gotlandsmuseum Can you try logging in with a different browser, or start a new private/incognito window to see if that works? That sometimes indicates cookies that got messed up.
I had thought that some functions knew to filter out [BLANK], but maybe that's not the case for Pawtucket2
gotlandsmuseum
@gotlandsmuseum
Sep 20 2017 15:08
@bhoggard Tried that without any success.
gotlandsmuseum
@gotlandsmuseum
Sep 20 2017 17:39
Installed it all over again and now it works :-)