<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Can you use a custom script?<br>
      <br>
      my $q = $session-&gt;param( ...name of the &lt;form&gt; param...
      );<br>
      <br>
      my $list = $session-&gt;dataset( 'archive' )-&gt;search( <br>
      &nbsp;&nbsp;&nbsp; filters =&gt; [ { meta_fields =&gt; [ "id_number" ], value
      =&gt; $q, match =&gt; 'EX' } ]<br>
      );<br>
      <br>
      if( $list-&gt;count == 0 )<br>
      { ... }<br>
      elsif( $list-&gt;count &gt; 1 )<br>
      { ... } <br>
      <br>
      my $match = $list-&gt;item( 0 );<br>
      <br>
      ...<br>
      <br>
      Make sure you have your metadata clean cause people sometime use
      different formats for DOI's (doi:// etc..)<br>
      <br>
      Seb<br>
      <br>
      On 22/10/12 11:07, Thomas Haines wrote:<br>
    </div>
    <blockquote
cite="mid:OFE990AAB9.922C6A35-ON80257A9F.00379F82-80257A9F.00379F85@cardiff.ac.uk"
      type="cite"><font face="Default Sans
        Serif,Verdana,Arial,Helvetica,sans-serif" size="2">
        <div>Hello all,</div>
        <div><br>
        </div>
        <div>&nbsp; &nbsp;we are trying to make searches on the id_number field
          exact, so that even DOIs with special characters e.g. / return
          an exact match - will search for those characters, not strip
          them out or ignore them. For example searching for&nbsp;<a
            moz-do-not-send="true"
            href="http://dx.doi.org/10.1039/c0dt01389g"
            style="font-family: sans-serif; "><font color="#3366bb">10.1039/c0dt01389g</font></a>&nbsp;will
          return "ignoring 10".</div>
        <div><br>
        </div>
        <div>&nbsp; &nbsp;Has anyone already worked on this? Is there a way to
          make the search function not ignore any of the string, but
          simply look for an exact match in the particular database
          field?</div>
        <div><br>
        </div>
        <div>&nbsp; What we want is for a search request containing a DOI,
          searching the id_number field, will return either one result
          if there is an exact match, or nothing if not.</div>
        <div><br>
        </div>
        <div>thanks,<br>
          <br>
          Tom Haines<br>
          Electronic Information Resources Developer<br>
          Library Systems Team<br>
          INSRV<br>
          Cardiff University <br>
          <br>
          <a class="moz-txt-link-abbreviated" href="mailto:hainest@cf.ac.uk">hainest@cf.ac.uk</a><br>
          x70435</div>
      </font>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>