LP1423922: Quick staff option to place another hold
authorKathy Lussier <klussier@masslnc.org>
Fri, 20 Feb 2015 14:03:13 +0000 (09:03 -0500)
committerBen Shum <bshum@biblio.org>
Sat, 21 Feb 2015 07:28:29 +0000 (02:28 -0500)
When a hold is successful in the staff client, provide a link to place another
hold on the same title. This is a time savings for staff when placing holds
for multiple patrons on a newly-added title or when doing book club requests.

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/opac/css/style.css.tt2
Open-ILS/src/templates/opac/parts/place_hold.tt2
Open-ILS/src/templates/opac/parts/place_hold_result.tt2
docs/RELEASE_NOTES_NEXT/OPAC/place-another-hold-link.txt [new file with mode: 0644]

index 577ecba..f93bf9e 100644 (file)
@@ -1206,6 +1206,8 @@ a.dash-link:hover { text-decoration: underline !important; }
 .hold-items-list-title { font-size: [% css_fonts.size_bigger %]; }
 .hold-items-list-problem { color: [% css_colors.text_alert %]; }
 
+.hold_success_links > span { margin: 0 2em; }
+
 .mr_holds_no_formats { 
   padding: 5px;
   margin-left: 25px;
index 8c70ca5..192b65b 100644 (file)
@@ -16,6 +16,7 @@
             redirect = redirect.replace('^http:', 'https:') 
         %]
         <input type="hidden" name="redirect_to" value="[% redirect | html %]" />
+        <input type="hidden" name="hold_source_page" value="[% CGI.param('hold_source_page') | html %]" />
 
         [% IF ctx.is_staff %]
         <p class="staff-hold">
index 017a163..5ec0afc 100644 (file)
         [% IF any_failures OR ctx.general_hold_error %]
         <a href="[% CGI.param('redirect_to') || CGI.referer | html %]">[% l('Cancel') %]</a>
         [% ELSE %]
-        <a href="[% CGI.param('redirect_to') || CGI.referer | html %]">[% l('Continue') %]</a>
+        <div class='hold_success_links'>
+          <span><a href="[% CGI.param('redirect_to') || CGI.referer | html %]">[% l('Continue') %]</a></span>
+           [% IF ctx.is_staff %]
+             [% IF CGI.param('hold_type') == 'C';
+                  hold_type_label = 'copy';
+                ELSIF CGI.param('hold_type') == 'V';
+                  hold_type_label = 'volume';
+                ELSE;
+                  hold_type_label = 'title';
+              END %]
+               <span><a href="[% mkurl(ctx.opac_root _ '/place_hold', {hold_source_page => CGI.param('hold_source_page')}) %]">
+               [% l('Place another hold for this ') %] [% hold_type_label %]</a>
+               </span>
+          [% END %]
         [% END %]
         </span>
     </form>
diff --git a/docs/RELEASE_NOTES_NEXT/OPAC/place-another-hold-link.txt b/docs/RELEASE_NOTES_NEXT/OPAC/place-another-hold-link.txt
new file mode 100644 (file)
index 0000000..521b599
--- /dev/null
@@ -0,0 +1,7 @@
+Staff option to place another hold on same title
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+When a hold is successful in the client, staff will now see a link
+to place another hold on the same title. This link provides some workflow 
+improvement for times when staff are placing holds for multiple patrons on a
+newly-added title or when they are placing holds for book clubs.
+