Required Field

  • Nobody/Anonymous

    I am using OpenBiblio for a small book collection which doesn't use or need call numbers. Is there a way to remove the "required" entry setting for Call numbers when making additions? I've done some code searching and can't figure out how to do it.


    • Micah Stetson

      Micah Stetson - 2008-03-18

      You need to edit classes/Biblio.php and remove the following lines from the validateData() function:

          if ($this->_callNmbr1 == "") {
            $valid = false;
            $this->_callNmbrError = $this->_loc->getText("biblioError1");


      • Nobody/Anonymous

        I have the same problem, except I am trying to make Personal Name not required.  It seems that _callNmbr1 is the only one separated out in the file you referred to...I'm guessing Personal Name is in the _biblioFields array.  So I'm not sure how to proceed.

        Thanks, this software has been a lifesaver.

        • Nobody/Anonymous

          Try editing \catalog\biblio_fields.php
          Look for the section where lines start with <?php printUsmarcInputText(
          Change line
            <?php printUsmarcInputText(100,"a",TRUE,$postVars,$pageErrors,$marcTags, $marcSubflds, FALSE,OBIB_TEXT_CNTRL);?>
            <?php printUsmarcInputText(100,"a",FALSE,$postVars,$pageErrors,$marcTags, $marcSubflds, FALSE,OBIB_TEXT_CNTRL);?>

          • Nobody/Anonymous

            That did it, thanks!

            I had actually already found and changed this, but when I tried it, I was still getting the same error message.  Evidently I should have tried starting a new session and refreshing before posting. :)



Cancel  Add attachments

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks