<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">Hmm I don't think so - INCLUDE's are
      static files generated on-disk. Searches etc do not generate such
      pages. But there must be some export formats that will output
      stuff that you can include somewhere else (like 'HTML Citation').<br>
      <br>
      It could be helpful to provide more examples of what you're trying
      to achieve. So far, your example is covered by the standard search
      (which has all the export functions you want).<br>
      <br>
      Seb.<br>
      <br>
      <br>
      On 30/07/14 20:25, <a class="moz-txt-link-abbreviated" href="mailto:Gaston.Fournier@etsmtl.ca">Gaston.Fournier@etsmtl.ca</a> wrote:<br>
    </div>
    <blockquote
      cite="mid:3A02E08503E2AC4FB5566BBE32B96AE326B476C1@JUPITER.ad.etsmtl.ca"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
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;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.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]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">That&#8217;s
            a good starting point and it is working well once you have
            added the following instructions just at the beginning of
            the cgi&nbsp;:<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">#!/usr/bin/perl<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">use
            strict;<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">use
            warnings;<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">use
            EPrints;<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">my
            $eprints = EPrints-&gt;new;<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">my
            $repo = $eprints-&gt;current_repository;<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">exit(
            0 ) unless defined $repo;<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">But
            the big question is : can we get an output with views.pm
            features (like INCLUDE) without rewriting views.pm? Is there
            an export plugin with such features (or close to)?<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">At
            the end, the idea is to have a script, which the syntax is
            similar to the ones we use for harvesting, like :
            <a moz-do-not-send="true"
href="http://espace-test.etsmtl.ca/cgi/oai2?verb=ListRecords&amp;metadataPrefix=oai_dc">http://espace-test.etsmtl.ca/cgi/oai2?verb=ListRecords&amp;metadataPrefix=oai_dc</a>
            where<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">metadataPrefix
            calls the export plugin.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">GF<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA"><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:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext;mso-fareast-language:FR-CA"
                  lang="FR">De&nbsp;:</span></b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext;mso-fareast-language:FR-CA"
                lang="FR"> <a class="moz-txt-link-abbreviated" href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a>
                [<a class="moz-txt-link-freetext" href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">mailto:eprints-tech-bounces@ecs.soton.ac.uk</a>]
                <b>De la part de</b> Sebastien Francois<br>
                <b>Envoy&eacute;&nbsp;:</b> 30 juillet 2014 12:39<br>
                <b>&Agrave;&nbsp;:</b> <a class="moz-txt-link-abbreviated" href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a><br>
                <b>Objet&nbsp;:</b> [EP-tech] Re: Export plugin with views.pm
                features<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <div>
          <p class="MsoNormal">Your example can be done via a search:<br>
            <br>
            <a moz-do-not-send="true"
href="http://demoprints.eprints.org/cgi/search/archive/advanced?screen=Search&amp;dataset=archive&amp;type=article&amp;refereed=TRUE&amp;satisfyall=ALL&amp;order=-date%2Fcreators_name%2Ftitle&amp;_action_search=Search">http://demoprints.eprints.org/cgi/search/archive/advanced?screen=Search&amp;dataset=archive&amp;type=article&amp;refereed=TRUE&amp;satisfyall=ALL&amp;order=-date%2Fcreators_name%2Ftitle&amp;_action_search=Search</a><br>
            <br>
            Searches can be exported (like any list of objects).<br>
            <br>
            Otherwise you can write your own CGI (if your conditions are
            more complex) - something like (adapt to your needs):<br>
            <br>
            <tt><span style="font-size:10.0pt">my $list =
                $repo-&gt;dataset( 'archive' )-&gt;search(</span></tt><span
              style="font-size:10.0pt;font-family:&quot;Courier
              New&quot;"><br>
              <tt>&nbsp;&nbsp;&nbsp; filters =&gt; [</tt><br>
              <tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; { meta_fields =&gt; [qw/ type /], value
                =&gt; 'article', match =&gt; 'EX', },</tt><br>
              <tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; { meta_fields =&gt; [qw/ refereed /], value
                =&gt; 'TRUE', match =&gt; 'EX', },</tt><br>
              <tt>&nbsp;&nbsp;&nbsp; ] );</tt><br>
              <br>
              <tt>binmode( STDOUT, ":utf8" );</tt><br>
              <br>
              <tt>$list-&gt;export( 'XML', fh =&gt; *STDOUT );</tt><br>
            </span><br>
            Seb.<br>
            <br>
            On 30/07/14 17:01, <a moz-do-not-send="true"
              href="mailto:Gaston.Fournier@etsmtl.ca">Gaston.Fournier@etsmtl.ca</a>
            wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">Here
              is an example of the Boolean expressions used in a cgi
              script to generate a subset of eprints for the output :</span><span
              lang="EN-CA">
            </span><span style="color:#1F497D" lang="EN-CA">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">&nbsp;</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">if
              ( $eprint-&gt;get_value( "type" ) eq "article" &amp;&amp;
              $eprint-&gt;get_value( "refereed" ) eq "TRUE" )</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">&nbsp;</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">GF</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D" lang="EN-CA">&nbsp;</span><o:p></o:p></p>
        </blockquote>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;;mso-fareast-language:FR-CA"><o:p>&nbsp;</o:p></span></p>
      </div>
      <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>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="http://forum.eprints.org/">http://forum.eprints.org/</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>