|
Lines 31-36
Link Here
|
| 31 |
[% END %] |
31 |
[% END %] |
| 32 |
[% END %] |
32 |
[% END %] |
| 33 |
|
33 |
|
|
|
34 |
[% BLOCK shelvinglocation %] |
| 35 |
[%# If permanent location is defined, show description or code and %] |
| 36 |
[%# display current location in parentheses. If not, display current location. %] |
| 37 |
[%# Note that permanent location is a code, and location may be an authval. %] |
| 38 |
[% SET item_location = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) %] |
| 39 |
[% IF item.permanent_location %] |
| 40 |
[% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %] |
| 41 |
[% permloc_authval | html %] |
| 42 |
[% IF item_location AND item_location != permloc_authval AND item.location != item.permanent_location %] |
| 43 |
([% item_location | html %]) |
| 44 |
[% END %] |
| 45 |
[% ELSE %] |
| 46 |
[% item_location | html %] |
| 47 |
[% END %] |
| 48 |
[% END %] |
| 49 |
|
| 34 |
[% SET plugins_intranet_catalog_biblio_tabs = KohaPlugins.get_plugins_intranet_catalog_biblio_tab({ biblio => biblio, biblio_id => biblionumber }) %] |
50 |
[% SET plugins_intranet_catalog_biblio_tabs = KohaPlugins.get_plugins_intranet_catalog_biblio_tab({ biblio => biblio, biblio_id => biblionumber }) %] |
| 35 |
|
51 |
|
| 36 |
[% SET footerjs = 1 %] |
52 |
[% SET footerjs = 1 %] |
|
Lines 355-360
Link Here
|
| 355 |
[% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %] |
371 |
[% IF ( item_level_itypes ) %]<th id="[% tab | html %]_itype" data-colname="[% tab | html %]_itype">Item type</th>[% END %] |
| 356 |
<th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current library</th> |
372 |
<th id="[% tab | html %]_holdingbranch" data-colname="[% tab | html %]_holdingbranch">Current library</th> |
| 357 |
<th id="[% tab | html %]_homebranch" data-colname="[% tab | html %]_homebranch">Home library</th> |
373 |
<th id="[% tab | html %]_homebranch" data-colname="[% tab | html %]_homebranch">Home library</th> |
|
|
374 |
[% IF Koha.Preference('StaffLocationOnDetail') == 'column' %] |
| 375 |
<th id="[% tab | html %]_shelvingloction" data-colname="[% tab | html %]_shelvinglocation">Shelving location</th> |
| 376 |
[% END %] |
| 358 |
[% IF ( itemdata_ccode ) %]<th id="[% tab | html %]_ccode" data-colname="[% tab | html %]_ccode">Collection</th>[% END %] |
377 |
[% IF ( itemdata_ccode ) %]<th id="[% tab | html %]_ccode" data-colname="[% tab | html %]_ccode">Collection</th>[% END %] |
| 359 |
[% IF Koha.Preference('EnableItemGroups') %] |
378 |
[% IF Koha.Preference('EnableItemGroups') %] |
| 360 |
<th id="[% tab | html %]_item_group" data-colname="[% tab | html %]_item_group">Item group</th> |
379 |
<th id="[% tab | html %]_item_group" data-colname="[% tab | html %]_item_group">Item group</th> |
|
Lines 419-443
Link Here
|
| 419 |
<span class="itypedesc itypetext">[% itemtype.translated_description | html %]</span> |
438 |
<span class="itypedesc itypetext">[% itemtype.translated_description | html %]</span> |
| 420 |
</td> |
439 |
</td> |
| 421 |
[% END %] |
440 |
[% END %] |
| 422 |
<td class="location">[% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.holdingbranch ) | html %] [% END %]</td> |
441 |
<td class="location"> |
|
|
442 |
[% UNLESS ( singlebranchmode ) %] |
| 443 |
[% Branches.GetName( item.holdingbranch ) | html %] |
| 444 |
[% IF ( Koha.Preference('StaffLocationOnDetail') == 'holding' || Koha.Preference('StaffLocationOnDetail') == 'both' ) %] |
| 445 |
<span class="shelvingloc"> |
| 446 |
[% PROCESS shelvinglocation %] |
| 447 |
</span> |
| 448 |
[% END %] |
| 449 |
[% END %] |
| 450 |
</td> |
| 423 |
<td class="homebranch"> |
451 |
<td class="homebranch"> |
| 424 |
<span class="homebranchdesc">[% Branches.GetName(item.homebranch) | html %]</span> |
452 |
<span class="homebranchdesc">[% Branches.GetName(item.homebranch) | html %]</span> |
| 425 |
<span class="shelvingloc"> |
453 |
[% IF ( Koha.Preference('StaffLocationOnDetail') == 'home' || Koha.Preference('StaffLocationOnDetail') == 'both' ) %] |
| 426 |
[%# If permanent location is defined, show description or code and %] |
454 |
<span class="shelvingloc"> |
| 427 |
[%# display current location in parentheses. If not, display current location. %] |
455 |
[% PROCESS shelvinglocation %] |
| 428 |
[%# Note that permanent location is a code, and location may be an authval. %] |
456 |
</span> |
| 429 |
[% SET item_location = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.location ) %] |
457 |
[% END %] |
| 430 |
[% IF item.permanent_location %] |
|
|
| 431 |
[% SET permloc_authval = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => item.permanent_location ) %] |
| 432 |
[% permloc_authval | html %] |
| 433 |
[% IF item_location AND item_location != permloc_authval AND item.location != item.permanent_location %] |
| 434 |
([% item_location | html %]) |
| 435 |
[% END %] |
| 436 |
[% ELSE %] |
| 437 |
[% item_location | html %] |
| 438 |
[% END %] |
| 439 |
</span> |
| 440 |
</td> |
458 |
</td> |
|
|
459 |
[% IF Koha.Preference('StaffLocationOnDetail') == 'column' %] |
| 460 |
<td class="shelvinglocation"> |
| 461 |
[% PROCESS shelvinglocation %] |
| 462 |
</td> |
| 463 |
[% END %] |
| 441 |
[% IF ( itemdata_ccode ) %]<td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]</td>[% END %] |
464 |
[% IF ( itemdata_ccode ) %]<td>[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => item.ccode ) | html %]</td>[% END %] |
| 442 |
[% IF Koha.Preference('EnableItemGroups') %]<td class="item_group">[% item.object.item_group.description | html %]</td>[% END %] |
465 |
[% IF Koha.Preference('EnableItemGroups') %]<td class="item_group">[% item.object.item_group.description | html %]</td>[% END %] |
| 443 |
<td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td> |
466 |
<td class="itemcallnumber">[% IF ( item.itemcallnumber ) %] [% item.itemcallnumber | html %][% END %]</td> |
| 444 |
- |
|
|