Bugzilla – Attachment 115792 Details for
Bug 27446
Markup errors in suggestion/suggestion.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27446: Markup errors in suggestion/suggestion.tt
Bug-27446-Markup-errors-in-suggestionsuggestiontt.patch (text/plain), 131.35 KB, created by
David Nind
on 2021-01-25 22:40:26 UTC
(
hide
)
Description:
Bug 27446: Markup errors in suggestion/suggestion.tt
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-01-25 22:40:26 UTC
Size:
131.35 KB
patch
obsolete
>From a47a0d1dbce74bd0907ba90a1be7bd5aefd4d50f Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 25 Jan 2021 11:30:30 +0000 >Subject: [PATCH] Bug 27446: Markup errors in suggestion/suggestion.tt > >This patch makes various corrections to the suggestions template in the >staff interface: > > - Correct indentation > - Fix unclosed tags > - Fix non-unique IDs > - Add comments to highlight markup structure > >To test, apply the patch and test the suggestions interface in the staff >client: > > - Viewing the list of suggestions > - Viewing the details of a single suggestion > - Filtering suggestions > - Organizing suggestions > >Test that labels on form controls work correctly, including under each >tab. > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../prog/en/modules/suggestion/suggestion.tt | 2023 +++++++++++--------- > 1 file changed, 1116 insertions(+), 907 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >index a227fc244f..5feda9c041 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >@@ -23,945 +23,1154 @@ > </title> > [% INCLUDE 'doc-head-close.inc' %] > [% IF op == 'else' %] >- <style> >- h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief ol { display : none; } >- .overlay { top: 180px; left: 50%; position: absolute; margin-left: -100px; width: 200px; text-align: center; display: none; margin-top: -10px; background: #eeffd4; padding: .5em; color: #000; } >- </style> >+ [% FILTER collapse %] >+ <style> >+ h4.local_collapse a { >+ font-size: 80%; >+ text-decoration: none; >+ } >+ fieldset.brief ol { >+ display: none; >+ } >+ .overlay { >+ background: #eeffd4; >+ color: #000; >+ display: none; >+ left: 50%; >+ margin-left: -100px; >+ margin-top: -10px; >+ padding: .5em; >+ position: absolute; >+ text-align: center; >+ top: 180px; >+ width: 200px; >+ } >+ </style> >+ [% END %] > [% END %] > </head> > > <body id="acq_suggestion" class="acq"> >-[% INCLUDE 'header.inc' %] >-[% INCLUDE 'cat-search.inc' %] >-<div id="breadcrumbs"> >- <a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › >- [% IF op == 'save' %] >- [% IF ( suggestionid ) %] >- <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> › Edit suggestion #[% suggestionid | html %] >- [% ELSE %] >- <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> › Add suggestion >- [% END %] >- [% ELSIF ( op == 'show' ) %] >- <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> › Show suggestion #[% suggestionid | html %] >- [% ELSE %] >- Suggestions management >- [% END %] >-</div> >- >-[% IF ( op == 'show' ) %] >- <div class="main container-fluid"> >- <div class="row"> >- <div class="col-md-8 col-md-offset-2"> >- >- <div id="toolbar" class="btn-toolbar"> >- <a class="btn btn-default" id="editsuggestion" href="suggestion.pl?op=edit&suggestionid=[% suggestionid | html %]"><i class="fa fa-pencil"></i> Edit</a> >- <a class="btn btn-default deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a> >- </div> >- >- <fieldset class="rows"> >- <legend>Bibliographic information</legend> >- <ol> >- [% IF ( title ) %] >- <li> >- <span class="label">Title:</span> >- [% IF suggestion.biblionumber %] >- <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% suggestion.biblionumber | uri %]">[% suggestion.title | html %]</a> >- [% ELSE %] >- [% title | html %] >- [% END %] >- </li> >- [% END %] >- [% IF ( author ) %] >- <li> >- <span class="label">Author:</span> >- [% author | html %] >- </li> >- [% END %] >- [% IF ( copyrightdate ) %] >- <li> >- <span class="label">Copyright date:</span> >- [% copyrightdate | html %] >- </li> >- [% END %] >- [% IF ( isbn ) %] >- <li> >- <span class="label">ISBN or ISSN or other standard number:</span> >- [% isbn | html %] >- </li> >- [% END %] >- [% IF ( publishercode ) %] >- <li> >- <span class="label">Publisher:</span> >- [% publishercode | html %] >- </li> >- [% END %] >- [% IF ( place ) %] >- <li> >- <span class="label">Publication place:</span> >- [% place | html %] >- </li> >- [% END %] >- [% IF ( collectiontitle ) %] >- <li> >- <span class="label">Collection title:</span> >- [% collectiontitle | html %] >- </li> >- [% END %] >- [% IF ( itemtype ) %] >- <li> >- <span class="label">Document type:</span> >- [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', itemtype, 0 ) | html %] >- </li> >- [% END %] >- [% IF ( patron_reason_loop ) %] >- <li><span class="label">Reason for suggestion: </span> >- [% FOREACH patron_reason_loo IN patron_reason_loop %] >- [% IF patron_reason_loo.authorised_value == patronreason %][% patron_reason_loo.lib | html %][% END %] >- [% END %] >- </li> >- [% END %] >- [% IF ( note ) %] >- <li> >- <span class="label">Notes:</span> >- [% note | html %] >- </li> >- [% END %] >- </ol> >- </fieldset> >- <fieldset class="rows"> <legend>Suggestion management</legend> >- <ol> >- <li> >- <span class="label">Status:</span> >- [% SET status_found = 0 %] >- [% IF ( STATUS == 'ASKED' ) %] >- Pending >- [% SET status_found = 1 %] >- [% ELSIF ( STATUS == 'ACCEPTED' ) %] >- Accepted >- [% SET status_found = 1 %] >- [% ELSIF ( STATUS == 'CHECKED' ) %] >- Checked >- [% SET status_found = 1 %] >- [% ELSIF ( STATUS == 'REJECTED' ) %] >- Rejected >- [% SET status_found = 1 %] >- [% ELSIF ( STATUS == 'ORDERED' ) %] >- Ordered >- [% SET status_found = 1 %] >- [% ELSIF ( STATUS == 'AVAILABLE' ) %] >- Available >- [% SET status_found = 1 %] >- [% ELSE %] >- [% FOREACH s IN SuggestionStatuses %] >- [% IF STATUS == s.authorised_value %] >- [% s.lib | html %] >- [% SET status_found = 1 %] >- [% END %] >- [% END %] >- [% END %] >- >- </li> >- <li> >- <span class="label">Reason:</span> >- [% IF ( reason ) %] >- [% AuthorisedValues.GetByCode( 'SUGGEST', reason, 0 ) | html %] >- [% END %] >- </li> >- <li> >- <table> >- <thead><tr><th> </th><th>Date</th><th>By</th></tr></thead> >- <tbody> >- <tr> >- <th>[% tp('purchase suggestion created by', 'Created by:') | html %]</th> >- <td>[% suggesteddate | $KohaDates %]</td> >- <td> >- [% IF ( suggestedby_patron.borrowernumber ) %] >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestedby_patron.borrowernumber | uri %]">[% suggestedby_patron.surname | html %], [% suggestedby_patron.firstname | html %] ([% suggestedby_patron.cardnumber | html %])</a> >- [% Branches.GetName( suggestedby_patron.branchcode ) | html %] ([% suggestedby_patron.category.description | html %]) >- [% END %] >- </td> >- </tr> >- <tr> >- <th>Managed by:</th> >- <td>[% manageddate | $KohaDates %]</td> >- <td> >- [% IF ( managedby_patron.borrowernumber ) %] >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% managedby_patron.borrowernumber | uri %]">[% managedby_patron.surname | html %], [% managedby_patron.firstname | html %] ([% managedby_patron.cardnumber | html %])</a> >- [% Branches.GetName( managedby_patron.branchcode ) | html %] ([% managedby_patron.category.description | html %]) >- [% END %] >- </td> >- </tr> >- <tr> >- <th>Accepted on:</th> >- <td>[% accepteddate | $KohaDates %]</td> >- <td> >- [% IF ( acceptedby_patron.borrowernumber ) %] >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% acceptedby_patron.borrowernumber | uri %]">[% acceptedby_patron.surname | html %], [% acceptedby_patron.firstname | html %] ([% acceptedby_patron.cardnumber | html %])</a> >- [% Branches.GetName( acceptedby_patron.branchcode ) | html %] ([% acceptedby_patron.category.description | html %]) >- [% END %] >- </td> >- </tr> >- <tr> >- <th>Last modification on:</th> >- <td>[% lastmodificationdate | $KohaDates %]</td> >- <td> >- [% IF ( lastmodificationby_patron.borrowernumber ) %] >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% lastmodificationby_patron.borrowernumber | uri %]">[% lastmodificationby_patron.surname | html %], [% lastmodificationby_patron.firstname | html %] ([% lastmodificationby_patron.cardnumber | html %])</a> >- [% Branches.GetName( lastmodificationby_patron.branchcode ) | html %] ([% lastmodificationby_patron.category.description | html %]) >- [% END %] >- </td> >- </tr> >- </tbody> >- </table></li></ol> >- </fieldset> >- <fieldset class="rows"> <legend>Acquisition information</legend> >- <ol> >- <li> >- <span class="label">Library:</span> [% Branches.GetName( branchcode ) | html %] >- </li> >- <li> >- <span class="label">Fund:</span> [% budgetname | html %] >- </li> >- <li> >- <span class="label">Copies:</span>[% quantity | html %] >- </li> >- <li> >- <span class="label">Currency:</span>[% currency | html %] >- </li> >- <li> >- <span class="label">Price:</span>[% price | $Price %] >- </li> >- <li> >- <span class="label">Total</span>[% total | $Price %] >- </li> >- </ol> >- </fieldset> >- >- <fieldset class="action"> >- <a href="suggestion.pl"><< Back to suggestions</a> >- </fieldset> >- >- </div> >- </div> >-</div> >-[% ELSE %] >- >-[% IF op == 'save' %] >- <div class="main container-fluid"> >- <div class="row"> >- <div class="col-md-8 col-md-offset-2"> >-[% ELSE %] >- <div class="main container-fluid"> >- <div class="row"> >- <div class="col-sm-10 col-sm-push-2"> >- <main> >+ [% INCLUDE 'header.inc' %] >+ [% INCLUDE 'cat-search.inc' %] > >-[% END %] >- >-[% IF op == 'save' %] >- [% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >- [% SWITCH m.code %] >- [% CASE 'biblio_exists' %] >- A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id | uri %]">[% m.title | html %]</a>. Click on "Confirm your suggestion" to ignore this message. >- [% CASE 'manager_not_enough_permissions' %] >- The manager you selected does not have sufficient permissions. >- [% CASE %] >- [% m.code | html %] >+ <div id="breadcrumbs"> >+ <a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › >+ [% IF op == 'save' %] >+ [% IF ( suggestionid ) %] >+ <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> › Edit suggestion #[% suggestionid | html %] >+ [% ELSE %] >+ <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> › Add suggestion > [% END %] >- </div> >- [% END %] >- <form id="add_edit" action="suggestion.pl" method="post" class="validated"> >- <input type="hidden" name="redirect" id="redirect" value="[% redirect | html %]" /> >- <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber | html %]" /> >- [% IF ( suggestionid ) %] >- <h1>Edit purchase suggestion #[% suggestionid | html %]</h1> >- <input type="hidden" name="suggestionid" value="[% suggestionid | html %]"/> >- [% ELSE %] >- <h1>Enter a new purchase suggestion</h1> >- [% END %] >- <fieldset class="rows"> <legend>Bibliographic information</legend><ol> >- <li> >- <label for="title" class="required">Title:</label> >- <input type="text" id="title" name="title" size="80" maxlength="255" value="[% title | html %]" required="required" class="required" /> >- <span class="required">Required</span> >- </li> >- <li><label for="author">Author:</label><input type="text" id="author" name="author" size="50" maxlength="80" value="[% author | html %]"/></li> >- <li><label for="copyrightdate">Copyright date:</label><input type="text" id="copyrightdate" name="copyrightdate" size="4" maxlength="4" value="[% copyrightdate | html %]" /></li> >- <li><label for="isbn">ISBN or ISSN or other standard number:</label><input type="text" id="isbn" name="isbn" size="50" maxlength="80" value="[% isbn | html %]"/></li> >- <li><label for="publishercode">Publisher:</label><input type="text" id="publishercode" name="publishercode" size="50" maxlength="80" value="[% publishercode | html %]"/></li> >- <li><label for="place">Publication place:</label><input type="text" id="place" name="place" size="50" maxlength="80" value="[% place | html %]"/></li> >- <li><label for="collectiontitle">Collection title:</label><input type="text" id="collectiontitle" name="collectiontitle" size="50" maxlength="80" value="[% collectiontitle | html %]"/></li> >- <li><label for="itemtype">Document type:</label> >- [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20, default=itemtype %] >- </li> >- [% IF patron_reason_loop %] >- <li> >- <label for="patronreason">Reason for suggestion: </label> >- <select name="patronreason" id="patronreason"> >- <option value=""> -- Choose -- </option> >- [% FOREACH patron_reason_loo IN patron_reason_loop %] >- [% IF patron_reason_loo.authorised_value == patronreason %] >- <option value="[% patron_reason_loo.authorised_value | html %]" selected="selected">[% patron_reason_loo.lib | html %]</option> >- [% ELSE %] >- <option value="[% patron_reason_loo.authorised_value | html %]">[% patron_reason_loo.lib | html %]</option> >- [% END %] >- [% END %] >- </select> >- </li> >+ [% ELSIF ( op == 'show' ) %] >+ <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> › Show suggestion #[% suggestionid | html %] >+ [% ELSE %] >+ Suggestions management > [% END %] >- <li><label for="note">Notes:</label><textarea name="note" id="note" rows="5" cols="40">[% note | html %]</textarea></li> >- </ol> >- </fieldset> >- <fieldset class="rows"> <legend>Suggestion management</legend> >- <ol> >- [% IF ( suggestionid ) %] >- <li> >- <label for="STATUS">Status:</label> >- <select id="STATUS" name="STATUS"> >- <option value="">No status</option> >- >- [% IF (statusselected_ASKED ) %] >- <option value="ASKED" selected="selected">Pending</option> >- [% ELSE %] >- <option value="ASKED">Pending</option> >- [% END %] >+ </div> <!-- /.breadcrumbs --> > >- [% IF (statusselected_ACCEPTED ) %] >- <option value="ACCEPTED" selected="selected">Accepted</option> >- [% ELSE %] >- <option value="ACCEPTED">Accepted</option> >- [% END %] >+ [% IF ( op == 'show' ) %] >+ <div class="main container-fluid"> >+ <div class="row"> >+ <div class="col-md-8 col-md-offset-2"> > >- [% IF (statusselected_CHECKED ) %] >- <option value="CHECKED" selected="selected">Checked</option> >- [% ELSE %] >- <option value="CHECKED">Checked</option> >- [% END %] >- >- [% IF ( statusselected_REJECTED ) %] >- <option value="REJECTED" selected="selected">Rejected</option> >- [% ELSE %] >- <option value="REJECTED">Rejected</option> >- [% END %] >- >- [% IF ( statusselected_ORDERED ) %] >- <option value="ORDERED" selected="selected">Ordered</option> >- [% ELSE %] >- <option value="ORDERED">Ordered</option> >- [% END %] >+ <div id="toolbar" class="btn-toolbar"> >+ <a class="btn btn-default" id="editsuggestion" href="suggestion.pl?op=edit&suggestionid=[% suggestionid | html %]"><i class="fa fa-pencil"></i> Edit</a> >+ <a class="btn btn-default deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a> >+ </div> > >- [% FOREACH s IN SuggestionStatuses %] >- [% IF s.authorised_value == suggestion.STATUS %] >- <option value="[% s.authorised_value | html %]" selected="selected">[% s.lib | html %]</option> >- [% ELSE %] >- <option value="[% s.authorised_value | html %]">[% s.lib | html %]</option> >+ <fieldset class="rows"> >+ <legend>Bibliographic information</legend> >+ <ol> >+ [% IF ( title ) %] >+ <li> >+ <span class="label">Title:</span> >+ [% IF suggestion.biblionumber %] >+ <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% suggestion.biblionumber | uri %]">[% suggestion.title | html %]</a> >+ [% ELSE %] >+ [% title | html %] >+ [% END %] >+ </li> >+ [% END %] >+ [% IF ( author ) %] >+ <li> >+ <span class="label">Author:</span> >+ [% author | html %] >+ </li> > [% END %] >- [% END %] >- </select> >- </li> >- <li> >- <label for="reason">Reason</label> >- <select class="select-reason" id="reason" name="reason"> >- <option value=""> -- Choose a reason -- </option> >- [% FOREACH reasonsloo IN suggestion.reasonsloop %] >- [% IF (reasonsloo.lib == suggestion.reason) %] >- <option value="[% reasonsloo.lib | html %]" selected="selected">[% reasonsloo.lib | html %]</option> >- [% ELSE %] >- <option value="[% reasonsloo.lib | html %]">[% reasonsloo.lib | html %]</option> >+ [% IF ( copyrightdate ) %] >+ <li> >+ <span class="label">Copyright date:</span> >+ [% copyrightdate | html %] >+ </li> > [% END %] >- [% END %] >- <option value="other">Others...</option> >- </select> >- >- <span id="other_reason" name="other_reason"> >- [% IF other_reason %] >- <input type="text" size="31" id="select-other_reason" name="other_reason" placeholder="please note your reason here..." value="[% suggestion.reason | html %]"/> >- [% ELSE %] >- <input type="text" size="31" id="select-other_reason" name="other_reason" placeholder="please note your reason here..." /> >- [% END %] >- <a href="#back">Cancel</a> >- </span> >- </li> >- [% END %] >- <li><table> >- <thead><tr><th> </th><th>Date</th><th>By</th><th>Action</th></tr></thead> >- <tbody> >- <tr> >- <th><label for="suggesteddate">[% tp('purchase suggestion created by', 'Created by:') | html %]</label> </th> >- <td><input type="text" id="suggesteddate" name="suggesteddate" class="datepicker" size="10" maxlength="10" value="[% suggesteddate | $KohaDates %]"/>[% INCLUDE 'date-format.inc' %]</td> >- <td id="tdsuggestedby"><input type="hidden" id="suggestedby" name="suggestedby" value="[% suggestedby | html %]"/>[% IF ( suggestedby_patron.borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestedby_patron.borrowernumber | uri %]">[% suggestedby_patron.surname | html %], [% suggestedby_patron.firstname | html %] ([% suggestedby_patron.cardnumber | html %])</a> [% Branches.GetName( suggestedby_patron.branchcode ) | html %] ([% suggestedby_patron.category.description | html %])[% END %] >- </td> >- <td><a href="#" id="edit_suggester" class="btn btn-default">Set to patron</a></td> >- </tr> >- <tr> >- <th><label for="accepteddate">Accepted on:</label> </th> >- <td><input type="text" id="accepteddate" name="accepteddate" class="datepicker" size="10" maxlength="10" value="[% accepteddate | $KohaDates %]" />[% INCLUDE 'date-format.inc' %]</td> >- <td><input type="hidden" id="acceptedby" name="acceptedby" value="[% acceptedby | html %]"/>[% IF ( acceptedby_patron.borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% acceptedby_patron.borrowernumber | uri %]">[% acceptedby_patron.surname | html %], [% acceptedby_patron.firstname | html %] ([% suggestedby_patron.cardnumber | html %])</a> [% Branches.GetName( acceptedby_patron.branchcode ) | html %] ([% acceptedby_patron.category.description | html %])[% END %]</td> >- <td></td> >- </tr> >- <tr> >- <th><label for="lastmodificationdate">Last modification on:</label> </th> >- <td>[% lastmodificationdate | $KohaDates %]</td> >- <td> >- [% IF lastmodificationby_patron %] >- [% INCLUDE 'patron-title.inc' patron=lastmodificationby_patron hide_patron_infos_if_needed=1 %] [% Branches.GetName( lastmodificationby_patron.branchcode ) | html %] ([% lastmodificationby_patron.category.description | html %]) >- [% END %] >- </td> >- <td></td> >- </tr> >- </tbody> >- </table></li> >- >- <li> >- <label for="managedon">Managed on:</label> >- <input type="text" id="managedon" name="manageddate" class="datepicker" size="10" maxlength="10" value="[% manageddate | $KohaDates %]" />[% INCLUDE 'date-format.inc' %] >- </li> >- <li> >- <label for="managedby_name">by:</label> >- <div> >- <span id="managedby_name" name="managedby_name"> >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% logged_in_user.borrowernumber | uri %]">You</a> >- </span> >- [% IF managedby_patron.borrowernumber && logged_in_user.borrowernumber != managedby_patron.borrowernumber %] >- | Previously was [% INCLUDE 'patron-title.inc' patron=managedby_patron hide_patron_infos_if_needed=1 %] [% Branches.GetName( managedby_patron.branchcode ) | html %] ([% managedby_patron.category.description | html %]) >- [% END %] >- <br /> >- <a id="edit_manager" class="new_window" href="#"><i class="fa fa-search"></i> Select manager</a> >- [% IF managedby_patron.borrowernumber && logged_in_user.borrowernumber != managedby_patron.borrowernumber %] >- <a id="restore_previous_manager" href="#"><i class="fa fa-trash"></i> Keep existing manager</a> >- [% END %] >- <input type="hidden" name="managedby" id="managedby" value="[% logged_in_user.borrowernumber | html %]" /> >- >- <br/> >- <label for="notify">Notify manager:</label> >- <input type="checkbox" id="notify" name="notify" value="notify" disabled="disabled" title="A NOTIFY_MANAGER notice will be generated and send to the manager if a valid email address is defined. This can be checked if a new manager has been selected." /> >- </div> >- </li> >- </ol> >- </fieldset> >- <fieldset class="rows"> <legend>Acquisition information</legend><ol> >- <li><label for="branchcode">Library:</label> >- <select name="branchcode" id="branchcode"> >- <option value="">Any</option> >- [% PROCESS options_for_libraries libraries => Branches.all( selected => branchfilter || branchcode ) %] >- </select> >- </li> >- <li><label for="budgetid">Fund:</label> >- <select name="budgetid" id="budgetid"> >- <option value="">Any</option> >- [% FOREACH budget IN sugg_budgets %] >- [% IF ( budget.selected ) %] >- <option value="[% budget.b_id | html %]" selected="selected">[% budget.b_txt | html %] [% IF ( !budget.b_active ) %](inactive)[% END %]</option> >- [% ELSIF ( budget.b_active ) %] >- <option value="[% budget.b_id | html %]">[% budget.b_txt | html %]</option> >- [% ELSE %] >- <option value="[% budget.b_id | html %]" class="b_inactive">[% budget.b_txt | html %] (inactive)</option> >- [% END %] >- [% END %] >- </select> >- <label for="showallfunds" style="float:none;width:auto;"> Show inactive:</label> >- <input type="checkbox" id="showallfunds" /> >- </li> >- <li><label for="quantity">Copies:</label> >- <input type="text" size="10" id="quantity" name="quantity" value="[% quantity | html %]" /> >- </li> >- <li> >- <label for="currency">Currency:</label> >- [% FOREACH c IN currencies %] >- <input type="hidden" value="[% c.rate | html %]" id="currency_rate_[% c.currency | html %]" name="currency_rate_[% c.currency | html %]" /> >- <input type="hidden" id="[% c.currency | html %]" name="[% c.currency | html %]" value="[% c.rate | html %]" /> >- [% END %] >- >- <select name="currency" id="currency"> >- [% FOREACH c IN currencies %] >- [% IF suggestionid and suggestion.currency == c.currency or not suggestionid and c.active %] >- <option value="[% c.currency | html %]" selected="selected">[% c.currency | html %]</option> >- [% ELSIF not c.archived %] >- <option value="[% c.currency | html %]">[% c.currency | html %]</option> >+ [% IF ( isbn ) %] >+ <li> >+ <span class="label">ISBN or ISSN or other standard number:</span> >+ [% isbn | html %] >+ </li> > [% END %] >- [% END %] >- </select> >- </li> >- <li><label for="price">Price:</label> >- <input type="text" size="20" name="price" id="price" value="[% price | html %]" /> >- </li><li><label for="total">Total: </label> >- <input type="text" readonly="readonly" id="total" name="total" size="10" value="[% total | html %]"/> >- </li></ol> >- </fieldset><input type="hidden" id="returnsuggested" name="returnsuggested" value="[% IF ( returnsuggestedby ) %][% returnsuggestedby | html %][% ELSE %]noone[% END %]"/> >- <fieldset class="action"> >- <input type="hidden" name="op" value="[% op | html %]" /> >- [% IF ( suggestionid ) %] >- [% IF ( need_confirm ) %] >- <input type="hidden" name="save_confirmed" value="1" /> >- <input onclick="this.form.op.value = 'save'; this.form.submit();" type="submit" value="Confirm your suggestion" /> >- [% ELSE %] >- <input type="submit" value="Save" /> >- [% END %] >- <a class="cancel" href="[% IF ( returnsuggestedby ) %]/cgi-bin/koha/members/moremember.pl?borrowernumber=[% returnsuggestedby | uri %]#suggestions[% ELSE %]suggestion.pl[% END %]">Cancel</a> >+ [% IF ( publishercode ) %] >+ <li> >+ <span class="label">Publisher:</span> >+ [% publishercode | html %] >+ </li> >+ [% END %] >+ [% IF ( place ) %] >+ <li> >+ <span class="label">Publication place:</span> >+ [% place | html %] >+ </li> >+ [% END %] >+ [% IF ( collectiontitle ) %] >+ <li> >+ <span class="label">Collection title:</span> >+ [% collectiontitle | html %] >+ </li> >+ [% END %] >+ [% IF ( itemtype ) %] >+ <li> >+ <span class="label">Document type:</span> >+ [% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', itemtype, 0 ) | html %] >+ </li> >+ [% END %] >+ [% IF ( patron_reason_loop ) %] >+ <li> >+ <span class="label">Reason for suggestion: </span> >+ [% FOREACH patron_reason_loo IN patron_reason_loop %] >+ [% IF patron_reason_loo.authorised_value == patronreason %] >+ [% patron_reason_loo.lib | html %] >+ [% END %] >+ [% END %] >+ </li> >+ [% END %] >+ [% IF ( note ) %] >+ <li> >+ <span class="label">Notes:</span> >+ [% note | html %] >+ </li> >+ [% END %] >+ </ol> >+ </fieldset> >+ >+ <fieldset class="rows"> >+ <legend>Suggestion management</legend> >+ <ol> >+ <li> >+ <span class="label">Status:</span> >+ [% SET status_found = 0 %] >+ [% IF ( STATUS == 'ASKED' ) %] >+ Pending >+ [% SET status_found = 1 %] >+ [% ELSIF ( STATUS == 'ACCEPTED' ) %] >+ Accepted >+ [% SET status_found = 1 %] >+ [% ELSIF ( STATUS == 'CHECKED' ) %] >+ Checked >+ [% SET status_found = 1 %] >+ [% ELSIF ( STATUS == 'REJECTED' ) %] >+ Rejected >+ [% SET status_found = 1 %] >+ [% ELSIF ( STATUS == 'ORDERED' ) %] >+ Ordered >+ [% SET status_found = 1 %] >+ [% ELSIF ( STATUS == 'AVAILABLE' ) %] >+ Available >+ [% SET status_found = 1 %] >+ [% ELSE %] >+ [% FOREACH s IN SuggestionStatuses %] >+ [% IF STATUS == s.authorised_value %] >+ [% s.lib | html %] >+ [% SET status_found = 1 %] >+ [% END %] >+ [% END %] >+ [% END %] >+ </li> >+ <li> >+ <span class="label">Reason:</span> >+ [% IF ( reason ) %] >+ [% AuthorisedValues.GetByCode( 'SUGGEST', reason, 0 ) | html %] >+ [% END %] >+ </li> >+ </ol> >+ >+ <table> >+ <thead> >+ <tr> >+ <th> </th> >+ <th>Date</th> >+ <th>By</th> >+ </tr> >+ </thead> >+ <tbody> >+ <tr> >+ <th>[% tp('purchase suggestion created by', 'Created by:') | html %]</th> >+ <td>[% suggesteddate | $KohaDates %]</td> >+ <td> >+ [% IF ( suggestedby_patron.borrowernumber ) %] >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestedby_patron.borrowernumber | uri %]">[% suggestedby_patron.surname | html %], [% suggestedby_patron.firstname | html %] ([% suggestedby_patron.cardnumber | html %])</a> >+ [% Branches.GetName( suggestedby_patron.branchcode ) | html %] ([% suggestedby_patron.category.description | html %]) >+ [% END %] >+ </td> >+ </tr> >+ <tr> >+ <th>Managed by:</th> >+ <td>[% manageddate | $KohaDates %]</td> >+ <td> >+ [% IF ( managedby_patron.borrowernumber ) %] >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% managedby_patron.borrowernumber | uri %]">[% managedby_patron.surname | html %], [% managedby_patron.firstname | html %] ([% managedby_patron.cardnumber | html %])</a> >+ [% Branches.GetName( managedby_patron.branchcode ) | html %] ([% managedby_patron.category.description | html %]) >+ [% END %] >+ </td> >+ </tr> >+ <tr> >+ <th>Accepted on:</th> >+ <td>[% accepteddate | $KohaDates %]</td> >+ <td> >+ [% IF ( acceptedby_patron.borrowernumber ) %] >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% acceptedby_patron.borrowernumber | uri %]">[% acceptedby_patron.surname | html %], [% acceptedby_patron.firstname | html %] ([% acceptedby_patron.cardnumber | html %])</a> >+ [% Branches.GetName( acceptedby_patron.branchcode ) | html %] ([% acceptedby_patron.category.description | html %]) >+ [% END %] >+ </td> >+ </tr> >+ <tr> >+ <th>Last modification on:</th> >+ <td>[% lastmodificationdate | $KohaDates %]</td> >+ <td> >+ [% IF ( lastmodificationby_patron.borrowernumber ) %] >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% lastmodificationby_patron.borrowernumber | uri %]">[% lastmodificationby_patron.surname | html %], [% lastmodificationby_patron.firstname | html %] ([% lastmodificationby_patron.cardnumber | html %])</a> >+ [% Branches.GetName( lastmodificationby_patron.branchcode ) | html %] ([% lastmodificationby_patron.category.description | html %]) >+ [% END %] >+ </td> >+ </tr> >+ </tbody> >+ </table> >+ </fieldset> >+ >+ <fieldset class="rows"> >+ <legend>Acquisition information</legend> >+ <ol> >+ <li> >+ <span class="label">Library:</span> >+ [% Branches.GetName( branchcode ) | html %] >+ </li> >+ <li> >+ <span class="label">Fund:</span> >+ [% budgetname | html %] >+ </li> >+ <li> >+ <span class="label">Copies:</span> >+ [% quantity | html %] >+ </li> >+ <li> >+ <span class="label">Currency:</span> >+ [% currency | html %] >+ </li> >+ <li> >+ <span class="label">Price:</span> >+ [% price | $Price %] >+ </li> >+ <li> >+ <span class="label">Total</span> >+ [% total | $Price %] >+ </li> >+ </ol> >+ </fieldset> >+ >+ <fieldset class="action"> >+ <a href="suggestion.pl"><< Back to suggestions</a> >+ </fieldset> >+ >+ </div> <!-- /.col-md-8 col-md-offset-2 --> >+ </div> <!-- /.row --> >+ [% ELSE # IF op == "show" %] >+ >+ [% IF op == 'save' %] >+ <div class="main container-fluid"> >+ <div class="row"> >+ <div class="col-md-8 col-md-offset-2"> > [% ELSE %] >- [% IF ( need_confirm ) %] >- <input type="hidden" name="save_confirmed" value="1" /> >- <input onclick="this.form.op.value = 'save'; this.form.submit();" type="submit" value="Confirm your suggestion" /> >- [% ELSE %] >- <input type="submit" value="Submit your suggestion" /> >- [% END %] >- <a class="cancel" href="suggestion.pl">Cancel</a> >+ <div class="main container-fluid"> >+ <div class="row"> >+ <div class="col-sm-10 col-sm-push-2"> > [% END %] >- </fieldset> >- </form> >-[% END %] >- >-[% IF op == 'else' %] >-<div id="toolbar" class="btn-toolbar"> >- <a class="btn btn-default" id="newsuggestion" href="suggestion.pl?op=add"><i class="fa fa-plus"></i> New purchase suggestion</a> >-</div> >- >-<h1>Suggestions management</h1> >- >-[% IF ( displayby != "branchcode" ) %] >- <label for="branchcode">Viewing suggestions for library:</label> >- <select name="branchcode" id="branchcode"> >- <option value="__ANY__">Any</option> >- [% PROCESS options_for_libraries libraries => Branches.all( selected => branchfilter || branchcode ) %] >- </select> >-[% END %] >- > >-[% FOR m IN messages %] >- <div class="dialog [% m.type | html %]"> >- [% SWITCH m.code %] >- [% CASE 'already_exists' %] >- The suggestion has not been added. A suggestion with this title already exists (<a href='/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% m.id | html %]&op=show'>suggestion #[% m.id | html %]</a>) >- [% CASE 'biblio_exists' %] >- A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id | uri %]">[% m.title | html %]</a>. Click on "Confirm your suggestion" to ignore this message. >- [% CASE %] >- [% m.code | html %] >- [% END %] >- </div> >-[% END %] >+ [% IF op == 'save' %] >+ [% FOR m IN messages %] >+ <div class="dialog [% m.type | html %]"> >+ [% SWITCH m.code %] >+ [% CASE 'biblio_exists' %] >+ A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id | uri %]">[% m.title | html %]</a>. Click on "Confirm your suggestion" to ignore this message. >+ [% CASE 'manager_not_enough_permissions' %] >+ The manager you selected does not have sufficient permissions. >+ [% CASE %] >+ [% m.code | html %] >+ [% END %] >+ </div> <!-- /.dialog --> >+ [% END %] > >-[% UNLESS ( notabs ) %] >- <div id="suggestiontabs" class="toptabs"> >- <ul class="ui-tabs-nav"> >- [% FOREACH suggestion IN suggestions %] >- <li> >- <a href="#[% suggestion.suggestiontype | uri %]"> >- [% IF ( suggestion.suggestiontypelabel ) %] >- [% IF (suggestion.suggestiontypelabel == "Pending") %]Pending >- [% ELSIF (suggestion.suggestiontypelabel == "Accepted") %]Accepted >- [% ELSIF (suggestion.suggestiontypelabel == "Checked") %]Checked >- [% ELSIF (suggestion.suggestiontypelabel == "Rejected") %]Rejected >- [% ELSIF (suggestion.suggestiontypelabel == "Available") %]Available >- [% ELSIF (suggestion.suggestiontypelabel == "Ordered") %]Ordered >- [% ELSIF (suggestion.suggestiontypelabel == "Unknown") %]Status unknown >- [% ELSIF (suggestion.suggestiontypelabel == "__ANY__") %]Any >- [% ELSE %][% suggestion.suggestiontypelabel | html %][% END %] >- [% ELSE %] >- [% IF ( suggestion.suggestiontype ) %] >- [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.suggestiontype ) | html %] >+ <form id="add_edit" action="suggestion.pl" method="post" class="validated"> >+ <input type="hidden" name="redirect" id="redirect" value="[% redirect | html %]" /> >+ <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber | html %]" /> >+ [% IF ( suggestionid ) %] >+ <h1>Edit purchase suggestion #[% suggestionid | html %]</h1> >+ <input type="hidden" name="suggestionid" value="[% suggestionid | html %]"/> > [% ELSE %] >- No name >+ <h1>Enter a new purchase suggestion</h1> > [% END %] >- [% END %] >- ([% suggestion.suggestions_loop.size | html %])</a></li> >- >- [% END %] >- </ul> >-[% END %] >- >-[% FOREACH suggestion IN suggestions %] >-<div id="[% suggestion.suggestiontype | html %]"> >-<form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype| uri %]"> >- >-[% IF ( suggestion.suggestions_loop ) %] >-<p><a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a></p> >- <table id="table_[% loop.count | html %]" class="sorted"> >- <thead> >- <tr> >- <th class="NoSort noExport"> </th> >- <th class="anti-the">Suggestion</th> >- <th>Suggested by</th> >- <th>Suggested on</th> >- <th>Managed by</th> >- <th>Managed on</th> >- <th>Last modification by</th> >- <th>Last modification on</th> >- <th>Library</th> >- <th>Fund</th> >- <th>Status</th> >- <th class="NoSort noExport"> </th> >- </tr> >- </thead> >- <tbody> >- [% FOREACH suggestions_loo IN suggestion.suggestions_loop %] >- <tr> >- <td> >- <input type="checkbox" name="suggestionid" value="[% suggestions_loo.suggestionid | html %]" /> >- </td> >- <td> >- <a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid | uri %]&op=show" title="suggestion" > >- [% suggestions_loo.title | html %][% IF ( suggestions_loo.author ) %], by [% suggestions_loo.author | html %][% END %]</a> >- <br /> >- [% IF ( suggestions_loo.copyrightdate ) %]© <span class="suggestion_copyrightdate">[% suggestions_loo.copyrightdate | html %]</span> [% END %] >- [% IF ( suggestions_loo.volumedesc ) %]; <span class="suggestion_volume">Volume:<em>[% suggestions_loo.volumedesc | html %]</em></span> [% END %] >- [% IF ( suggestions_loo.isbn ) %]; <span class="suggestion_isbn">ISBN: <em>[% suggestions_loo.isbn | html %]</em></span> [% END %] >- [% IF ( suggestions_loo.publishercode ) %]; <span class="suggestion_publishercode">Published by [% suggestions_loo.publishercode | html %]</span> [% END %] >- [% IF ( suggestions_loo.publicationyear ) %]in <span class="suggestion_publicationyear"><em>[% suggestions_loo.publicationyear | html %]</em></span> [% END %] >- [% IF ( suggestions_loo.place ) %]in <span class="suggestion_place"><em>[% suggestions_loo.place | html %]</em></span> [% END %] >- [% IF ( suggestions_loo.collectiontitle ) %]; <span class="suggestion_collectiontitle">[% suggestions_loo.collectiontitle | html %]</span> [% END %] >- [% IF ( suggestions_loo.itemtype ) %]; <span class="suggestion_itype">[% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestions_loo.itemtype, 0 ) | html %]</span> [% END %]<br /> >- [% IF ( suggestions_loo.note ) %]<div class="suggestion_note"><i class="fa fa-comment"></i> [% suggestions_loo.note | html %]</div>[% END %] >- [% IF suggestions_loo.archived %]<br /><i class="fa fa-archive"></i> Archived[% END %] >- </td> >- <td> >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestions_loo.suggestedby | uri %]">[% suggestions_loo.surnamesuggestedby | html %][% IF ( suggestions_loo.firstnamesuggestedby ) %], [% suggestions_loo.firstnamesuggestedby | html %][% END %] [% IF (suggestions_loo.cardnumbersuggestedby ) %]([% suggestions_loo.cardnumbersuggestedby | html %])[% END %]</a> >- </td> >- <td data-order="[% suggestions_loo.suggesteddate | html %]"> >- [% IF ( suggestions_loo.suggesteddate ) %][% suggestions_loo.suggesteddate | $KohaDates %][% END %] >- </td> >- <td> >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestions_loo.managedby | uri %]">[% suggestions_loo.surnamemanagedby | html %][% IF ( suggestions_loo.firstnamemanagedby ) %], [% suggestions_loo.firstnamemanagedby | html %][% END %]</a> >- </td> >- <td data-order="[% suggestions_loo.manageddate | html %]"> >- [% IF ( suggestions_loo.manageddate ) %][% suggestions_loo.manageddate | $KohaDates %][% END %] >- </td> >- <td> >- <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestions_loo.lastmodificationby | uri %]">[% suggestions_loo.surnamelastmodificationby | html %][% IF ( suggestions_loo.firstnamelastmodificationby ) %], [% suggestions_loo.firstnamelastmodificationby | html %][% END %]</a> >- </td> >- <td data-order="[% suggestions_loo.lastmodificationdate | html %]"> >- [% IF ( suggestions_loo.lastmodificationdate ) %][% suggestions_loo.lastmodificationdate | $KohaDates %][% END %] >- </td> >- <td> >- [% Branches.GetName( suggestions_loo.branchcode ) | html %] >- </td> >- <td> >- [% suggestions_loo.budget_name | html %] >- </td> >- <td> >- [% IF ( suggestions_loo.ASKED ) %] >- Pending >- [% ELSIF ( suggestions_loo.ACCEPTED ) %] >- Accepted >- [% ELSIF ( suggestions_loo.ORDERED ) %] >- Ordered >- [% ELSIF ( suggestions_loo.REJECTED ) %] >- Rejected >- [% ELSIF ( suggestions_loo.CHECKED ) %] >- Checked >- [% ELSIF ( suggestions_loo.AVAILABLE ) %] >- Available >- [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) %] >- [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) | html %] >- [% ELSE %] >- Status unknown >- [% END %] >- >- [% IF ( suggestions_loo.reason ) %] >- <br />([% suggestions_loo.reason | html %]) >- [% END %] >- </td> >- <td class="actions"> >- <div class="btn-group dropup"> >- <a class="btn btn-default btn-xs" role="button" href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid | html %]&op=edit"><i class="fa fa-pencil"></i> Edit</a><a class="btn btn-default btn-xs dropdown-toggle" id="more_actions_[% suggestions_loo.suggestionid | html %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a> >- <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% suggestions_loo.suggestionid | html %]"> >- <li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li> >- [% UNLESS suggestions_loo.archived %] >- <li><a class="archivesuggestion" href="suggestion.pl?op=archive&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Archive</a></li> >- [% ELSE %] >- <li><a class="unarchivesuggestion" href="suggestion.pl?op=unarchive&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Unarchive</a></li> >- [% END %] >- </ul> >- </div> >- </td> >- </tr> >- [% END %]</tbody> >- </table> >- >- <div class="row"> >- <h2 style="padding-left:1em;">Change selected suggestions</h3> >- <div class="col-sm-4"> >- <fieldset> >- <div id="select-reason"> >- <label for="STATUS">Mark selected as: </label> >- <select name="STATUS" id="STATUS"> >- <option value=""> -- Choose a status --</option> >- >- [% IF (statusselected_ASKED ) %] >- <option value="ASKED" selected="selected">Pending</option> >- [% ELSE %] >- <option value="ASKED">Pending</option> >- [% END %] >- >- [% IF (statusselected_ACCEPTED ) %] >- <option value="ACCEPTED" selected="selected">Accepted</option> >- [% ELSE %] >- <option value="ACCEPTED">Accepted</option> >- [% END %] >- >- [% IF (statusselected_CHECKED ) %] >- <option value="CHECKED" selected="selected">Checked</option> >- [% ELSE %] >- <option value="CHECKED">Checked</option> >- [% END %] >- >- [% IF ( statusselected_REJECTED ) %] >- <option value="REJECTED" selected="selected">Rejected</option> >- [% ELSE %] >- <option value="REJECTED">Rejected</option> >- [% END %] >- >- [% IF ( statusselected_ORDERED ) %] >- <option value="ORDERED" selected="selected">Ordered</option> >- [% ELSE %] >- <option value="ORDERED">Ordered</option> >- [% END %] >- >- [% FOREACH s IN SuggestionStatuses %] >- <option value="[% s.authorised_value | html %]">[% s.lib | html %]</option> >- [% END %] >- </select> >- >- <label for="reason">with this reason:</label> >- <select name="reason"> >- <option value=""> -- Choose a reason -- </option> >- [% FOREACH reasonsloo IN suggestion.reasonsloop %] >- <option value="[% reasonsloo.lib | html %]">[% reasonsloo.lib | html %]</option> >- [% END %] >- <option value="other">Others...</option> >- </select> >- >- <span class="other_reason"> >- <input type="text" size="31" name="other_reason" placeholder="please note your reason here..." /> >- <a href="#" class="cancel_note">Cancel</a> >- </span> >- </div> >- >- <input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> >- <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> >- <fieldset class="action"><button type="submit" class="btn btn-default btn-xs" value="update_status"/>Submit</button></fieldset> >- </fieldset> >- </div> >- <div class="col-sm-4"> >- <fieldset> >- <label for="itemtype">Update item types with: </label> >- [% PROCESS 'av-build-dropbox.inc' name="suggestion_itemtype", category="SUGGEST_FORMAT", size = 20 %] >- <input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> >- <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> >- <fieldset class="action"><button type="submit" class="btn btn-default btn-xs" value="update_itemtype"/>Submit</button></fieldset> >- </fieldset> >- </div> > >- <div class="col-sm-2"> >- <fieldset> >- <label for="set_manager_[% loop.count | html %]">Update manager</label><br/> >- <a id="set_manager_[% loop.count | html %]" data-tab="[% loop.count | html %]" class="set_manager" href="#"><i class="fa fa-search"></i> Select manager</a> >- <span id="managedby_name[% loop.count | html %]"></span> >- <input type="hidden" name="suggestion_managedby" id="managedby[% loop.count | html %]" value="[% logged_in_user.borrowernumber | html %]" /> >- <input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> >- <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> >- <fieldset class="action"><button type="submit" class="btn btn-default btn-xs" value="update_manager"/>Submit</button></fieldset> >+ <fieldset class="rows"> >+ <legend>Bibliographic information</legend> >+ <ol> >+ <li> >+ <label for="title" class="required">Title:</label> >+ <input type="text" id="title" name="title" size="80" maxlength="255" value="[% title | html %]" required="required" class="required" /> >+ <span class="required">Required</span> >+ </li> >+ <li> >+ <label for="author">Author:</label> >+ <input type="text" id="author" name="author" size="50" maxlength="80" value="[% author | html %]"/> >+ </li> >+ <li> >+ <label for="copyrightdate">Copyright date:</label> >+ <input type="text" id="copyrightdate" name="copyrightdate" size="4" maxlength="4" value="[% copyrightdate | html %]" /> >+ </li> >+ <li> >+ <label for="isbn">ISBN or ISSN or other standard number:</label> >+ <input type="text" id="isbn" name="isbn" size="50" maxlength="80" value="[% isbn | html %]"/> >+ </li> >+ <li> >+ <label for="publishercode">Publisher:</label> >+ <input type="text" id="publishercode" name="publishercode" size="50" maxlength="80" value="[% publishercode | html %]"/> >+ </li> >+ <li> >+ <label for="place">Publication place:</label> >+ <input type="text" id="place" name="place" size="50" maxlength="80" value="[% place | html %]"/> >+ </li> >+ <li> >+ <label for="collectiontitle">Collection title:</label> >+ <input type="text" id="collectiontitle" name="collectiontitle" size="50" maxlength="80" value="[% collectiontitle | html %]"/> >+ </li> >+ <li> >+ <label for="itemtype">Document type:</label> >+ [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20, default=itemtype %] >+ </li> >+ [% IF patron_reason_loop %] >+ <li> >+ <label for="patronreason">Reason for suggestion: </label> >+ <select name="patronreason" id="patronreason"> >+ <option value=""> -- Choose -- </option> >+ [% FOREACH patron_reason_loo IN patron_reason_loop %] >+ [% IF patron_reason_loo.authorised_value == patronreason %] >+ <option value="[% patron_reason_loo.authorised_value | html %]" selected="selected">[% patron_reason_loo.lib | html %]</option> >+ [% ELSE %] >+ <option value="[% patron_reason_loo.authorised_value | html %]">[% patron_reason_loo.lib | html %]</option> >+ [% END %] >+ [% END %] >+ </select> >+ </li> >+ [% END # /IF patron_reason_loop %] >+ <li> >+ <label for="note">Notes:</label> >+ <textarea name="note" id="note" rows="5" cols="40">[% note | html %]</textarea> >+ </li> >+ </ol> > </fieldset> >- </div> > >- <div class="col-sm-2"> >- <fieldset> >- <label for="delete_[% loop.count | html %]">Delete selected</label> >- <input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> >- <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> >- <fieldset class="action"><button type="submit" class="btn btn-default btn-xs" value="delete"/>Delete</button></fieldset> >+ <fieldset class="rows"> >+ <legend>Suggestion management</legend> >+ <ol> >+ [% IF ( suggestionid ) %] >+ <li> >+ <label for="STATUS">Status:</label> >+ <select id="STATUS" name="STATUS"> >+ <option value="">No status</option> >+ >+ [% IF (statusselected_ASKED ) %] >+ <option value="ASKED" selected="selected">Pending</option> >+ [% ELSE %] >+ <option value="ASKED">Pending</option> >+ [% END %] >+ >+ [% IF (statusselected_ACCEPTED ) %] >+ <option value="ACCEPTED" selected="selected">Accepted</option> >+ [% ELSE %] >+ <option value="ACCEPTED">Accepted</option> >+ [% END %] >+ >+ [% IF (statusselected_CHECKED ) %] >+ <option value="CHECKED" selected="selected">Checked</option> >+ [% ELSE %] >+ <option value="CHECKED">Checked</option> >+ [% END %] >+ >+ [% IF ( statusselected_REJECTED ) %] >+ <option value="REJECTED" selected="selected">Rejected</option> >+ [% ELSE %] >+ <option value="REJECTED">Rejected</option> >+ [% END %] >+ >+ [% IF ( statusselected_ORDERED ) %] >+ <option value="ORDERED" selected="selected">Ordered</option> >+ [% ELSE %] >+ <option value="ORDERED">Ordered</option> >+ [% END %] >+ >+ [% FOREACH s IN SuggestionStatuses %] >+ [% IF s.authorised_value == suggestion.STATUS %] >+ <option value="[% s.authorised_value | html %]" selected="selected">[% s.lib | html %]</option> >+ [% ELSE %] >+ <option value="[% s.authorised_value | html %]">[% s.lib | html %]</option> >+ [% END %] >+ [% END %] >+ </select> >+ </li> >+ <li> >+ <label for="reason">Reason</label> >+ <select class="select-reason" id="reason" name="reason"> >+ <option value=""> -- Choose a reason -- </option> >+ [% FOREACH reasonsloo IN suggestion.reasonsloop %] >+ [% IF (reasonsloo.lib == suggestion.reason) %] >+ <option value="[% reasonsloo.lib | html %]" selected="selected">[% reasonsloo.lib | html %]</option> >+ [% ELSE %] >+ <option value="[% reasonsloo.lib | html %]">[% reasonsloo.lib | html %]</option> >+ [% END %] >+ [% END %] >+ <option value="other">Others...</option> >+ </select> >+ >+ <span id="other_reason" name="other_reason"> >+ [% IF other_reason %] >+ <input type="text" size="31" id="select-other_reason" name="other_reason" placeholder="please note your reason here..." value="[% suggestion.reason | html %]"/> >+ [% ELSE %] >+ <input type="text" size="31" id="select-other_reason" name="other_reason" placeholder="please note your reason here..." /> >+ [% END %] >+ <a href="#back">Cancel</a> >+ </span> >+ </li> >+ [% END %] >+ <li> >+ <table> >+ <thead> >+ <tr> >+ <th> </th> >+ <th>Date</th> >+ <th>By</th> >+ <th>Action</th> >+ </tr> >+ </thead> >+ <tbody> >+ <tr> >+ <th> >+ <label for="suggesteddate">[% tp('purchase suggestion created by', 'Created by:') | html %]</label> >+ </th> >+ <td> >+ <input type="text" id="suggesteddate" name="suggesteddate" class="datepicker" size="10" maxlength="10" value="[% suggesteddate | $KohaDates %]"/>[% INCLUDE 'date-format.inc' %] >+ </td> >+ <td id="tdsuggestedby"> >+ <input type="hidden" id="suggestedby" name="suggestedby" value="[% suggestedby | html %]"/> >+ [% IF ( suggestedby_patron.borrowernumber ) %] >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestedby_patron.borrowernumber | uri %]">[% suggestedby_patron.surname | html %], [% suggestedby_patron.firstname | html %] ([% suggestedby_patron.cardnumber | html %])</a> [% Branches.GetName( suggestedby_patron.branchcode ) | html %] ([% suggestedby_patron.category.description | html %]) >+ [% END %] >+ </td> >+ <td> >+ <a href="#" id="edit_suggester" class="btn btn-default">Set to patron</a> >+ </td> >+ </tr> >+ <tr> >+ <th> >+ <label for="accepteddate">Accepted on:</label> >+ </th> >+ <td> >+ <input type="text" id="accepteddate" name="accepteddate" class="datepicker" size="10" maxlength="10" value="[% accepteddate | $KohaDates %]" />[% INCLUDE 'date-format.inc' %] >+ </td> >+ <td> >+ <input type="hidden" id="acceptedby" name="acceptedby" value="[% acceptedby | html %]"/> >+ [% IF ( acceptedby_patron.borrowernumber ) %] >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% acceptedby_patron.borrowernumber | uri %]">[% acceptedby_patron.surname | html %], [% acceptedby_patron.firstname | html %] ([% suggestedby_patron.cardnumber | html %])</a> >+ [% Branches.GetName( acceptedby_patron.branchcode ) | html %] ([% acceptedby_patron.category.description | html %]) >+ [% END %] >+ </td> >+ <td></td> >+ </tr> >+ <tr> >+ <th> >+ <label for="lastmodificationdate">Last modification on:</label> >+ </th> >+ <td> >+ [% lastmodificationdate | $KohaDates %] >+ </td> >+ <td> >+ [% IF lastmodificationby_patron %] >+ [% INCLUDE 'patron-title.inc' patron=lastmodificationby_patron hide_patron_infos_if_needed=1 %] [% Branches.GetName( lastmodificationby_patron.branchcode ) | html %] ([% lastmodificationby_patron.category.description | html %]) >+ [% END %] >+ </td> >+ <td></td> >+ </tr> >+ </tbody> >+ </table> >+ </li> >+ <li> >+ <label for="managedon">Managed on:</label> >+ <input type="text" id="managedon" name="manageddate" class="datepicker" size="10" maxlength="10" value="[% manageddate | $KohaDates %]" />[% INCLUDE 'date-format.inc' %] >+ </li> >+ <li> >+ <label for="managedby_name">by:</label> >+ <div> >+ <span id="managedby_name" name="managedby_name"> >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% logged_in_user.borrowernumber | uri %]">You</a> >+ </span> >+ [% IF managedby_patron.borrowernumber && logged_in_user.borrowernumber != managedby_patron.borrowernumber %] >+ | Previously was [% INCLUDE 'patron-title.inc' patron=managedby_patron hide_patron_infos_if_needed=1 %] [% Branches.GetName( managedby_patron.branchcode ) | html %] ([% managedby_patron.category.description | html %]) >+ [% END %] >+ <br /> >+ <a id="edit_manager" class="new_window" href="#"><i class="fa fa-search"></i> Select manager</a> >+ [% IF managedby_patron.borrowernumber && logged_in_user.borrowernumber != managedby_patron.borrowernumber %] >+ <a id="restore_previous_manager" href="#"><i class="fa fa-trash"></i> Keep existing manager</a> >+ [% END %] >+ <input type="hidden" name="managedby" id="managedby" value="[% logged_in_user.borrowernumber | html %]" /> >+ >+ <br/> >+ <label for="notify">Notify manager:</label> >+ <input type="checkbox" id="notify" name="notify" value="notify" disabled="disabled" title="A NOTIFY_MANAGER notice will be generated and send to the manager if a valid email address is defined. This can be checked if a new manager has been selected." /> >+ </div> <!-- /div --> >+ </li> >+ </ol> > </fieldset> >- </div> >- >- </div> >- >-[% ELSE %] >- <strong>No results.</strong> >-[% END %] >-</form> >-</div> >-[% END %] >-[% END %] > >-[% UNLESS op == 'save' %] >- [% UNLESS ( op == 'show' ) %] >+ <fieldset class="rows"> >+ <legend>Acquisition information</legend> >+ <ol> >+ <li> >+ <label for="branchcode">Library:</label> >+ <select name="branchcode" id="branchcode"> >+ <option value="">Any</option> >+ [% PROCESS options_for_libraries libraries => Branches.all( selected => branchfilter || branchcode ) %] >+ </select> >+ </li> >+ <li> >+ <label for="budgetid">Fund:</label> >+ <select name="budgetid" id="budgetid"> >+ <option value="">Any</option> >+ [% FOREACH budget IN sugg_budgets %] >+ [% IF ( budget.selected ) %] >+ <option value="[% budget.b_id | html %]" selected="selected">[% budget.b_txt | html %] [% IF ( !budget.b_active ) %](inactive)[% END %]</option> >+ [% ELSIF ( budget.b_active ) %] >+ <option value="[% budget.b_id | html %]">[% budget.b_txt | html %]</option> >+ [% ELSE %] >+ <option value="[% budget.b_id | html %]" class="b_inactive">[% budget.b_txt | html %] (inactive)</option> >+ [% END %] >+ [% END %] >+ </select> >+ <label for="showallfunds" style="float:none;width:auto;"> Show inactive:</label> >+ <input type="checkbox" id="showallfunds" /> >+ </li> >+ <li> >+ <label for="quantity">Copies:</label> >+ <input type="text" size="10" id="quantity" name="quantity" value="[% quantity | html %]" /> >+ </li> >+ <li> >+ <label for="currency">Currency:</label> >+ [% FOREACH c IN currencies %] >+ <input type="hidden" value="[% c.rate | html %]" id="currency_rate_[% c.currency | html %]" name="currency_rate_[% c.currency | html %]" /> >+ <input type="hidden" id="[% c.currency | html %]" name="[% c.currency | html %]" value="[% c.rate | html %]" /> >+ [% END %] >+ <select name="currency" id="currency"> >+ [% FOREACH c IN currencies %] >+ [% IF suggestionid and suggestion.currency == c.currency or not suggestionid and c.active %] >+ <option value="[% c.currency | html %]" selected="selected">[% c.currency | html %]</option> >+ [% ELSIF not c.archived %] >+ <option value="[% c.currency | html %]">[% c.currency | html %]</option> >+ [% END %] >+ [% END %] >+ </select> >+ </li> >+ <li> >+ <label for="price">Price:</label> >+ <input type="text" size="20" name="price" id="price" value="[% price | html %]" /> >+ </li> >+ <li> >+ <label for="total">Total: </label> >+ <input type="text" readonly="readonly" id="total" name="total" size="10" value="[% total | html %]"/> >+ </li> >+ </ol> >+ </fieldset> <!-- /.rows --> >+ >+ <input type="hidden" id="returnsuggested" name="returnsuggested" value="[% IF ( returnsuggestedby ) %][% returnsuggestedby | html %][% ELSE %]noone[% END %]"/> >+ >+ <fieldset class="action"> >+ <input type="hidden" name="op" value="[% op | html %]" /> >+ [% IF ( suggestionid ) %] >+ [% IF ( need_confirm ) %] >+ <input type="hidden" name="save_confirmed" value="1" /> >+ <input onclick="this.form.op.value = 'save'; this.form.submit();" type="submit" value="Confirm your suggestion" /> >+ [% ELSE %] >+ <input type="submit" value="Save" /> >+ [% END %] >+ <a class="cancel" href="[% IF ( returnsuggestedby ) %]/cgi-bin/koha/members/moremember.pl?borrowernumber=[% returnsuggestedby | uri %]#suggestions[% ELSE %]suggestion.pl[% END %]">Cancel</a> >+ [% ELSE %] >+ [% IF ( need_confirm ) %] >+ <input type="hidden" name="save_confirmed" value="1" /> >+ <input onclick="this.form.op.value = 'save'; this.form.submit();" type="submit" value="Confirm your suggestion" /> >+ [% ELSE %] >+ <input type="submit" value="Submit your suggestion" /> >+ [% END %] >+ <a class="cancel" href="suggestion.pl">Cancel</a> >+ [% END %] >+ </fieldset> <!-- /.action --> >+ </form> <!-- /#add_edit --> >+ [% END # /IF op == 'save' %] > >- </main> >- </div> <!-- /.col-sm-10.col-sm-push-2 --> >+ [% IF op == 'else' %] >+ <div id="toolbar" class="btn-toolbar"> >+ <a class="btn btn-default" id="newsuggestion" href="suggestion.pl?op=add"><i class="fa fa-plus"></i> New purchase suggestion</a> >+ </div> > >- <div class="col-sm-2 col-sm-pull-10"> >- <aside> >+ <h1>Suggestions management</h1> > >-<form name="suggestionfilter" action="suggestion.pl" method="get"> >- <input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> >-<fieldset class="brief"><ol style="display:block;"><li><label for="displayby">Organize by: </label> >- <select name="displayby" id="displayby" style="width:auto;"> >- [% IF ( displayby == "STATUS" ) %] >- <option value="STATUS" selected="selected">Status</option> >- [% ELSE %] >- <option value="STATUS">Status</option> >- [% END %] >- [% IF ( displayby == "branchcode" ) %] >- <option value="branchcode" selected="selected">Library</option> >- [% ELSE %] >- <option value="branchcode">Library</option> >- [% END %] >- [% IF ( displayby == "itemtype" ) %] >- <option value="itemtype" selected="selected">Item type</option> >- [% ELSE %] >- <option value="itemtype">Item type</option> >- [% END %] >- [% IF ( displayby == "managedby" ) %] >- <option value="managedby" selected="selected">Managed by</option> >- [% ELSE %] >- <option value="managedby">Managed by</option> >- [% END %] >- [% IF ( displayby == "acceptedby" ) %] >- <option value="acceptedby" selected="selected">Accepted by</option> >- [% ELSE %] >- <option value="acceptedby">Accepted by</option> >- [% END %] >+ [% IF ( displayby != "branchcode" ) %] >+ <label for="branchcode">Viewing suggestions for library:</label> >+ <select name="branchcode" id="branchcode"> >+ <option value="__ANY__">Any</option> >+ [% PROCESS options_for_libraries libraries => Branches.all( selected => branchfilter || branchcode ) %] > </select> >- <input type="submit" value="Go" /> >- </li> >- </ol> >- </fieldset> >- >-<h4>Filter by: <a style="font-size:80%;font-weight:normal;" href="/cgi-bin/koha/suggestion/suggestion.pl">[clear]</a></h4> >- <div style="display:block;" id="limits"> >+ [% END %] > >- <fieldset class="brief"><h4 class="local_collapse"><a href="#">Bibliographic information</a></h4> >- <ol> <li><label for="title"> Title:</label><input type="text" id="title" name="title" value="[% title | html %]" /></li> >- <li><label for="author"> Author:</label><input type="text" id="author" name="author" value="[% author | html %]" /></li> >- <li><label for="isbn"> ISBN:</label><input type="text" id="isbn" name="isbn" value="[% isbn | html %]" /></li> >- <li><label for="publishercode"> Publisher:</label><input type="text" id="publishercode" name="publishercode" value="[% publishercode | html %]" /></li> >- <li><label for="copyrightdate_filter"> Copyright date:</label><input type="text" id="copyrightdate_filter" name="copyrightdate" value="[% copyrightdate | html %]" /></li> >- <li><label for="collectiontitle"> Collection title:</label><input type="text" id="collectiontitle" name="collectiontitle" value="[% collectiontitle | html %]" /></li><li><input type="submit" value="Go" /></li></ol> >- </fieldset> >- <fieldset class="brief"><h4 class="local_collapse"><a href="#">Suggestion information</a></h4> >- <ol> >- <li> >- <label for="archived" style="display: inline;">Include archived:</label> >- [% IF filter_archived %] >- <input type="checkbox" id="archived" name="filter_archived" checked="checked" title="Include archived suggestions in the search" /> >+ [% FOR m IN messages %] >+ <div class="dialog [% m.type | html %]"> >+ [% SWITCH m.code %] >+ [% CASE 'already_exists' %] >+ The suggestion has not been added. A suggestion with this title already exists (<a href='/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% m.id | html %]&op=show'>suggestion #[% m.id | html %]</a>) >+ [% CASE 'biblio_exists' %] >+ A similar document already exists: <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% m.id | uri %]">[% m.title | html %]</a>. Click on "Confirm your suggestion" to ignore this message. >+ [% CASE %] >+ [% m.code | html %] >+ [% END %] >+ </div> <!-- /.dialog --> >+ [% END # /FOR m %] >+ >+ [% UNLESS ( notabs ) %] >+ <div id="suggestiontabs" class="toptabs"> >+ <ul class="ui-tabs-nav"> >+ [% FOREACH suggestion IN suggestions %] >+ <li> >+ <a href="#[% suggestion.suggestiontype | uri %]"> >+ [% IF ( suggestion.suggestiontypelabel ) %] >+ [% IF (suggestion.suggestiontypelabel == "Pending") %]Pending >+ [% ELSIF (suggestion.suggestiontypelabel == "Accepted") %]Accepted >+ [% ELSIF (suggestion.suggestiontypelabel == "Checked") %]Checked >+ [% ELSIF (suggestion.suggestiontypelabel == "Rejected") %]Rejected >+ [% ELSIF (suggestion.suggestiontypelabel == "Available") %]Available >+ [% ELSIF (suggestion.suggestiontypelabel == "Ordered") %]Ordered >+ [% ELSIF (suggestion.suggestiontypelabel == "Unknown") %]Status unknown >+ [% ELSIF (suggestion.suggestiontypelabel == "__ANY__") %]Any >+ [% ELSE %][% suggestion.suggestiontypelabel | html %][% END %] > [% ELSE %] >- <input type="checkbox" id="archived" name="filter_archived" title="Include archived suggestions in the search" /> >+ [% IF ( suggestion.suggestiontype ) %] >+ [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestion.suggestiontype ) | html %] >+ [% ELSE %] >+ No name >+ [% END %] > [% END %] >- </li> >- <li> >- <label for="STATUS"> Status:</label> >- >- <select name="STATUS" id="STATUS"> >- <option value="">Any</option> >- >- [% IF (statusselected_ASKED ) %] >- <option value="ASKED" selected="selected">Pending</option> >- [% ELSE %] >- <option value="ASKED">Pending</option> >- [% END %] >- >- [% IF (statusselected_ACCEPTED ) %] >- <option value="ACCEPTED" selected="selected">Accepted</option> >- [% ELSE %] >- <option value="ACCEPTED">Accepted</option> >- [% END %] >- >- [% IF (statusselected_CHECKED ) %] >- <option value="CHECKED" selected="selected">Checked</option> >- [% ELSE %] >- <option value="CHECKED">Checked</option> >- [% END %] >- >- [% IF ( statusselected_REJECTED ) %] >- <option value="REJECTED" selected="selected">Rejected</option> >- [% ELSE %] >- <option value="REJECTED">Rejected</option> >- [% END %] >- >- [% IF ( statusselected_ORDERED ) %] >- <option value="ORDERED" selected="selected">Ordered</option> >- [% ELSE %] >- <option value="ORDERED">Ordered</option> >- [% END %] >- >- [% FOREACH s IN SuggestionStatuses %] >- [% IF s.authorised_value == selected_status %] >- <option value="[% s.authorised_value | html %]" selected="selected">[% s.lib | html %]</option> >- [% ELSE %] >- <option value="[% s.authorised_value | html %]">[% s.lib | html %]</option> >- [% END %] >- [% END %] >- </select> >- </li> >- >- <li><label for="suggestedby"> Suggested by:</label><select id="suggestedby" name="suggestedby"><option value="">Any</option> >-[% FOREACH suggestedby_loo IN suggestedby_loop %][% IF ( suggestedby_loo.selected ) %]<option value="[% suggestedby_loo.code | html %]" selected="selected">[% suggestedby_loo.desc | html %]</option>[% ELSE %]<option value="[% suggestedby_loo.code | html %]">[% suggestedby_loo.desc | html %]</option>[% END %][% END %] >- </select></li> >- <li> >- <label for="suggesteddate_from">Suggested date from:</label> >- <input type="text" id="suggesteddate_from" size="10" name="suggesteddate_from" value="[% suggesteddate_from | html %]" /> >- </li> >- <li> >- <label for="suggesteddate_to">To:</label> >- <input type="text" id="suggesteddate_to" size="10" name="suggesteddate_to" value="[% suggesteddate_to | html %]" /> >- </li> >- <li><label for="managedby"> Managed by:</label><select id="managedby" name="managedby"><option value="">Any</option> >-[% FOREACH managedby_loo IN managedby_loop %][% IF ( managedby_loo.selected ) %]<option value="[% managedby_loo.code | html %]" selected="selected">[% managedby_loo.desc | html %]</option>[% ELSE %]<option value="[% managedby_loo.code | html %]">[% managedby_loo.desc | html %]</option>[% END %][% END %] >- </select></li> >- <li> >- <label for="manageddate_from">Management date from:</label> >- <input type="text" id="manageddate_from" size="10" name="manageddate_from" value="[% manageddate_from | html %]" /> >- </li> >- <li> >- <label for="manageddate_to">To:</label> >- <input type="text" id="manageddate_to" size="10" name="manageddate_to" value="[% manageddate_to | html %]" /> >- </li> >- <li><label for="acceptedby"> Accepted by:</label><select id="acceptedby" name="acceptedby"><option value="">Any</option> >-[% FOREACH acceptedby_loo IN acceptedby_loop %][% IF ( acceptedby_loo.selected ) %] <option value="[% acceptedby_loo.code | html %]" selected="selected">[% acceptedby_loo.desc | html %]</option>[% ELSE %]<option value="[% acceptedby_loo.code | html %]">[% acceptedby_loo.desc | html %]</option>[% END %][% END %] >- </select></li> >- <li> >- <label for="accepteddate_from">Accepted date from:</label> >- <input type="text" id="accepteddate_from" size="10" name="accepteddate_from" value="[% accepteddate_from | html %]" /> >- </li> >- <li> >- <label for="accepteddate_to">To:</label> >- <input type="text" id="accepteddate_to" size="10" name="accepteddate_to" value="[% accepteddate_to | html %]" /> >- </li> >- <li> >- <input type="submit" value="Go" /> >- </li> >- </ol> >- </fieldset> >- >- <fieldset class="brief"><h4 class="local_collapse"><a href="#">Acquisition information</a></h4> >- <ol><li><label for="budgetid"> Book fund:</label> >- <select name="budgetid" id="budgetid"> >- <option value="__ANY__">Any</option> >- [% IF budgetid == '__NONE__' %] >- <option value="__NONE__" selected="selected">None</option> >- [% ELSE %] >- <option value="__NONE__">None</option> >- [% END %] >- [% FOREACH budgetsloo IN budgetsloop %] >- [% IF ( budgetsloo.selected ) %]<option value="[% budgetsloo.budget_id | html %]" selected="selected">[% budgetsloo.budget_name | html %]</option>[% ELSE %]<option value="[% budgetsloo.budget_id | html %]">[% budgetsloo.budget_name | html %]</option>[% END %] >- [% END %] >- </select></li> >- <li> >- <input type="submit" value="Go" /> >- </li> >- </ol> >- </fieldset> >- </form> >- [% INCLUDE 'acquisitions-menu.inc' %] >+ ([% suggestion.suggestions_loop.size | html %])</a></li> >+ >+ [% END # /FOREACH suggestion %] >+ </ul> <!-- /.ui-tabs-nav --> >+ [% END # /UNLESS notabs %] >+ >+ [% FOREACH suggestion IN suggestions %] >+ <div id="[% suggestion.suggestiontype | html %]"> >+ <form class="update_suggestions" name="f" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype| uri %]"> >+ >+ [% IF ( suggestion.suggestions_loop ) %] >+ <p> >+ <a class="checkall" href="#">Check all</a> | <a class="uncheckall" href="#">Uncheck all</a> >+ </p> >+ >+ <table id="table_[% loop.count | html %]" class="sorted"> >+ <thead> >+ <tr> >+ <th class="NoSort noExport"> </th> >+ <th class="anti-the">Suggestion</th> >+ <th>Suggested by</th> >+ <th>Suggested on</th> >+ <th>Managed by</th> >+ <th>Managed on</th> >+ <th>Last modification by</th> >+ <th>Last modification on</th> >+ <th>Library</th> >+ <th>Fund</th> >+ <th>Status</th> >+ <th class="NoSort noExport"> </th> >+ </tr> >+ </thead> >+ <tbody> >+ [% FOREACH suggestions_loo IN suggestion.suggestions_loop %] >+ <tr> >+ <td> >+ <input type="checkbox" name="suggestionid" value="[% suggestions_loo.suggestionid | html %]" /> >+ </td> >+ <td> >+ <a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid | uri %]&op=show" title="suggestion" > >+ [% suggestions_loo.title | html %][% IF ( suggestions_loo.author ) %], by [% suggestions_loo.author | html %][% END %] >+ </a> >+ <br /> >+ [% IF ( suggestions_loo.copyrightdate ) %] >+ © <span class="suggestion_copyrightdate">[% suggestions_loo.copyrightdate | html %]</span> >+ [% END %] >+ [% IF ( suggestions_loo.volumedesc ) %] >+ ; <span class="suggestion_volume">Volume:<em>[% suggestions_loo.volumedesc | html %]</em></span> >+ [% END %] >+ [% IF ( suggestions_loo.isbn ) %] >+ ; <span class="suggestion_isbn">ISBN: <em>[% suggestions_loo.isbn | html %]</em></span> >+ [% END %] >+ [% IF ( suggestions_loo.publishercode ) %] >+ ; <span class="suggestion_publishercode">Published by [% suggestions_loo.publishercode | html %]</span> >+ [% END %] >+ [% IF ( suggestions_loo.publicationyear ) %] >+ in <span class="suggestion_publicationyear"><em>[% suggestions_loo.publicationyear | html %]</em></span> >+ [% END %] >+ [% IF ( suggestions_loo.place ) %] >+ in <span class="suggestion_place"><em>[% suggestions_loo.place | html %]</em></span> >+ [% END %] >+ [% IF ( suggestions_loo.collectiontitle ) %] >+ ; <span class="suggestion_collectiontitle">[% suggestions_loo.collectiontitle | html %]</span> >+ [% END %] >+ [% IF ( suggestions_loo.itemtype ) %] >+ ; <span class="suggestion_itype">[% AuthorisedValues.GetByCode( 'SUGGEST_FORMAT', suggestions_loo.itemtype, 0 ) | html %]</span> >+ [% END %] >+ <br /> >+ [% IF ( suggestions_loo.note ) %] >+ <div class="suggestion_note"><i class="fa fa-comment"></i> [% suggestions_loo.note | html %]</div> >+ [% END %] >+ [% IF suggestions_loo.archived %] >+ <br /><i class="fa fa-archive"></i> Archived >+ [% END %] >+ </td> >+ <td> >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestions_loo.suggestedby | uri %]">[% suggestions_loo.surnamesuggestedby | html %][% IF ( suggestions_loo.firstnamesuggestedby ) %], [% suggestions_loo.firstnamesuggestedby | html %][% END %] [% IF (suggestions_loo.cardnumbersuggestedby ) %]([% suggestions_loo.cardnumbersuggestedby | html %])[% END %]</a> >+ </td> >+ <td data-order="[% suggestions_loo.suggesteddate | html %]"> >+ [% IF ( suggestions_loo.suggesteddate ) %][% suggestions_loo.suggesteddate | $KohaDates %][% END %] >+ </td> >+ <td> >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestions_loo.managedby | uri %]">[% suggestions_loo.surnamemanagedby | html %][% IF ( suggestions_loo.firstnamemanagedby ) %], [% suggestions_loo.firstnamemanagedby | html %][% END %]</a> >+ </td> >+ <td data-order="[% suggestions_loo.manageddate | html %]"> >+ [% IF ( suggestions_loo.manageddate ) %][% suggestions_loo.manageddate | $KohaDates %][% END %] >+ </td> >+ <td> >+ <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestions_loo.lastmodificationby | uri %]">[% suggestions_loo.surnamelastmodificationby | html %][% IF ( suggestions_loo.firstnamelastmodificationby ) %], [% suggestions_loo.firstnamelastmodificationby | html %][% END %]</a> >+ </td> >+ <td data-order="[% suggestions_loo.lastmodificationdate | html %]"> >+ [% IF ( suggestions_loo.lastmodificationdate ) %][% suggestions_loo.lastmodificationdate | $KohaDates %][% END %] >+ </td> >+ <td> >+ [% Branches.GetName( suggestions_loo.branchcode ) | html %] >+ </td> >+ <td> >+ [% suggestions_loo.budget_name | html %] >+ </td> >+ <td> >+ [% IF ( suggestions_loo.ASKED ) %] >+ Pending >+ [% ELSIF ( suggestions_loo.ACCEPTED ) %] >+ Accepted >+ [% ELSIF ( suggestions_loo.ORDERED ) %] >+ Ordered >+ [% ELSIF ( suggestions_loo.REJECTED ) %] >+ Rejected >+ [% ELSIF ( suggestions_loo.CHECKED ) %] >+ Checked >+ [% ELSIF ( suggestions_loo.AVAILABLE ) %] >+ Available >+ [% ELSIF AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) %] >+ [% AuthorisedValues.GetByCode( 'SUGGEST_STATUS', suggestions_loo.STATUS ) | html %] >+ [% ELSE %] >+ Status unknown >+ [% END %] >+ >+ [% IF ( suggestions_loo.reason ) %] >+ <br />([% suggestions_loo.reason | html %]) >+ [% END %] >+ </td> >+ <td class="actions"> >+ <div class="btn-group dropup"> >+ <a class="btn btn-default btn-xs" role="button" href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid | html %]&op=edit"><i class="fa fa-pencil"></i> Edit</a><a class="btn btn-default btn-xs dropdown-toggle" id="more_actions_[% suggestions_loo.suggestionid | html %]" role="button" data-toggle="dropdown" href="#"><b class="caret"></b></a> >+ <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="more_actions_[% suggestions_loo.suggestionid | html %]"> >+ <li><a class="deletesuggestion" href="suggestion.pl?op=delete&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-trash"></i> Delete</a></li> >+ [% UNLESS suggestions_loo.archived %] >+ <li><a class="archivesuggestion" href="suggestion.pl?op=archive&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Archive</a></li> >+ [% ELSE %] >+ <li><a class="unarchivesuggestion" href="suggestion.pl?op=unarchive&suggestionid=[% suggestions_loo.suggestionid | html %]"><i class="fa fa-archive"></i> Unarchive</a></li> >+ [% END %] >+ </ul> >+ </div> >+ </td> >+ </tr> >+ [% END # /FOREACH suggestions_loo %] >+ </tbody> >+ </table> <!-- /#table_[% loop.count | html %] --> >+ >+ <div class="row"> >+ <h2 style="padding-left:1em;">Change selected suggestions</h2> >+ <div class="col-sm-4"> >+ <fieldset> >+ <div id="select-reason[% loop.index %]"> >+ <label for="STATUSreason[% loop.index %]">Mark selected as: </label> >+ <select name="STATUS" id="STATUSreason[% loop.index %]"> >+ <option value=""> -- Choose a status --</option> >+ >+ [% IF (statusselected_ASKED ) %] >+ <option value="ASKED" selected="selected">Pending</option> >+ [% ELSE %] >+ <option value="ASKED">Pending</option> >+ [% END %] >+ >+ [% IF (statusselected_ACCEPTED ) %] >+ <option value="ACCEPTED" selected="selected">Accepted</option> >+ [% ELSE %] >+ <option value="ACCEPTED">Accepted</option> >+ [% END %] >+ >+ [% IF (statusselected_CHECKED ) %] >+ <option value="CHECKED" selected="selected">Checked</option> >+ [% ELSE %] >+ <option value="CHECKED">Checked</option> >+ [% END %] >+ >+ [% IF ( statusselected_REJECTED ) %] >+ <option value="REJECTED" selected="selected">Rejected</option> >+ [% ELSE %] >+ <option value="REJECTED">Rejected</option> >+ [% END %] >+ >+ [% IF ( statusselected_ORDERED ) %] >+ <option value="ORDERED" selected="selected">Ordered</option> >+ [% ELSE %] >+ <option value="ORDERED">Ordered</option> >+ [% END %] >+ >+ [% FOREACH s IN SuggestionStatuses %] >+ <option value="[% s.authorised_value | html %]">[% s.lib | html %]</option> >+ [% END %] >+ </select> >+ >+ <label for="choosereason[% loop.index %]">with this reason:</label> >+ <select name="reason" id="choosereason[% loop.index %]"> >+ <option value=""> -- Choose a reason -- </option> >+ [% FOREACH reasonsloo IN suggestion.reasonsloop %] >+ <option value="[% reasonsloo.lib | html %]">[% reasonsloo.lib | html %]</option> >+ [% END %] >+ <option value="other">Others...</option> >+ </select> >+ >+ <span class="other_reason"> >+ <input type="text" size="31" name="other_reason" placeholder="please note your reason here..." /> >+ <a href="#" class="cancel_note">Cancel</a> >+ </span> >+ </div> >+ >+ <input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> >+ <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> >+ <fieldset class="action"> >+ <button type="submit" class="btn btn-default btn-xs" value="update_status">Submit</button> >+ </fieldset> >+ </fieldset> >+ </div> <!-- /.col-sm-4 --> >+ >+ <div class="col-sm-4"> >+ <fieldset> >+ <label> >+ Update item types with: >+ [% PROCESS 'av-build-dropbox.inc' name="suggestion_itemtype", category="SUGGEST_FORMAT", size = 20 %] >+ </label> >+ <input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> >+ <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> >+ <fieldset class="action"> >+ <button type="submit" class="btn btn-default btn-xs" value="update_itemtype">Submit</button> >+ </fieldset> >+ </fieldset> >+ </div> <!-- /.col-sm-4 --> >+ >+ <div class="col-sm-2"> >+ <fieldset> >+ <span class="label">Update manager</span><br/> >+ <a id="set_manager_[% loop.count | html %]" data-tab="[% loop.count | html %]" class="set_manager" href="#"><i class="fa fa-search"></i> Select manager</a> >+ <span id="managedby_name[% loop.count | html %]"></span> >+ <input type="hidden" name="suggestion_managedby" id="managedby[% loop.count | html %]" value="[% logged_in_user.borrowernumber | html %]" /> >+ <input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> >+ <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> >+ <fieldset class="action"> >+ <button type="submit" class="btn btn-default btn-xs" value="update_manager">Submit</button> >+ </fieldset> >+ </fieldset> >+ </div> <!-- /.col-sm-2 --> >+ >+ <div class="col-sm-2"> >+ <fieldset> >+ <span class="label">Delete selected</span> >+ <input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> >+ <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> >+ <fieldset class="action"> >+ <button type="submit" class="btn btn-default btn-xs" value="delete">Delete</button> >+ </fieldset> >+ </fieldset> >+ </div> <!-- /.col-sm-2 --> >+ </div> <!-- /.row --> > >- </aside> >- </div> <!-- /.col-sm-2.col-sm-pull-10 --> >- </div> <!-- /.row --> >- >- [% END %] >- [% END %] >-</div> >-[% END %] >+ [% ELSE %] >+ <strong>No results.</strong> >+ [% END # /IF ( suggestion.suggestions_loop ) %] >+ </form> <!-- /.update_suggestions --> >+ </div> <!-- /#[% suggestion.suggestiontype | html %] --> >+ [% END # /FOREACH suggestion %] >+ [% UNLESS ( notabs ) %] >+ </div> <!-- /.notabs --> >+ [% END # /UNLESS notabs %] >+ [% END # /IF op == 'else' %] >+ >+ [% UNLESS op == 'save' %] >+ [% UNLESS ( op == 'show' ) %] >+ </div> <!-- /.col-sm-10.col-sm-push-2 --> >+ >+ <div class="col-sm-2 col-sm-pull-10"> >+ <aside> >+ <form name="suggestionfilter" action="suggestion.pl" method="get"> >+ <input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> >+ <fieldset class="brief"> >+ <ol style="display:block;"> >+ <li> >+ <label for="displayby">Organize by: </label> >+ <select name="displayby" id="displayby" style="width:auto;"> >+ [% IF ( displayby == "STATUS" ) %] >+ <option value="STATUS" selected="selected">Status</option> >+ [% ELSE %] >+ <option value="STATUS">Status</option> >+ [% END %] >+ [% IF ( displayby == "branchcode" ) %] >+ <option value="branchcode" selected="selected">Library</option> >+ [% ELSE %] >+ <option value="branchcode">Library</option> >+ [% END %] >+ [% IF ( displayby == "itemtype" ) %] >+ <option value="itemtype" selected="selected">Item type</option> >+ [% ELSE %] >+ <option value="itemtype">Item type</option> >+ [% END %] >+ [% IF ( displayby == "managedby" ) %] >+ <option value="managedby" selected="selected">Managed by</option> >+ [% ELSE %] >+ <option value="managedby">Managed by</option> >+ [% END %] >+ [% IF ( displayby == "acceptedby" ) %] >+ <option value="acceptedby" selected="selected">Accepted by</option> >+ [% ELSE %] >+ <option value="acceptedby">Accepted by</option> >+ [% END %] >+ </select> >+ <input type="submit" value="Go" /> >+ </li> >+ </ol> >+ </fieldset> <!-- /.brief --> >+ >+ <h4>Filter by: <a style="font-size:80%;font-weight:normal;" href="/cgi-bin/koha/suggestion/suggestion.pl">[clear]</a></h4> >+ >+ <div id="limits"> >+ <fieldset class="brief"> >+ <h4 class="local_collapse"><a href="#">Bibliographic information</a></h4> >+ <ol> >+ <li> >+ <label for="title"> Title:</label> >+ <input type="text" id="title" name="title" value="[% title | html %]" /> >+ </li> >+ <li> >+ <label for="author"> Author:</label> >+ <input type="text" id="author" name="author" value="[% author | html %]" /> >+ </li> >+ <li> >+ <label for="isbn"> ISBN:</label> >+ <input type="text" id="isbn" name="isbn" value="[% isbn | html %]" /> >+ </li> >+ <li> >+ <label for="publishercode"> Publisher:</label> >+ <input type="text" id="publishercode" name="publishercode" value="[% publishercode | html %]" /> >+ </li> >+ <li> >+ <label for="copyrightdate_filter"> Copyright date:</label> >+ <input type="text" id="copyrightdate_filter" name="copyrightdate" value="[% copyrightdate | html %]" /> >+ </li> >+ <li> >+ <label for="collectiontitle"> Collection title:</label> >+ <input type="text" id="collectiontitle" name="collectiontitle" value="[% collectiontitle | html %]" /></li><li><input type="submit" value="Go" /> >+ </li> >+ </ol> >+ </fieldset> <!-- /.brief --> >+ >+ <fieldset class="brief"> >+ <h4 class="local_collapse"><a href="#">Suggestion information</a></h4> >+ <ol> >+ <li> >+ <label for="archived" style="display: inline;">Include archived:</label> >+ [% IF filter_archived %] >+ <input type="checkbox" id="archived" name="filter_archived" checked="checked" title="Include archived suggestions in the search" /> >+ [% ELSE %] >+ <input type="checkbox" id="archived" name="filter_archived" title="Include archived suggestions in the search" /> >+ [% END %] >+ </li> >+ <li> >+ <label for="STATUS[% loop.index %]"> Status:</label> >+ <select name="STATUS" id="STATUS[% loop.index %]"> >+ <option value="">Any</option> >+ [% IF (statusselected_ASKED ) %] >+ <option value="ASKED" selected="selected">Pending</option> >+ [% ELSE %] >+ <option value="ASKED">Pending</option> >+ [% END %] >+ >+ [% IF (statusselected_ACCEPTED ) %] >+ <option value="ACCEPTED" selected="selected">Accepted</option> >+ [% ELSE %] >+ <option value="ACCEPTED">Accepted</option> >+ [% END %] >+ >+ [% IF (statusselected_CHECKED ) %] >+ <option value="CHECKED" selected="selected">Checked</option> >+ [% ELSE %] >+ <option value="CHECKED">Checked</option> >+ [% END %] >+ >+ [% IF ( statusselected_REJECTED ) %] >+ <option value="REJECTED" selected="selected">Rejected</option> >+ [% ELSE %] >+ <option value="REJECTED">Rejected</option> >+ [% END %] >+ >+ [% IF ( statusselected_ORDERED ) %] >+ <option value="ORDERED" selected="selected">Ordered</option> >+ [% ELSE %] >+ <option value="ORDERED">Ordered</option> >+ [% END %] >+ >+ [% FOREACH s IN SuggestionStatuses %] >+ [% IF s.authorised_value == selected_status %] >+ <option value="[% s.authorised_value | html %]" selected="selected">[% s.lib | html %]</option> >+ [% ELSE %] >+ <option value="[% s.authorised_value | html %]">[% s.lib | html %]</option> >+ [% END %] >+ [% END %] >+ </select> >+ </li> >+ >+ <li> >+ <label for="suggestedby"> Suggested by:</label> >+ <select id="suggestedby" name="suggestedby"> >+ <option value="">Any</option> >+ [% FOREACH suggestedby_loo IN suggestedby_loop %] >+ [% IF ( suggestedby_loo.selected ) %] >+ <option value="[% suggestedby_loo.code | html %]" selected="selected">[% suggestedby_loo.desc | html %]</option> >+ [% ELSE %] >+ <option value="[% suggestedby_loo.code | html %]">[% suggestedby_loo.desc | html %]</option> >+ [% END %] >+ [% END %] >+ </select> >+ </li> >+ <li> >+ <label for="suggesteddate_from">Suggested date from:</label> >+ <input type="text" id="suggesteddate_from" size="10" name="suggesteddate_from" value="[% suggesteddate_from | html %]" /> >+ </li> >+ <li> >+ <label for="suggesteddate_to">To:</label> >+ <input type="text" id="suggesteddate_to" size="10" name="suggesteddate_to" value="[% suggesteddate_to | html %]" /> >+ </li> >+ <li> >+ <label for="managedby"> Managed by:</label> >+ <select id="managedby" name="managedby"> >+ <option value="">Any</option> >+ [% FOREACH managedby_loo IN managedby_loop %] >+ [% IF ( managedby_loo.selected ) %] >+ <option value="[% managedby_loo.code | html %]" selected="selected">[% managedby_loo.desc | html %]</option> >+ [% ELSE %] >+ <option value="[% managedby_loo.code | html %]">[% managedby_loo.desc | html %]</option> >+ [% END %] >+ [% END %] >+ </select> >+ </li> >+ <li> >+ <label for="manageddate_from">Management date from:</label> >+ <input type="text" id="manageddate_from" size="10" name="manageddate_from" value="[% manageddate_from | html %]" /> >+ </li> >+ <li> >+ <label for="manageddate_to">To:</label> >+ <input type="text" id="manageddate_to" size="10" name="manageddate_to" value="[% manageddate_to | html %]" /> >+ </li> >+ <li> >+ <label for="acceptedby"> Accepted by:</label> >+ <select id="acceptedby" name="acceptedby"> >+ <option value="">Any</option> >+ [% FOREACH acceptedby_loo IN acceptedby_loop %] >+ [% IF ( acceptedby_loo.selected ) %] >+ <option value="[% acceptedby_loo.code | html %]" selected="selected">[% acceptedby_loo.desc | html %]</option> >+ [% ELSE %] >+ <option value="[% acceptedby_loo.code | html %]">[% acceptedby_loo.desc | html %]</option> >+ [% END %] >+ [% END %] >+ </select> >+ </li> >+ <li> >+ <label for="accepteddate_from">Accepted date from:</label> >+ <input type="text" id="accepteddate_from" size="10" name="accepteddate_from" value="[% accepteddate_from | html %]" /> >+ </li> >+ <li> >+ <label for="accepteddate_to">To:</label> >+ <input type="text" id="accepteddate_to" size="10" name="accepteddate_to" value="[% accepteddate_to | html %]" /> >+ </li> >+ <li> >+ <input type="submit" value="Go" /> >+ </li> >+ </ol> >+ </fieldset> >+ >+ <fieldset class="brief"> >+ <h4 class="local_collapse"> >+ <a href="#">Acquisition information</a> >+ </h4> >+ <ol> >+ <li> >+ <label for="budgetid"> Book fund:</label> >+ <select name="budgetid" id="budgetid"> >+ <option value="__ANY__">Any</option> >+ [% IF budgetid == '__NONE__' %] >+ <option value="__NONE__" selected="selected">None</option> >+ [% ELSE %] >+ <option value="__NONE__">None</option> >+ [% END %] >+ [% FOREACH budgetsloo IN budgetsloop %] >+ [% IF ( budgetsloo.selected ) %] >+ <option value="[% budgetsloo.budget_id | html %]" selected="selected">[% budgetsloo.budget_name | html %]</option> >+ [% ELSE %] >+ <option value="[% budgetsloo.budget_id | html %]">[% budgetsloo.budget_name | html %]</option> >+ [% END %] >+ [% END %] >+ </select> >+ </li> >+ <li> >+ <input type="submit" value="Go" /> >+ </li> >+ </ol> >+ </fieldset> >+ </div> <!-- /#limits --> >+ </form> <!-- /suggestionsfilter --> >+ >+ [% INCLUDE 'acquisitions-menu.inc' %] >+ >+ </aside> >+ </div> <!-- /.col-sm-2.col-sm-pull-10 --> >+ [% END # /UNLESS ( op == 'show' ) %] >+ [% END # /UNLESS op == 'save' %] >+ </div> <!-- /.row --> >+ >+ [% END # /IF op == "show" %] > > [% MACRO jsinclude BLOCK %] > [% INCLUDE 'calendar.inc' %] >-- >2.11.0
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 27446
:
115774
|
115792
|
115840
|
115841