Renew functions

2005-07-18
2013-05-30
  • Nobody/Anonymous

    OpenBiblio should have a very basic function for a library system that is Renew.
    Renew will allow the member to continue to extend the check-out due date. this extention period can be difference from the normal check-out period.

     
    • Micah Stetson

      Micah Stetson - 2005-07-21

      Peter Leschev implemented this as a patch some time back.  It will be in a future release of OpenBiblio, but you can add it to your local version using his patch here:

      http://sourceforge.net/tracker/index.php?func=detail&aid=1082951&group_id=50071&atid=458476

      Micah

       
      • Nobody/Anonymous

        This looks like just the functionality my client requested but I am not sure how to apply this patch.  Can anyone point me toward any documentation about how to use/implement this patch (or, if it is relatively trivial, explain how to incorporate it).  In the past, I have integrated additional functionality 'by hand'.

        Questions include:
        1) What program uses the 'renewalPatch.txt' file as input? (RSC? Patch?)

        2) Does the location of my OpenBiblio files need to replicate the path embedded in the file?

        [embedded path: RCS file: /cvsroot/obiblio/OpenBiblio Source/admin/materials_edit.php
          my path:  /var/www/html/openbiblio/admin/materials_edit.php]

        3) Do I need to make this patch to a clean, original copy of the source and then go back and re-do the previous changes (e.g. the LaPlante lookup code).

        Thanks in advance for any help

        Bryant

         
    • Hans van der Weij

      1) I have successfully used http://www.gnu.org/software/patch/patch.html to apply similar patches. For Windows I needed a download, but many operating system come with a version of patch.
      2) I don't think so. If you have more questions; there should be documentation somewhere about GNU patch.
      3) No, this is what the patch program is about, but if there are conflicting lines you will have to to manual editing. I would not expect conflicts in this case.

       
      • Nobody/Anonymous

        Has anyone had success applying Peter L's patch to the latest (0.5.1) version?

        I downloaded a clean copy of 0.5.1 and installed it against an existing database.  It ran fine (checked out books, etc).

        I then ran the patch command and got the following output:

        [root@localhost ~]# cd /var/www/html/openbiblio
        [root@localhost openbiblio]# patch -p0 <renewalPatch.txt
        (Stripping trailing CRs from patch.)
        patching file admin/materials_edit.php
        (Stripping trailing CRs from patch.)
        patching file admin/materials_edit_form.php
        (Stripping trailing CRs from patch.)
        patching file admin/materials_list.php
        (Stripping trailing CRs from patch.)
        patching file circ/checkout.php
        (Stripping trailing CRs from patch.)
        patching file circ/mbr_view.php
        (Stripping trailing CRs from patch.)
        patching file classes/BiblioCopy.php
        (Stripping trailing CRs from patch.)
        patching file classes/BiblioCopyQuery.php
        (Stripping trailing CRs from patch.)
        patching file classes/BiblioSearch.php
        (Stripping trailing CRs from patch.)
        patching file classes/BiblioSearchQuery.php
        Reversed (or previously applied) patch detected!  Assume -R? [n]
        Apply anyway? [n]
        Skipping patch.
        3 out of 3 hunks ignored -- saving rejects to file classes/BiblioSearchQuery.php.rej
        (Stripping trailing CRs from patch.)
        patching file classes/BiblioStatusHist.php
        (Stripping trailing CRs from patch.)
        patching file classes/BiblioStatusHistQuery.php
        (Stripping trailing CRs from patch.)
        patching file classes/Dm.php
        (Stripping trailing CRs from patch.)
        patching file classes/DmQuery.php
        (Stripping trailing CRs from patch.)
        patching file install/sql/biblio_copy.sql
        (Stripping trailing CRs from patch.)
        patching file install/sql/biblio_status_hist.sql
        (Stripping trailing CRs from patch.)
        patching file install/sql/material_type_dm.sql
        (Stripping trailing CRs from patch.)
        patching file locale/en/admin.php
        Hunk #3 FAILED at 397.
        1 out of 3 hunks FAILED -- saving rejects to file locale/en/admin.php.rej
        (Stripping trailing CRs from patch.)
        patching file locale/en/circulation.php
        Hunk #2 succeeded at 127 (offset 8 lines).
        Hunk #4 succeeded at 170 (offset 10 lines).
        Hunk #5 FAILED at 279.
        1 out of 5 hunks FAILED -- saving rejects to file locale/en/circulation.php.rej
        (Stripping trailing CRs from patch.)
        patching file locale/en/sql/biblio_copy.sql
        (Stripping trailing CRs from patch.)
        patching file locale/en/sql/material_type_dm.sql
        [root@localhost openbiblio]#

        So, it seems that there were problems with three files:
        BiblioSearchQuery.php
        admin.php
        circulation.php

        If I run the program, the new functionality appears but if I click on the rewew item link, I get the following error:

        Error updating bibliography copy information.

        from this URL:

        http://localhost/openbiblio/circ/checkout.php?barcodeNmbr=000000007&mbrid=2099&classification=j&renewal

        If anyone can point out the error of my ways, I would greatly appreciate it.  This is my first time using Patch.

        Bryant

         
        • Hans van der Weij

          Sorry, I'm too busy to try repeating these steps.

          > patching file classes/BiblioSearchQuery.php
          > Reversed (or previously applied) patch detected! Assume -R? [n]
          Seems to me this is where the trouble starts

          > Apply anyway? [n]
          > Skipping patch.

          Does answering 'Apply anyway' with [y] make a difference?

           
        • Nobody/Anonymous

          Marcus Bautze has integrated "Renewal Functionality"-Patch by P Leschev in his version at:
          http://openbiblio.de/download.php

          openbiblio0.5.CVS20050201.g-5 (15.02.05)
          von/by Marcus Bautze
          * VerlngerungsPatch von pleschev hinzugefgt/ "Renewal Functionality"-Patch by pleschev added
          see: http://openbiblio.de/changelog.php

          Since I only use the German language version for local needs, I have not tested the English language one, but you might like to give it a try. Hope it helps ...

          chris dot dagleish at gmx dot de

           
    • Nobody/Anonymous

      Not really:

      patching file classes/BiblioSearchQuery.php
      Reversed (or previously applied) patch detected!  Assume -R? [n] y
      Hunk #2 FAILED at 195.
      Hunk #3 FAILED at 264.
      2 out of 3 hunks FAILED -- saving rejects to file classes/BiblioSearchQuery.php.rej
      (Stripping trailing CRs from patch.)
      patching file classes/BiblioStatusHist.php
      .
      .
      .

       
    • Nobody/Anonymous

      Can anyone tell me how to apply this patch? I don't understand...

       
      • Micah Stetson

        Micah Stetson - 2006-03-14

        You don't need to apply it yourself anymore, try OpenBiblio version 0.5.2pre4.

        Micah

         
    • Nobody/Anonymous

      Great.  I would love to try it but the link on the home page is set to ver 0.5.1, not the pre-release.

      J Low

       
      • Hans van der Weij

        The link in news item 0.5.2 Prerelease 4 is incorrect. Try the Downloads link in the SideBar to see all file downloads:
        http://sourceforge.net/project/showfiles.php?group_id=50071

         
        • Micah Stetson

          Micah Stetson - 2006-03-17

          I didn't know the link was wrong.  How could I have posted that without testing it?  Oh well, it's fixed in the SF news and the change should appear on our home page within 6 hours.

          Thanks,

          Micah

           

Log in to post a comment.