<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:"MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Georgia;
        panose-1:2 4 5 2 5 4 5 2 3 3;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:HelveticaNeue-Light;}
@font-face
        {font-family:"\@MS Gothic";
        panose-1:2 11 6 9 7 2 5 8 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Georgia","serif";
        color:#003366;
        mso-ligatures:standardcontextual;
        mso-number-form:lining;
        mso-number-spacing:tabular;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Georgia","serif";color:#003366;mso-ligatures:standardcontextual;mso-number-form:lining;mso-number-spacing:tabular'>It should. Unfortunately a single filter with both meta_fields makes no difference, and two filters (one for each field) correctly drops every record that doesn’t have <i>both</i>.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Georgia","serif";color:#003366;mso-ligatures:standardcontextual;mso-number-form:lining;mso-number-spacing:tabular'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Georgia","serif";color:#003366;mso-ligatures:standardcontextual;mso-number-form:lining;mso-number-spacing:tabular'>The filter is redundant anyway, isn’t it? Since the view is keyed on those fields, and </span><span style='font-size:10.0pt;font-family:"Courier New";color:#003366;mso-ligatures:standardcontextual;mso-number-form:lining;mso-number-spacing:tabular'>allow_null=&gt;0</span><span style='font-size:11.0pt;font-family:"Georgia","serif";color:#003366;mso-ligatures:standardcontextual;mso-number-form:lining;mso-number-spacing:tabular'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Georgia","serif";color:#003366;mso-ligatures:standardcontextual;mso-number-form:lining;mso-number-spacing:tabular'><o:p>&nbsp;</o:p></span></p><div><p class=MsoNormal><span lang=EN-AU style='font-size:6.0pt;font-family:"Verdana","sans-serif";color:#003366'>-- <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><b><span lang=EN-AU style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#7A7A7A'>Matthew</span></b><span lang=EN-AU style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#7A7A7A'>&nbsp;<b>Kerwin</b></span><span lang=EN-AU style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#F4F4F4'>&nbsp;&nbsp;</span><span lang=EN-AU style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#7A7A7A'>|  QUT&nbsp;Library&nbsp;eServices</span><span lang=EN-AU style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#7A7A7A'>&nbsp;&nbsp;|  <u><a href="mailto:matthew.kerwin@qut.edu.au"><u><span style='color:#7A7A7A'>matthew.kerwin@qut.edu.au</span></u></a></u></span><span lang=EN-AU style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#7A7A7A'><o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Georgia","serif";color:#003366;mso-ligatures:standardcontextual;mso-number-form:lining;mso-number-spacing:tabular'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] <b>On Behalf Of </b>sf2<br><b>Sent:</b> Tuesday, 23 December 2014 23:03<br><b>To:</b> eprints-tech@ecs.soton.ac.uk<br><b>Subject:</b> [EP-tech] Re: problem with DB query for view<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p><span style='font-family:"Verdana","sans-serif"'>See if you can add a filter to your view - with match=&quot;SET&quot; which should filter out NULL values.<o:p></o:p></span></p><p><span style='font-family:"Verdana","sans-serif"'>On 23.12.2014 00:04, Matthew Kerwin wrote:<o:p></o:p></span></p><blockquote style='border:none;border-left:solid #1010FF 1.5pt;padding:0cm 0cm 0cm 4.0pt;margin-left:3.75pt;margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Georgia","serif";color:#003366;mso-ligatures:standardcontextual;mso-number-form:lining;mso-number-spacing:tabular'>I did try that, and it didn’t make a difference; by inspecting the menu object directly I could see that it defaulted that way anyway.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Georgia","serif";color:#003366;mso-ligatures:standardcontextual;mso-number-form:lining;mso-number-spacing:tabular'>&nbsp;</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Georgia","serif";color:#003366;mso-ligatures:standardcontextual;mso-number-form:lining;mso-number-spacing:tabular'>The problem here seems to be some inherent complication resulting from a menu with two multiple fields, generating the wrong ‘distinctby’ query.</span><o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:6.0pt;font-family:"Verdana","sans-serif";color:#003366'>-- </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none'><strong><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#7A7A7A'>Matthew</span></strong><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#7A7A7A'>&nbsp;<strong><span style='font-family:"Verdana","sans-serif"'>Kerwin</span></strong></span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#F4F4F4'>&nbsp;&nbsp;</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#7A7A7A'>|&nbsp; QUT&nbsp;Library&nbsp;eServices&nbsp;&nbsp;|&nbsp; <u><a href="mailto:matthew.kerwin@qut.edu.au"><span style='color:#7A7A7A'>matthew.kerwin@qut.edu.au</span></a></u></span><o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-family:"Georgia","serif";color:#003366;mso-ligatures:standardcontextual;mso-number-form:lining;mso-number-spacing:tabular'>&nbsp;</span><o:p></o:p></p></div></blockquote><div><p class=MsoNormal><span style='font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p></div></div></body></html>