[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/bookshelves addbookbybiblionumber.tmpl,1.3,1.4 shelves.tmpl,1.4,1.5

Paul POULAIN tipaul at users.sourceforge.net
Wed Dec 15 18:28:40 CET 2004


Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/bookshelves
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13519/koha-tmpl/intranet-tmpl/default/en/bookshelves

Modified Files:
	addbookbybiblionumber.tmpl shelves.tmpl 
Log Message:
adding bookshelf features :
* create bookshelf on the fly
* modify a bookshelf (this being not finished, will commit the rest soon)

Index: addbookbybiblionumber.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/bookshelves/addbookbybiblionumber.tmpl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** addbookbybiblionumber.tmpl	19 Jul 2004 19:33:10 -0000	1.3
--- addbookbybiblionumber.tmpl	15 Dec 2004 17:28:24 -0000	1.4
***************
*** 7,10 ****
--- 7,18 ----
  	<p><label>Author</label><!-- TMPL_VAR NAME="author" --></p>
  	<p><label>Add to virtual shelf</label><!-- TMPL_VAR NAME="CGIbookshelves" --></p>
+ 	<p>or add to a new bookshelf </p>
+ 	<p><input type="text" name="newbookshelf" maxlength=40 size=40>
+ 		<select name="category">
+ 			<option value="1">Private</option>
+ 			<option value="2">Public</option>
+ 			<option value="3">Free</option>
+ 		</select>
+ 	</p>
  	<input type="submit" value="Add to virtual shelf" class="button catalogue">
  </form>

Index: shelves.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/bookshelves/shelves.tmpl,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** shelves.tmpl	2 Dec 2004 16:41:29 -0000	1.4
--- shelves.tmpl	15 Dec 2004 17:28:36 -0000	1.5
***************
*** 111,114 ****
--- 111,115 ----
  					<th class="catalogue">Shelf name</th>
  					<th class="catalogue">Content size</th>
+ 					<th class="catalogue">Modify</th>
  				</tr>
  				<!-- TMPL_LOOP Name="shelvesloop" -->
***************
*** 120,125 ****
  					</td>
  					<td bgcolor="<!-- TMPL_VAR NAME="color" -->">
! 					<!-- TMPL_VAR NAME="shelfbookcount" --> item(s)
  					</td>
  				</tr>
  				<!-- /TMPL_LOOP -->
--- 121,129 ----
  					</td>
  					<td bgcolor="<!-- TMPL_VAR NAME="color" -->">
! 						<!-- TMPL_VAR NAME="shelfbookcount" --> item(s)
  					</td>
+ 					<!-- TMPL_IF name="mine" -->
+ 						<td bgcolor="<!-- TMPL_VAR NAME="color" -->"><a href="shelves.pl?op=modif&shelf=<!-- TMPL_VAR NAME="shelf" -->" class="button catalogue">Modify</a></td>
+ 					<!-- /TMPL_IF -->
  				</tr>
  				<!-- /TMPL_LOOP -->
***************
*** 131,134 ****
--- 135,177 ----
  	<!-- /TMPL_IF -->
  <!-- /TMPL_IF -->
+ 
+ <!-- TMPL_IF name="edit" -->
+ 	<div id="bloc25">
+ 		<form method="post">
+ 			<input type="hidden" name="op" value="modifsave">
+ 			<h2 class="catalogue">Modify shelf</h2>
+ 			<input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR name="shelfnumber" -->">
+ 			<p><label>Name</label><input type="text" name="addshelf" size="25" value="<!-- TMPL_VAR name="shelfname"-->"></p>
+ 			<p><label>Owner</label><input type="hidden" name="owner" value="<!-- TMPL_VAR NAME="loggedinuser" -->"><!-- TMPL_VAR NAME="loggedinusername" --></p>
+ 			<p><label>Category</label>
+ 				<select name="category">
+ 					<!-- TMPL_IF name="category1" -->
+ 						<option value="1" selected>Private</option>
+ 					<!-- TMPL_ELSE -->
+ 						<option value="1">Private</option>
+ 					<!-- /TMPL_IF -->
+ 					<!-- TMPL_IF name="category2" -->
+ 						<option value="2" selected>Public</option>
+ 					<!-- TMPL_ELSE -->
+ 						<option value="2">Public</option>
+ 					<!-- /TMPL_IF -->
+ 					<!-- TMPL_IF name="category3" -->
+ 						<option value="3" selected>Free</option>
+ 					<!-- TMPL_ELSE -->
+ 						<option value="3">Free</option>
+ 					<!-- /TMPL_IF -->
+ 				</select>
+ 			</p>
+ 			<p> <li>a private bookshelf is managed by you &amp; can be seen only by you.</li>
+ 				<li> A public can be seen by everybody, but managed only by you.</li>
+ 				<li> A free can be managed by any user.</li>
+ 			</p>
+ 			<p>
+ 				<input type="submit" value="Save" class="button catalogue">
+ 			</p>
+ 
+ 		</form>
+ 	</div>
+ <!-- /TMPL_IF -->
  </div>
  <!-- TMPL_INCLUDE Name="cat-bottom.inc" -->





More information about the Koha-cvs mailing list