<div dir="ltr">Baptiste,<div>Do not forget to answer to the list :)<div>I do not think that would bring a big improvement, what code do you want to simplify?<br><br><div class="gmail_quote"><div dir="ltr">On Tue, 7 Mar 2017 at 13:42 Baptiste Wojtkowski <<a href="mailto:baptiste.wojtkowski@biblibre.com">baptiste.wojtkowski@biblibre.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000" class="gmail_msg">
    <p class="gmail_msg">Hi,</p>
    <p class="gmail_msg">Indeed I talk about this syspref for example<br class="gmail_msg">
    </p>
    <p class="gmail_msg">I mean a function like : <i class="gmail_msg">inPref('myPref', ''myValue") </i>which
      returns true if MyValue is checked, instead of split around comas
      or using a grep ;) In order to have the same function as
      Preference, but for multivaluated function.<br class="gmail_msg">
    </p>
    <p class="gmail_msg">I would like to have some function to check directly if the value
      I need to do a specific action is Checked, and I don't see how it
      is a problem, even if it's not mandatory to have at least one
      option ;)<br class="gmail_msg">
    </p>
    <p class="gmail_msg">Cheers, <br class="gmail_msg">
    </p>
    <p class="gmail_msg">Baptiste<br class="gmail_msg">
    </p></div><div bgcolor="#FFFFFF" text="#000000" class="gmail_msg">
    <br class="gmail_msg">
    <div class="m_-2810333770114420471moz-cite-prefix gmail_msg">Le 07/03/2017 à 17:00, Jonathan Druart
      a écrit :<br class="gmail_msg">
    </div>
    <blockquote type="cite" class="gmail_msg">
      <div dir="ltr" class="gmail_msg">Hello Baptiste,
        <div class="gmail_msg"><br class="gmail_msg">
        </div>
        <div class="gmail_msg">Are you talking about prefs like OpacAdvSearchOptions?</div>
        <div class="gmail_msg">It's not mandatory to have at least one option, so I do not
          think it's is a good idea :)</div>
        <div class="gmail_msg"><br class="gmail_msg">
        </div>
        <div class="gmail_msg">Cheers,</div>
        <div class="gmail_msg">Jonathan</div>
        <div class="gmail_msg"><font face="monospace" class="gmail_msg"><br class="gmail_msg">
          </font>
          <div class="gmail_quote gmail_msg">
            <div dir="ltr" class="gmail_msg">On Thu, 2 Mar 2017 at 13:32 Baptiste
              Wojtkowski <<a href="mailto:baptiste.wojtkowski@biblibre.com" class="gmail_msg" target="_blank">baptiste.wojtkowski@biblibre.com</a>>
              wrote:<br class="gmail_msg">
            </div>
            <blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br class="gmail_msg">
              <br class="gmail_msg">
              Is there any function to check if a value is checked in a
              multivaluated<br class="gmail_msg">
              syspref ? I don't see any and the few multivaluated
              function I saw seem<br class="gmail_msg">
              using long template line code to do this simple thing.<br class="gmail_msg">
              <br class="gmail_msg">
              Could this be a good idea to write one ?<br class="gmail_msg">
              <br class="gmail_msg">
              Baptiste<br class="gmail_msg">
              <br class="gmail_msg">
              _______________________________________________<br class="gmail_msg">
              Koha-devel mailing list<br class="gmail_msg">
              <a href="mailto:Koha-devel@lists.koha-community.org" class="gmail_msg" target="_blank">Koha-devel@lists.koha-community.org</a><br class="gmail_msg">
              <a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br class="gmail_msg">
              website : <a href="http://www.koha-community.org/" rel="noreferrer" class="gmail_msg" target="_blank">http://www.koha-community.org/</a><br class="gmail_msg">
              git : <a href="http://git.koha-community.org/" rel="noreferrer" class="gmail_msg" target="_blank">http://git.koha-community.org/</a><br class="gmail_msg">
              bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" class="gmail_msg" target="_blank">http://bugs.koha-community.org/</a><br class="gmail_msg">
            </blockquote>
          </div>
        </div>
      </div>
      <br class="gmail_msg">
      <fieldset class="m_-2810333770114420471mimeAttachmentHeader gmail_msg"></fieldset>
      <br class="gmail_msg">
      <pre class="gmail_msg">_______________________________________________
Koha-devel mailing list
<a class="m_-2810333770114420471moz-txt-link-abbreviated gmail_msg" href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-community.org</a>
<a class="m_-2810333770114420471moz-txt-link-freetext gmail_msg" href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a>
website : <a class="m_-2810333770114420471moz-txt-link-freetext gmail_msg" href="http://www.koha-community.org/" target="_blank">http://www.koha-community.org/</a>
git : <a class="m_-2810333770114420471moz-txt-link-freetext gmail_msg" href="http://git.koha-community.org/" target="_blank">http://git.koha-community.org/</a>
bugs : <a class="m_-2810333770114420471moz-txt-link-freetext gmail_msg" href="http://bugs.koha-community.org/" target="_blank">http://bugs.koha-community.org/</a></pre>
    </blockquote>
    <br class="gmail_msg">
  </div></blockquote></div></div></div></div>