More work to toolbars and menus. Adding experimental YUI-based toolbar to detail...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / detail.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Catalogue &rsaquo; Details for <!-- TMPL_VAR NAME="title" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- Core + Skin CSS -->
5 <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.3.1/build/button/assets/skins/sam/button.css">
6 <!-- OPTIONAL: Menu Stylesheet (required for creating buttons of type "menu" and "split") -->
7 <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.3.1/build/menu/assets/skins/sam/menu.css">
8
9 <!-- Dependencies -->
10 <script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/yahoo-dom-event/yahoo-dom-event.js"></script>
11 <script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/element/element-beta-min.js"></script>
12
13 <!-- OPTIONAL: Menu and Container Core (required for creating buttons of type "menu" and "split") -->
14 <script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/container/container_core-min.js"></script>
15 <script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/menu/menu-min.js"></script>
16
17 <!-- Source file -->
18 <script type="text/javascript" src="http://yui.yahooapis.com/2.3.1/build/button/button-beta-min.js"></script>
19 <script type="text/javascript">
20 //<![CDATA[
21 function Dopop(link) {
22     newin=window.open(link,'popup','width=500,height=400,toolbar=false,scrollbars=yes');
23 }
24 function confirm_deletion(count) {
25         var is_confirmed;
26         if (count>0){
27                     is_confirmed= alert(_('you have [ '+ count +' ] item(s) linked \n you must delete all items before delete this biblio'));
28                     }
29         else{
30                     is_confirmed= confirm(_('Are you sure you want to delete this biblio? '));
31         }
32
33     
34      if (is_confirmed) {
35         if (count>0){
36 //      window.location="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->";
37         }
38         else{
39         window.location="/cgi-bin/koha/cataloguing/addbiblio.pl?op=delete&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->";
40         }
41                 
42     }
43 }
44       // "contentready" event handler for the "toolbar" <div>
45          YAHOO.example.init = function () {
46       YAHOO.util.Event.onContentReady("toolbar", function () {
47                         var oAddbiblio = new YAHOO.widget.Button("addbiblio");
48             var oDeletebiblio = new YAHOO.widget.Button("deletebiblio");
49                         var oAddtoshelf = new YAHOO.widget.Button("addtoshelf");
50                         var oPrintbiblio = new YAHOO.widget.Button("printbiblio");
51                         var oPlacehold = new YAHOO.widget.Button("placehold");
52                         var oEditButton = new YAHOO.widget.Button("editbutton", { type: "menu", menu: "editbuttonselect" });
53                          });
54     } ();
55         
56 //]]>
57 </script>
58 <style type="text/css">
59 #toolbar {
60 }
61
62 #addbiblio a {
63         padding-left : 2.1em;
64         background-image: url("/intranet-tmpl/prog/img/opac-buttons.gif");
65         background-position : 0 -155px;
66         background-repeat : no-repeat;
67 }
68
69 #deletebiblio a {
70         padding-left : 2.1em;
71         background-image: url("/intranet-tmpl/prog/img/opac-buttons.gif");
72         background-position : 0 -188px;
73         background-repeat : no-repeat;
74 }
75
76 #printbiblio a {
77         padding-left : 2.1em;
78         background-image: url("/intranet-tmpl/prog/img/opac-buttons.gif");
79         background-position : 0 -243px;
80         background-repeat : no-repeat;
81 }
82
83 #addtoshelf a {
84         padding-left : 2.2em;
85         background-image: url("/intranet-tmpl/prog/img/opac-buttons.gif");
86         background-position : 0 -124px;
87         background-repeat : no-repeat;
88 }
89
90 #placehold a {
91         padding-left : 2.2em;
92         background-image: url("/intranet-tmpl/prog/img/opac-buttons.gif");
93         background-position : 0 -215px;
94         background-repeat : no-repeat;
95 }
96 </style>
97 </head>
98 <body class="yui-skin-sam">
99
100 <!-- TMPL_INCLUDE NAME="header.inc" -->
101 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
102
103 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/catalogue/search.pl">Catalogue</a>  &rsaquo; Details for <i><!-- TMPL_VAR NAME="title" --></i></div>
104
105 <div id="doc3" class="yui-t2">
106    
107    <div id="bd">
108         <div id="yui-main">
109         <div class="yui-b">
110
111 <!-- TMPL_INCLUDE NAME="cat-toolbar.inc" -->
112     <div class="yui-gb">
113     <h2><!-- TMPL_VAR NAME="title" --></h2>     
114         <div id="catalogue_detail_biblio" class="yui-u first">
115
116         <p>
117             [
118             <!-- TMPL_IF name="description" -->
119                 <!-- TMPL_VAR name="description" -->
120             <!-- TMPL_ELSE -->
121                 <!-- TMPL_VAR NAME="itemtype" -->
122             <!-- /TMPL_IF -->
123             ]
124             <!-- TMPL_IF name="volume" -->, <!-- TMPL_VAR name="volume" --><!-- /TMPL_IF -->
125             <!-- TMPL_IF name="volumedesc" -->, <!-- TMPL_VAR name="volumedesc" --><!-- /TMPL_IF -->
126             <!-- TMPL_IF name="unititle" -->, <!-- TMPL_VAR name="unititle" --><!-- /TMPL_IF -->
127             / <!-- TMPL_VAR NAME="author" --> <!-- TMPL_VAR NAME="class" -->
128         </p>
129                 
130                 
131                 
132                 <ul>
133         <!-- TMPL_IF name="MARCAUTHORS" -->
134             <li><strong>Authors:</strong><ul>
135                 <!-- TMPL_LOOP NAME="MARCAUTHORS" -->
136                 <li><a href="/cgi-bin/koha/catalogue/search.pl?q=Koha-Auth-Number:<!-- TMPL_VAR NAME="link" -->">
137                     <!-- TMPL_VAR NAME="value" -->
138                 </a>&nbsp;</li>
139                 <!-- /TMPL_LOOP -->
140                                 </ul>
141             </li>
142         <!-- /TMPL_IF -->
143         <!-- TMPL_IF name="illus" -->
144             <li><strong>Illustrator:</strong> <!-- TMPL_VAR name="illus" -->&nbsp;</li>
145         <!-- /TMPL_IF -->
146         <!-- TMPL_IF name="publishercode" -->
147             <li><strong>Publisher:</strong>
148                 <a href="/cgi-bin/koha/catalogue/search.pl?q=pb:<!-- TMPL_VAR NAME="publishercode" -->">
149                     <!-- TMPL_VAR NAME="publishercode" -->
150                 </a>&nbsp;
151             </li>
152         <!-- /TMPL_IF -->
153         <!-- TMPL_IF name="publicationyear" -->
154             <li>in:<!-- TMPL_VAR NAME="publicationyear" -->&nbsp;</li>
155         <!-- /TMPL_IF -->
156         <li><strong>Description:</strong>
157                 <!-- TMPL_IF name="pages" --> <!-- /TMPL_IF --><!-- TMPL_VAR name="pages" -->
158                 <!-- TMPL_IF name="size" -->, <!-- /TMPL_IF --><!-- TMPL_VAR name="size" -->
159         </li>
160                 </ul>
161                 </div>
162                 
163                 <div class="yui-u">
164 <!-- TMPL_IF NAME="AmazonContent" --><a href="http://www.amazon.com/gp/reader/<!-- TMPL_VAR NAME="isbn" -->/ref=sib_dp_pt/002-7879865-0184864#reader-link"><img border="0" src="http://images.amazon.com/images/P/<!-- TMPL_VAR NAME="isbn" -->.01._PIdp-schmooS,TopRight,7,-26_SCMZZZZZZZ_.jpg" alt="Book Cover Image" /></a><!-- /TMPL_IF -->
165 </div>
166                 
167                 <div class="yui-u">
168                 <ul>
169         <!-- TMPL_IF name="isbn" -->
170             <li><strong>ISBN:</strong> <!-- TMPL_VAR NAME="isbn" -->&nbsp;</li>
171         <!-- /TMPL_IF -->
172         <!-- TMPL_IF name="issn" -->
173             <li><strong>ISSN:</strong><!-- TMPL_VAR NAME="issn" -->&nbsp;</li>
174         <!-- /TMPL_IF -->
175         <!-- TMPL_IF name="collectiontitle" -->
176             <li><strong>Collection: </strong>
177                 <!-- TMPL_VAR NAME="collectiontitle" --> <!-- TMPL_IF name="collectionvolume" -->, <!-- TMPL_VAR NAME="collectionvolume" --><!-- /TMPL_IF --><!-- TMPL_IF name="collectionissn" -->(<strong>ISSN:</strong> <!-- TMPL_VAR NAME="collectionissn" -->)<!-- /TMPL_IF -->
178             </li>
179         <!-- /TMPL_IF -->
180         <!-- TMPL_IF name="MARCSUBJCTS" -->
181             <li><strong>Subjects:</strong> 
182             <ul>
183                 <!-- TMPL_LOOP NAME="MARCSUBJCTS" -->
184                     <li><a href="/cgi-bin/koha/catalogue/search.pl?q=<!-- TMPL_VAR NAME="link" ESCAPE="URL"-->"><!-- TMPL_VAR NAME="label" --></a>
185                     &nbsp;</li>
186                 <!-- /TMPL_LOOP -->
187                                 </ul>
188             </li>
189         <!-- /TMPL_IF -->
190         <!-- TMPL_IF name="copyrightdate" -->
191             <li><strong>Copyright:</strong> <!-- TMPL_VAR NAME="copyrightdate" --></li>
192         <!-- /TMPL_IF -->
193         <!-- TMPL_IF name="MARCNOTES" -->
194             <li><strong>Notes:</strong>
195             <ul>
196                 <!-- TMPL_LOOP NAME="MARCNOTES" -->
197                     <li>- <!-- TMPL_VAR NAME="marcnote" --></li>
198                 <!-- /TMPL_LOOP -->
199             </ul>
200                         </li>
201         <!-- TMPL_ELSE -->
202             <!-- TMPL_IF name="notes" -->
203                 <li><strong>Notes:</strong> <!-- TMPL_VAR NAME="notes" --></li>
204             <!-- /TMPL_IF -->
205         <!-- /TMPL_IF -->
206         <!-- TMPL_IF name="unititle" -->
207             <li><strong>Alternate title:</strong> <!-- TMPL_VAR NAME="unititle" --></li>
208         <!-- /TMPL_IF -->
209         <!-- TMPL_IF name="classification" -->
210             <li><strong>Classification:</strong> <!-- TMPL_VAR name="subclass" --><!-- TMPL_VAR name="classification" --></li>
211         <!-- /TMPL_IF -->
212         <!-- TMPL_IF name="dewey" -->
213             <li><strong>Dewey:</strong> <!-- TMPL_VAR name="dewey" --></li>
214         <!-- /TMPL_IF -->
215         <!-- TMPL_IF name="URLS" -->
216             <li><strong>URL:</strong> 
217                 <!-- TMPL_LOOP name="URLS" -->
218                     <a href="<!-- TMPL_VAR name="url" -->"><!-- TMPL_VAR NAME="url" --></a>&nbsp;
219                 <!-- /TMPL_LOOP -->
220             </li>
221         <!-- /TMPL_IF -->
222                 </ul>
223 </div>
224
225 </div>
226
227 <div class="yui-g">
228 <!-- TMPL_IF name="count" -->
229     <div id="catalogue_detail_items">
230         <caption><!-- TMPL_VAR NAME="count" --> item(s)</caption>
231         <table>
232             <tr>
233                 <th>Item type</th>
234                 <th>Location</th>
235                 <th>Status</th>
236                 <th>Date Due</th>
237                 <th>Last seen</th>
238                 <th>Barcode</th>
239                 <th>Volume</th>
240             </tr>
241             <!-- TMPL_LOOP NAME="ITEM_RESULTS" -->
242                 <tr>
243                     <td><!-- TMPL_VAR NAME="description" --></td>
244                     <td><!-- TMPL_VAR NAME="branchname" --> <!-- TMPL_VAR name="location" --> <!-- TMPL_IF NAME="itemcallnumber" --> <!-- TMPL_VAR NAME="itemcallnumber" --><!-- /TMPL_IF --></td>
245                     <td><!-- TMPL_IF name="datedue" -->
246                             On issue to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></a>
247                         <!-- TMPL_ELSE -->
248                             <!-- TMPL_IF name="notforloan" -->
249                                 <!-- TMPL_VAR name="notforloan" -->
250                             <!-- TMPL_ELSE -->
251                                 <!-- TMPL_IF name="itemlost"-->
252                                     Item lost
253                                 <!-- TMPL_ELSE -->
254                                 <!-- TMPL_IF NAME="wthdrawn" -->Item Cancelled<!-- TMPL_ELSE -->Available<!-- /TMPL_IF -->
255                                 <!-- /TMPL_IF -->
256                             <!-- /TMPL_IF -->
257                         <!-- /TMPL_IF --></td>
258                     <td><!-- TMPL_VAR NAME="datedue" --></td>
259                     <td><!-- TMPL_VAR NAME="datelastseen" --></td>
260                     <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?type=<!-- TMPL_VAR NAME="type" -->&amp;item=<!-- TMPL_VAR NAME="itemnumber" -->&amp;biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->&amp;bi=<!-- TMPL_VAR NAME="biblioitemnumber" -->"><!-- TMPL_VAR NAME="barcode" --></a></td>
261                     <td><!-- TMPL_VAR NAME="volumeddesc" --></td>
262                     <!-- TMPL_IF NAME="type" -->
263                         <td>    <a href="/cgi-bin/koha/maint/catmaintain.pl?type=fixitemtype&amp;bi=<!-- TMPL_VAR NAME="biblioitemnumber" -->&amp;item=<!-- TMPL_VAR NAME="itemtype" -->">Fix Itemtype</a>
264                         </td>
265                     <!-- /TMPL_IF -->
266                 </tr>
267             <!-- /TMPL_LOOP -->
268         </table>
269     </div>
270 <!-- TMPL_ELSE -->
271     <p>No physical items for this record</p>
272 <!-- /TMPL_IF -->
273 </div>
274
275 <!-- TMPL_IF name="subscriptionsnumber" -->
276 <div class="yui-g">
277 <div id="catalogue_detail_subscriptions">
278     <h2>This is a serial subscription</h2>
279     <p> (We have <!-- TMPL_VAR name="subscriptionsnumber" --> subscriptions associated with this title).</p> 
280     <!-- TMPL_LOOP Name="subscriptions" -->
281             <!-- TMPL_IF NAME="subscriptionnotes" --><p><!--TMPL_VAR NAME="subscriptionnotes"--> </p><!-- /TMPL_IF -->
282             <!--TMPL_IF NAME="latestserials"-->
283             <p> The three latest issues related to this subscription:</p>
284             <table>
285                 <tr>
286                     <th>Issue #</th>
287                     <th>Date</th>
288                     <th>Status</th>
289                     <th>Note</th>
290                                 </tr>
291             <!--TMPL_LOOP Name="latestserials"-->
292                 <tr>
293                     <td><!--TMPL_VAR Name="serialseq"--></td>
294                     <td><!--TMPL_VAR Name="planneddate"--></td>
295                     <td><!--TMPL_IF Name="status1"-->Waited
296                         <!--TMPL_ELSE -->
297                             <!-- TMPL_IF Name="status2"-->Arrived
298                             <!--TMPL_ELSE -->
299                                 <!-- TMPL_IF Name="status3"-->Late
300                                 <!--TMPL_ELSE -->
301                                     <!-- TMPL_IF Name="status4"-->Missing
302                                     <!--TMPL_ELSE -->
303                                         <!-- TMPL_IF Name="status5"-->Not Issued
304                                         <!--/TMPL_IF-->
305                                     <!--/TMPL_IF-->
306                                 <!--/TMPL_IF-->
307                             <!--/TMPL_IF-->
308                         <!--/TMPL_IF--></td>
309                     <td><!--TMPL_VAR Name="notes"--></td>
310                 </tr>
311             <!--/TMPL_LOOP -->
312             </table>
313             <!-- /TMPL_IF -->
314     <!-- /TMPL_LOOP -->
315 </div>
316 </div>
317 <!-- /TMPL_IF -->
318
319 </div>
320 </div>
321 <div class="yui-b">
322 <!-- TMPL_INCLUDE NAME="biblio-view-menu.inc" -->
323 <!-- TMPL_INCLUDE NAME="cat-menu.inc" -->
324 </div>
325 </div>
326 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->