self service patch with 0.7.1

Help
Orso
2013-02-18
2013-05-30
  • Orso
    Orso
    2013-02-18

    Hello!

    Is it possible to use the self service patch for 0.6 with 0.7.1 as well?

    please, give me a hint!

    Thanks in advance!

    orso

     
  • Matt Boytim
    Matt Boytim
    2013-02-18

    Our library planned to upgrade to 0.6 so I applied all our customizations to 0.6 including the self service, but then we never switched over.  So I did do it but not sure I created an actual patch for it.  Give me a few days and I will do a diff against 0.6 and see if I can create the patch.

    I don't know if it will work for 0.7.1 though.

    Matt

     
  • Matt Boytim
    Matt Boytim
    2013-02-18

    Okay, so I didn't realize there were two self-service patches.  I did a simple one one for our shcool library several years ago for 0.4 which I updated for 0.6.0 which is available here: http://home.comcast.net/~matt.boytim/obiblio/
    It seems to apply cleanly to 0.6.1 but not 0.7.1 but it is pretty simple so I suspect adapting it to 0.7.1 would be pretty easy.

    However, I'm not sure that is what you were asking about since there is another selfservice patch by hjtappe (selfService.patch-0.6.X).  I downloaded it and it applied cleanly to 0.6.0 and 0.6.1.  It did not apply cleanly to 0.7.1 but it didn't look awful either.  I don't know about the "Override Due Date" feature but perhaps in the process of resolving the failure and other minor issues that could be sorted out.

    Below is what I get when attempting to apply selfService.patch-0.6.X to 0.7.1.

    Matt

    matt@stpat:~/openbiblio-0.7.1-orig$ patch -p2 -dry-run < ../selfService.patch
    patching file admin/settings_edit.php
    patching file admin/settings_edit_form.php
    patching file classes/Settings.php
    patching file classes/SettingsQuery.php
    patching file locale/en/admin.php
    patching file shared/read_settings.php
    patching file circ/checkin_form.php
    Hunk #1 FAILED at 24.
    1 out of 1 hunk FAILED - saving rejects to file circ/checkin_form.php.rej
    patching file circ/checkout.php
    Hunk #1 succeeded at 7 with fuzz 2.
    patching file circ/index.php
    patching file circ/mbr_history.php
    patching file circ/mbr_print_checkouts.php
    patching file circ/mbr_search.php
    patching file circ/mbr_view.php
    patching file circ/place_hold.php
    patching file circ/shelving_cart.php
    Hunk #1 succeeded at 7 with fuzz 2.
    patching file navbars/circulation.php
    patching file classes/UpgradeQuery.php
    Hunk #1 succeeded at 241 (offset 25 lines).
    patching file install/0.6.0/sql/settings.sql
    patching file locale/en/sql/0.6.0/domain/settings.sql
    matt@stpat:~/openbiblio-0.7.1-orig$

     
  • Orso
    Orso
    2013-02-19

    Hi maboytim and infinite-mnkz!

    Thank your for your postings and given information! I'm not a programmer and no php expert, so I won't be able to modify php code so it would fullfill my needs of getting a user managed library. Is anybody out the who could/ would modify the self servie patch to work with 0.7.x?

    Help would be very appreciated!

    Thanks in advance!

    Orso

     
  • Orso
    Orso
    2013-03-03

    Hello!

    Due to your help and the forum threads I've now the nearly perfect openbiblio installation:
    0.7.3, german locale, csv import function perfectly working.

    The only thing missing is the self-service function. I installed the patch in a allready running install and I did a new install with fresh installing of the database. the result is allways the same:

    applying the patch I get this errors:

    patch -p2 < selfService.patch
    patching file admin/settings_edit.php
    Hunk #1 FAILED at 30.
    1 out of 1 hunk FAILED -- saving rejects to file admin/settings_edit.php.rej
    patching file admin/settings_edit_form.php
    Hunk #1 FAILED at 46.
    Hunk #2 FAILED at 112.
    2 out of 2 hunks FAILED -- saving rejects to file admin/settings_edit_form.php.rej
    patching file classes/Settings.php
    Hunk #1 FAILED at 15.
    Hunk #2 FAILED at 100.
    Hunk #3 FAILED at 172.
    3 out of 3 hunks FAILED -- saving rejects to file classes/Settings.php.rej
    patching file classes/SettingsQuery.php
    Hunk #1 FAILED at 46.
    Hunk #2 FAILED at 78.
    Hunk #3 FAILED at 87.
    3 out of 3 hunks FAILED -- saving rejects to file classes/SettingsQuery.php.rej
    patching file locale/en/admin.php
    Hunk #1 FAILED at 181.
    1 out of 1 hunk FAILED -- saving rejects to file locale/en/admin.php.rej
    patching file shared/read_settings.php
    Hunk #1 FAILED at 81.
    1 out of 1 hunk FAILED -- saving rejects to file shared/read_settings.php.rej
    patching file circ/checkin_form.php
    Hunk #1 FAILED at 24.
    1 out of 1 hunk FAILED -- saving rejects to file circ/checkin_form.php.rej
    patching file circ/checkout.php
    Hunk #1 FAILED at 7.
    1 out of 1 hunk FAILED -- saving rejects to file circ/checkout.php.rej
    patching file circ/index.php
    Hunk #1 FAILED at 12.
    1 out of 1 hunk FAILED -- saving rejects to file circ/index.php.rej
    patching file circ/mbr_history.php
    Hunk #1 FAILED at 8.
    1 out of 1 hunk FAILED -- saving rejects to file circ/mbr_history.php.rej
    patching file circ/mbr_print_checkouts.php
    Hunk #1 FAILED at 10.
    1 out of 1 hunk FAILED -- saving rejects to file circ/mbr_print_checkouts.php.rej
    patching file circ/mbr_search.php
    Hunk #1 FAILED at 8.
    1 out of 1 hunk FAILED -- saving rejects to file circ/mbr_search.php.rej
    patching file circ/mbr_view.php
    Hunk #1 FAILED at 12.
    1 out of 1 hunk FAILED -- saving rejects to file circ/mbr_view.php.rej
    patching file circ/place_hold.php
    Hunk #1 FAILED at 7.
    1 out of 1 hunk FAILED -- saving rejects to file circ/place_hold.php.rej
    patching file circ/shelving_cart.php
    Hunk #1 FAILED at 7.
    1 out of 1 hunk FAILED -- saving rejects to file circ/shelving_cart.php.rej
    patching file navbars/circulation.php
    Hunk #1 FAILED at 7.
    1 out of 1 hunk FAILED -- saving rejects to file navbars/circulation.php.rej
    patching file classes/UpgradeQuery.php
    Hunk #1 FAILED at 216.
    1 out of 1 hunk FAILED -- saving rejects to file classes/UpgradeQuery.php.rej
    patching file install/0.6.0/sql/settings.sql
    Reversed (or previously applied) patch detected!  Assume -R? [n]
    

    When I add column "self_service_flag" in the settings table manually, the column remains empty and there is no self service section in the webinterface.

    Is anybody out there having a solution?

    TIA!

     


Anonymous


Cancel   Add attachments