Bugzilla – Attachment 15809 Details for
Bug 7883
save and continue editing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Added the ability to save and continue editing in cataloging.
Added-the-ability-to-save-and-continue-editing-in-.patch (text/plain), 3.39 KB, created by
Elliott Davis
on 2013-03-01 17:15:54 UTC
(
hide
)
Description:
Added the ability to save and continue editing in cataloging.
Filename:
MIME Type:
Creator:
Elliott Davis
Created:
2013-03-01 17:15:54 UTC
Size:
3.39 KB
patch
obsolete
>From 2316a26ac3a716952a61fcbeaef26258a95e5efd Mon Sep 17 00:00:00 2001 >From: Elliott Davis <elliott@bywatersolions.com> >Date: Tue, 29 Jan 2013 02:32:18 -0500 >Subject: [PATCH] Added the ability to save and continue editing in cataloging. > >This patch adds the ability for catalogers to save and continue editing when adding new biblios. >This is helpful in the event of a power failure or perhaps in the event you step away for a sandwich and your co-worker closes your tab to look at cats. > >To Test: > >Select an existing item or create a new item in cataloging using your favorite framework. >Edit the item >From the save menu in the dropdown, select the new option of "Save and continue editing" >If you are missing requited fields you should still be prompted to fill them in before saving >Once all required fields are in place you should be allowed to save and should be on the same page >(You're fresh bib record should also be saved) > >http://bugs.koha-community.org/show_bug.cgi?id=7883 > >Modified: > >Changed malformed urls in form submits >--- > cataloguing/addbiblio.pl | 7 +++++-- > .../prog/en/modules/cataloguing/addbiblio.tt | 3 ++- > 2 files changed, 7 insertions(+), 3 deletions(-) > >diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl >index caacd91..428d436 100755 >--- a/cataloguing/addbiblio.pl >+++ b/cataloguing/addbiblio.pl >@@ -863,7 +863,7 @@ if ( $op eq "addbiblio" ) { > else { > ( $biblionumber, $oldbibitemnum ) = AddBiblio( $record, $frameworkcode ); > } >- if ($redirect eq "items" || ($mode ne "popup" && !$is_a_modif && $redirect ne "view")){ >+ if ($redirect eq "items" || ($mode ne "popup" && !$is_a_modif && $redirect ne "view" && $redirect ne "just_save")){ > if ($frameworkcode eq 'FA'){ > my $borrowernumber = $input->param('circborrowernumber'); > my $barcode = $input->param('barcode'); >@@ -882,7 +882,7 @@ if ( $op eq "addbiblio" ) { > exit; > } > } >- elsif($is_a_modif || $redirect eq "view"){ >+ elsif(($is_a_modif || $redirect eq "view") && $redirect ne "just_save"){ > my $defaultview = C4::Context->preference('IntranetBiblioDefaultView'); > my $views = { C4::Search::enabled_staff_search_views }; > if ($defaultview eq 'isbd' && $views->{can_view_ISBD}) { >@@ -897,6 +897,9 @@ if ( $op eq "addbiblio" ) { > exit; > > } >+ elsif ($redirect eq "just_save"){ >+ print $input->redirect("/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=$biblionumber&framework=$frameworkcode"); >+ } > else { > $template->param( > biblionumber => $biblionumber, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >index 7d54142..fb5edbc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tt >@@ -346,7 +346,8 @@ function Changefwk(FwkList) { > > var savemenu = [ > { text: _("Save and view record"), value: 1, onclick: {fn:function(){redirect("view");}} }, >- { text: _("Save and edit items"), value: 2, onclick: {fn:function(){redirect("items");}} } >+ { text: _("Save and edit items"), value: 2, onclick: {fn:function(){redirect("items");}} }, >+ { text: _("Save and continue editing"), value: 3, onclick: {fn:function(){redirect("just_save");}} } > ]; > [% END %] > >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7883
:
13554
|
14909
|
15500
|
15809
|
16102
|
16224
|
17921