[Koha-cvs] CVS: koha/koha-tmpl/opac-tmpl/npl/en opac-suggestions.tmpl,1.1,1.1.2.1

Owen Leonard oleonard at users.sourceforge.net
Thu Jul 7 22:40:39 CEST 2005


Update of /cvsroot/koha/koha/koha-tmpl/opac-tmpl/npl/en
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9424/koha-tmpl/opac-tmpl/npl/en

Modified Files:
      Tag: rel_2_2
	opac-suggestions.tmpl 
Log Message:
Fixing bug that would prevent deletion of suggetions; corrections to XHTML, other minor improvements

Index: opac-suggestions.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/opac-tmpl/npl/en/opac-suggestions.tmpl,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -r1.1 -r1.1.2.1
*** opac-suggestions.tmpl	20 Oct 2004 19:15:07 -0000	1.1
--- opac-suggestions.tmpl	7 Jul 2005 20:40:37 -0000	1.1.2.1
***************
*** 1,5 ****
  <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_VAR NAME="LibraryName" --> Catalog -- 
! <!-- TMPL_IF name="op_add" -->Enter a new suggestion<!-- /TMPL_IF -->
! <!-- TMPL_IF name="op_else" -->Suggestions<!-- /TMPL_IF -->
  <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
  <!--TMPL_INCLUDE NAME="masthead.inc" -->
--- 1,5 ----
  <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_VAR NAME="LibraryName" --> Catalog -- 
! <!-- TMPL_IF name="op_add" -->Enter a new purchase suggestion<!-- /TMPL_IF -->
! <!-- TMPL_IF name="op_else" -->Purchase Suggestions<!-- /TMPL_IF -->
  <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
  <!--TMPL_INCLUDE NAME="masthead.inc" -->
***************
*** 8,24 ****
  <div id="main">
  <!-- TMPL_IF name="op_add" -->
! 	<h1>Enter a new suggestion</h1>
  	<div class="details">
! 	<p>Fill this form to suggest the library a new acquisition. You will be emailed when the library processes your suggestion</p>
  	<p>No fields are mandatory. Enter whatever information you have. The "Notes" field can be used to provide any additional information.</p>
  	<form>
  	<table>
! 	<tr><th><label>Title</label></th><td><input type="text" name="title" size="50" maxlentgh="80"></td></tr>
! 	<tr><th><label>Author</label></th><td><input type="text" name="author" size="50" maxlength="80"></td></tr>
! 	<tr><th><label>Copyright date</label></th><td><input type="text" name="copyrightdate" size="4" maxlength="4"></td></tr>
! 	<tr><th><label>Publisher</label></th><td><input type="text" name="publishercode" size="50" maxlength="80"></td></tr>
  	<tr><th><label>Notes</label></th><td><textarea name="note" rows="5" cols="40"></textarea></td></tr>
  	</table>
! 		<p><input type="hidden" name="op" value="add_confirm"><input type="submit" value="Submit Your Suggestion" class="submit"></p>
  	</form>
  	</div>
--- 8,24 ----
  <div id="main">
  <!-- TMPL_IF name="op_add" -->
! 	<h1>Enter a new purchase suggestion</h1>
  	<div class="details">
! 	<p>Fill this form to suggest the library a new acquisition. You will be emailed when the library processes your purchase suggestion</p>
  	<p>No fields are mandatory. Enter whatever information you have. The "Notes" field can be used to provide any additional information.</p>
  	<form>
  	<table>
! 	<tr><th><label>Title</label></th><td><input type="text" name="title" size="50" maxlentgh="80" /></td></tr>
! 	<tr><th><label>Author</label></th><td><input type="text" name="author" size="50" maxlength="80" /></td></tr>
! 	<tr><th><label>Copyright date</label></th><td><input type="text" name="copyrightdate" size="4" maxlength="4" /></td></tr>
! 	<tr><th><label>Publisher</label></th><td><input type="text" name="publishercode" size="50" maxlength="80" /></td></tr>
  	<tr><th><label>Notes</label></th><td><textarea name="note" rows="5" cols="40"></textarea></td></tr>
  	</table>
! 		<p><input type="hidden" name="op" value="add_confirm" /><input type="submit" value="Submit Your Suggestion" class="submit" /></p>
  	</form>
  	</div>
***************
*** 26,30 ****
  
  <!-- TMPL_IF name="op_else" -->
! 	<h1>Suggestions</h1>
  	<table>
  		<tr>
--- 26,31 ----
  
  <!-- TMPL_IF name="op_else" -->
! 	<h1>Purchase Suggestions</h1>
! 	<!-- TMPL_IF NAME="suggestions_loop" -->
  	<table>
  		<tr>
***************
*** 45,52 ****
  				</th>
  				<th>
! 					<input type="text" name="title" value="<!-- TMPL_VAR name="title"-->">
  				</th>
  				<th>
! 					<input type="text" name="author" value="<!-- TMPL_VAR name="author" -->">
  				</th>
  				<th>
--- 46,53 ----
  				</th>
  				<th>
! 					<input type="text" name="title" value="<!-- TMPL_VAR name="title"-->" />
  				</th>
  				<th>
! 					<input type="text" name="author" value="<!-- TMPL_VAR name="author" -->" />
  				</th>
  				<th>
***************
*** 54,65 ****
  				</th>
  				<th>
! 					<input type="text" name="publishercode" value="<!-- TMPL_VAR name="publishercode"-->">
  				</th>
  				<th>
  					<select name="status">
  						<option value="">Any</option>
! 						<option value="ASKED" <!-- TMPL_IF name="ASKED" -->selected<!-- /TMPL_IF -->>Asked</option>
  						<option value="ORDERED" <!-- TMPL_IF name="ORDERED" -->selected<!-- /TMPL_IF -->>Ordered</option>
! 						<option value="REJECTED"<!-- TMPL_IF name="REJECTED" -->selected<!-- /TMPL_IF -->>Rejected</option>
  						<option value="AVAILABLE"<!-- TMPL_IF name="AVAILABLE" -->selected<!-- /TMPL_IF -->>Available</option>
  					</select>
--- 55,66 ----
  				</th>
  				<th>
! 					<input type="text" name="publishercode" value="<!-- TMPL_VAR name="publishercode"-->" />
  				</th>
  				<th>
  					<select name="status">
  						<option value="">Any</option>
! 						<option value="ASKED" <!-- TMPL_IF name="ASKED" -->selected<!-- /TMPL_IF -->>Requested</option>
  						<option value="ORDERED" <!-- TMPL_IF name="ORDERED" -->selected<!-- /TMPL_IF -->>Ordered</option>
! 						<option value="REJECTED"<!-- TMPL_IF name="REJECTED" -->selected<!-- /TMPL_IF -->>Declined</option>
  						<option value="AVAILABLE"<!-- TMPL_IF name="AVAILABLE" -->selected<!-- /TMPL_IF -->>Available</option>
  					</select>
***************
*** 75,114 ****
  				</th>
  				<th>
! 					<input type="submit" class="submit" value="Set Filter">
  				</th>
  			</form>
  		</tr>
  		<form>
! 			<input type="hidden" name="op" value="delete_confirm">
  		<!-- TMPL_LOOP NAME="suggestions_loop" -->
! 			<tr>
  				<td>
! 					<input type="checkbox" name="delete_field" value="<!--TMPL_VAR name="suggestionnumber" -->">
  				</td>
! 				<td <!-- TMPL_IF name="even" -->class="hilighted"<!-- /TMPL_IF -->>
  					<!-- TMPL_VAR NAME="title" -->
  				</td>
! 				<td <!-- TMPL_IF name="even" -->class="hilighted"<!-- /TMPL_IF -->>
  					<!-- TMPL_VAR NAME="author" -->
  				</td>
! 				<td align="center"<!-- TMPL_IF name="even" --> class="hilighted"<!-- /TMPL_IF -->>
  					<!-- TMPL_VAR NAME="copyrightdate" -->
  				</td>
! 				<td align="center" <!-- TMPL_IF name="even" --> class="hilighted"<!-- /TMPL_IF -->>
  					<!-- TMPL_VAR name="publishercode" -->
  				</td>
! 				<td <!-- TMPL_IF name="even" -->class="hilighted"<!-- /TMPL_IF -->>
! 					<!-- TMPL_IF name="ASKED" -->Asked<!-- /TMPL_IF -->
  					<!-- TMPL_IF name="ORDERED" -->Ordered by the library<!-- /TMPL_IF -->
! 					<!-- TMPL_IF name="REJECTED" -->Suggestion rejected : won't be buy<!-- /TMPL_IF -->
  					<!-- TMPL_IF name="AVAILABLE" -->Available in the library<!-- /TMPL_IF -->
  				</td>
! 				<td <!-- TMPL_IF name="even" -->class="hilighted"<!-- /TMPL_IF -->>
  					<!-- TMPL_VAR name="surnamesuggestedby" --><!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF --> <!-- TMPL_VAR name="firstnamesuggestedby" -->
  				</td>
! 				<td <!-- TMPL_IF name="even" -->class="hilighted"<!-- /TMPL_IF -->>
  					<!-- TMPL_VAR name="usermanagedby" --><!-- TMPL_IF name="firstnamemanagedby" -->,<!-- /TMPL_IF --> <!-- TMPL_VAR name="firstnamemanagedby" -->
  				</td>
! 				<td <!-- TMPL_IF name="even" -->class="hilighted"<!-- /TMPL_IF -->>
  					<!-- TMPL_VAR name="note" -->
  				</td>
--- 76,115 ----
  				</th>
  				<th>
! 					<input type="submit" class="submit" value="Set Filter" />
  				</th>
  			</form>
  		</tr>
  		<form>
! 			<input type="hidden" name="op" value="delete_confirm" />
  		<!-- TMPL_LOOP NAME="suggestions_loop" -->
! 			<!-- TMPL_IF name="even" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
  				<td>
! 					<input type="checkbox" name="delete_field" value="<!--TMPL_VAR name="suggestionid" -->" />
  				</td>
! 				<td>
  					<!-- TMPL_VAR NAME="title" -->
  				</td>
! 				<td>
  					<!-- TMPL_VAR NAME="author" -->
  				</td>
! 				<td>
  					<!-- TMPL_VAR NAME="copyrightdate" -->
  				</td>
! 				<td>
  					<!-- TMPL_VAR name="publishercode" -->
  				</td>
! 				<td>
! 					<!-- TMPL_IF name="ASKED" -->Requested<!-- /TMPL_IF -->
  					<!-- TMPL_IF name="ORDERED" -->Ordered by the library<!-- /TMPL_IF -->
! 					<!-- TMPL_IF name="REJECTED" -->Suggestion declined<!-- /TMPL_IF -->
  					<!-- TMPL_IF name="AVAILABLE" -->Available in the library<!-- /TMPL_IF -->
  				</td>
! 				<td>
  					<!-- TMPL_VAR name="surnamesuggestedby" --><!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF --> <!-- TMPL_VAR name="firstnamesuggestedby" -->
  				</td>
! 				<td>
  					<!-- TMPL_VAR name="usermanagedby" --><!-- TMPL_IF name="firstnamemanagedby" -->,<!-- /TMPL_IF --> <!-- TMPL_VAR name="firstnamemanagedby" -->
  				</td>
! 				<td>
  					<!-- TMPL_VAR name="note" -->
  				</td>
***************
*** 116,121 ****
  		<!-- /TMPL_LOOP -->
  		<tr>
! 			<td>
! 				<input type="submit" class="submit" value="Delete">
  			</td>
  			<td> &nbsp; </td>
--- 117,122 ----
  		<!-- /TMPL_LOOP -->
  		<tr>
! 			<td colspan="2">
! 				<input type="submit" class="icon delete" value="Delete Checked Items" />
  			</td>
  			<td> &nbsp; </td>
***************
*** 126,138 ****
  			<td> &nbsp; </td>
  			<td> &nbsp; </td>
- 			<td> &nbsp; </td>
  		</tr>
  		</form>
  	</table>
  	<form>
! 		<input type="hidden" name="op" value="add">
! 		<input type="submit" class="submit" value="Enter a new suggestion">
  	<br />
! 	<p>Note : if you're viewing suggestions submitted by anybody, the results will contain only <em>new</em> suggestions. Suggestions being processed by a librarian will not be shown.</p>
  <!-- /TMPL_IF -->
  </div>
--- 127,139 ----
  			<td> &nbsp; </td>
  			<td> &nbsp; </td>
  		</tr>
  		</form>
  	</table>
+ 	<!-- TMPL_ELSE --><div class="content-block">There are no pending purchase suggestions</div><!-- /TMPL_IF -->
  	<form>
! 		<input type="hidden" name="op" value="add" />
! 		<input type="submit" class="icon add" value="Enter a new purchase suggestion" />
  	<br />
! 	<p>Note : if you're viewing purchase suggestions submitted by anybody, the results will contain only <em>new</em> purchase suggestions. Suggestions being processed by a librarian will not be shown.</p>
  <!-- /TMPL_IF -->
  </div>





More information about the Koha-cvs mailing list