X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fcatalogue%2Fdetail.tt;h=2aea860f5c5aea3c797010d4ac264c47624173b8;hb=df97814f3034a3d5015546c4eca21f08ae951e37;hp=89ddb87f2d984a2207315cebc3b901d51094e03b;hpb=142e6098a9e41a59abae6c6f30ddca4dd8f4b797;p=srvgit diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 89ddb87f2d..2aea860f5c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -1,6 +1,7 @@ [% USE Koha %] [% USE KohaDates %] [% USE AuthorisedValues %] +[% USE Branches %] [% ShowCourseReserves = 0 %] [% IF UseCourseReserves %] @@ -24,23 +25,31 @@ Details for [% title |html %] [% FOREACH subtitl IN subtitle %] [% subtitl.subfield %][% END %] [% END %] + +[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && ( normalized_isbn || normalized_upc ) ) %] + +[% END %] + [% INCLUDE 'doc-head-close.inc' %] - + [% INCLUDE 'datatables.inc' %] [% INCLUDE 'browser-strings.inc' %] @@ -205,24 +238,23 @@ function verify_images() { browser.show(); function activate_filters(id) { - table = $("#" + id + " table"); + var table = $("#" + id + " table"); if (table.length == 1) { filters_row = table.find('thead tr.filters_row'); - [% IF StaffDetailItemSelection %] var aoColumns = []; filters_row.find('th').each(function() { - aoColumns.push('text'); + if(this.className === "NoSort"){ + aoColumns.push(null); + } else { + aoColumns.push('text'); + } }); - aoColumns[0] = null; - [% END %] if (table.find('thead tr.columnFilter').length == 0) { table.dataTable().columnFilter({ 'sPlaceHolder': 'head:after' - [% IF StaffDetailItemSelection %] , 'aoColumns': aoColumns - [% END %] }); filters_row.addClass('columnFilter'); } @@ -230,7 +262,7 @@ function verify_images() { } $('#' + id + '_activate_filters') - .text(_("Deactivate filters")) + .html(' ' + _("Deactivate filters") ) .unbind('click') .click(function() { deactivate_filters(id); @@ -248,7 +280,7 @@ function verify_images() { filters_row.hide(); $('#' + id + '_activate_filters') - .text(_("Activate filters")) + .html(' ' + _("Activate filters") ) .unbind('click') .click(function() { activate_filters(id); @@ -260,30 +292,29 @@ function verify_images() { var ids = ['holdings', 'otherholdings']; for (var i in ids) { var id = ids[i]; - table = $('#' + id + ' table'); + var table = $('#' + id + ' table'); // Duplicate the table header row for columnFilter thead_row = table.find('thead tr'); clone = thead_row.clone().addClass('filters_row'); + clone.find("th.NoSort").html(''); thead_row.before(clone); // Enable sorting table.dataTable($.extend(true, {}, dataTablesDefaults, { 'sDom': 't', 'bPaginate': false, - 'bAutoWidth': false - [% IF StaffDetailItemSelection %] - , "aoColumnDefs": [ - { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false } - ] - [% END %] + 'bAutoWidth': false, + "aoColumnDefs": [ + { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] } + ] })); // Show a link to activate filtering link = $('') .attr('href', '#') .attr('id', id + '_activate_filters'); - table.before(link); + $("." + id + "_table_controls").prepend(link); deactivate_filters(id); } [% IF Koha.Preference('AcquisitionDetails') %] @@ -291,9 +322,9 @@ function verify_images() { 'sDom': 't', 'bPaginate': false, 'bAutoWidth': false, - "aaSorting": [[ 3, "desc" ]], + "aaSorting": [[ 4, "desc" ]], "aoColumnDefs": [ - { "aTargets": [ 3, 4 ], "sType": "title-string" } + { "aTargets": "title-string", "sType": "title-string" } ] })); @@ -331,7 +362,7 @@ function verify_images() { [% END %] - [% IF ( AmazonCoverImages ) %] + [% IF ( AmazonCoverImages || LocalCoverImages ) %] [% IF ( XSLTDetailsDisplay ) %]
@@ -352,10 +383,10 @@ function verify_images() { [% IF ( XSLTDetailsDisplay ) %] [% XSLTBloc %] - [% IF ( GetShelves ) %] + [% IF shelves.count %] Lists that include this title: - [% FOREACH GetShelve IN GetShelves %] - [% GetShelve.shelfname %] + [% FOREACH s IN shelves %] + [% s.shelfname %] [% IF ( loop.last ) %][% ELSE %]|[% END %] [% END %] @@ -373,17 +404,26 @@ function verify_images() { [% END %] MARC Preview: Show - [% IF ( holdcount ) %]Holds: [% holdcount %][% ELSE %][% END %] - [% IF ( AmazonCoverImages ) %]
- [% END %] + [% IF ( AmazonCoverImages || LocalCoverImages ) %] +
+ [% IF ( LocalCoverImages ) %] +
+ [% END %] + [% IF ( AmazonCoverImages ) %] + + [% END %] + [% END %] [% ELSE %]

[% title |html %]

[% FOREACH subtitl IN subtitle %]

[% subtitl.subfield %]

[% END %] - [% UNLESS ( item_level_itypes ) %][% description %][% END %] + [% UNLESS ( item_level_itypes ) %][% translated_description %][% END %] [% IF ( unititle ) %]

[% unititle |html %]

[% END %] [% IF ( author ) %]

By [% author %]

[% END %] [% END %] - - [% IF ( OpacUrl ) %] + + [% IF ( OPACBaseURL ) %]
  • OPAC view: - Open in new window -
  • - [% END %] + Open in new window + + [% END %]
  • MARC Preview: Show @@ -439,8 +479,20 @@ function verify_images() {
  • -[% IF ( AmazonCoverImages ) %]
    -
    [% END %] + [% IF ( AmazonCoverImages || LocalCoverImages ) %] +
    + [% IF ( LocalCoverImages ) %] +
    + [% END %] + [% IF ( AmazonCoverImages ) %] +
    + + + +
    + [% END %] +
    + [% END %]
    [% items_table_block_iter = 0 %] [% BLOCK items_table %] [% items_table_block_iter = items_table_block_iter + 1 %] - [% IF (StaffDetailItemSelection) %] - Select all | - Clear all - - | Actions: - [% IF CAN_user_tools_items_batchdel %] - Delete selected items - [% END %] - [% IF CAN_user_tools_items_batchmod %] - Modify selected items - [% END %] - - [% END %] +
    + [% IF (StaffDetailItemSelection) %] + | Select all | + Clear all + + | Actions: + [% IF CAN_user_tools_items_batchdel %] + Delete selected items + [% END %] + [% IF CAN_user_tools_items_batchmod %] + Modify selected items + [% END %] + + [% END %] +
    - [% IF (StaffDetailItemSelection) %][% END %] + [% IF (StaffDetailItemSelection) %][% END %] [% IF ( item_level_itypes ) %][% END %] @@ -560,16 +617,18 @@ function verify_images() { - [% IF ( volinfo ) %][% END %] + [% IF ( volinfo ) %][% END %] [% IF ( itemdata_uri ) %][% END %] [% IF ( itemdata_copynumber ) %][% END %] + [% IF ( itemdata_stocknumber ) %][% END %] [% IF materials %][% END %] [% IF ( itemdata_itemnotes ) %][% END %] + [% IF ( itemdata_nonpublicnotes ) %][% END %] [% IF ( SpineLabelShowPrintOnBibDetails ) %][% END %] [% IF ( hostrecords ) %][% END %] [% IF ( analyze ) %][% END %] [% IF ( ShowCourseReserves ) %][% END %] - [% IF ( CAN_user_editcatalogue_edit_items ) %][% END %] + [% IF ( CAN_user_editcatalogue_edit_items ) %][% END %] @@ -583,13 +642,13 @@ function verify_images() { [% IF ( item_level_itypes ) %] [% END %] - - + + [% IF ( itemdata_ccode ) %][% END %] - + [% IF ( volinfo ) %] @@ -727,12 +766,18 @@ function verify_images() { [% IF ( itemdata_copynumber ) %] [% END %] + [% IF ( itemdata_stocknumber ) %] + + [% END %] [% IF materials %] [% END %] [% IF ( itemdata_itemnotes ) %] [% END %] + [% IF itemdata_nonpublicnotes %] + + [% END %] [% IF ( SpineLabelShowPrintOnBibDetails ) %] [% END %] @@ -768,8 +813,12 @@ function verify_images() { [% END %] [% END %] - [% IF ( CAN_user_editcatalogue_edit_items ) %] - + [% IF CAN_user_editcatalogue_edit_items %] + [% END %] [% END %] @@ -778,9 +827,17 @@ function verify_images() { [% END %][%# end of block items_table %]
    + +[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && Koha.Preference('NovelistSelectStaffView') == 'above' ) %] + +[% END %] + [% IF ( count ) %] [% IF ( showncount ) %] - [% PROCESS items_table items=itemloop %] + [% PROCESS items_table tab="holdings" items=itemloop %] [% END %] [% IF ( hiddencount ) %]

    Show all items ([% hiddencount %] hidden) @@ -802,12 +859,19 @@ function verify_images() {

    No physical items for this record
    [% END %] [% END %] + +[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && Koha.Preference('NovelistSelectStaffView') == 'below' ) %] + +[% END %]
    [% IF (SeparateHoldings) %]
    [% IF (otheritemloop.size) %] - [% PROCESS items_table items=otheritemloop %] + [% PROCESS items_table tab="otherholdings" items=otheritemloop %] [% ELSE %] No other items. [% END %] @@ -821,11 +885,17 @@ function verify_images() { [% IF ( MARCNOTES ) %] [% FOREACH MARCNOTE IN MARCNOTES %] -

    [% MARCNOTE.marcnote FILTER html_line_break %]

    +

    + [% IF MARCNOTE.marcnote.match('^https?://\S+$') %] + [% MARCNOTE.marcnote %] + [% ELSE %] + [% MARCNOTE.marcnote FILTER html_line_break %] + [% END %] +

    [% END %] - [% ELSE %] +[% ELSE %] [% IF ( notes ) %] -

    [% notes %]

    +

    [% notes %]

    [% END %] [% END %]
    @@ -840,8 +910,9 @@ function verify_images() {

    This is a serial subscription

    (There are [% subscriptionsnumber %] subscriptions associated with this title).

    [% FOREACH subscription IN subscriptions %] - [% IF ( subscription.branchname ) %]

    At library: [% subscription.branchname %]

    [% ELSE %] - [% IF ( subscription.branchcode ) %]

    At library: [% subscription.branchcode %]

    [% END %][% END %] + [% IF subscription.branchcode %] +

    At library: [% Branches.GetName(subscription.branchcode) || subscription.branchcode %]

    + [% END %] [% IF ( subscription.closed ) %]

    This subscription is closed.

    [% END %] [% IF ( subscription.callnumber ) %]

    Callnumber: [% subscription.callnumber %]

    [% END %] [% IF ( subscription.subscriptionnotes ) %]

    [% subscription.subscriptionnotes FILTER html_line_break %]

    [% END %] @@ -894,11 +965,12 @@ function verify_images() {
    Item typeCurrent location Home libraryStatus Last seen BarcodePublication detailsSerial enumeration / chronologyurlCopy numberInventory numberMaterials specifiedPublic notesNon-public notesSpine labelHost recordsUsed inCourse ReservesEdit 
    [% IF !noItemTypeImages && item.imageurl %] - [% item.description %] + [% item.translated_description %] [% END %] - [% item.description %] + [% item.translated_description %] [% UNLESS ( singlebranchmode ) %][% item.branchname %] [% END %][% item.homebranch %][% item.location %] [% UNLESS ( singlebranchmode ) %][% Branches.GetName( item.branchcode ) %] [% END %][% Branches.GetName(item.homebranch) %][% item.location %] [% item.ccode %][% IF ( item.itemcallnumber ) %] [% item.itemcallnumber %][% END %] @@ -616,13 +675,13 @@ function verify_images() { : due [% item.datedue %] [% ELSIF ( item.transfertwhen ) %] - In transit from [% item.transfertfrom %] to [% item.transfertto %] since [% item.transfertwhen %] + In transit from [% Branches.GetName( item.transfertfrom ) %] to [% Branches.GetName( item.transfertto ) %] since [% item.transfertwhen | $KohaDates %] [% END %] [% IF ( item.itemlost ) %] - [% IF ( item.itemlostloop ) %] - [% FOREACH itemlostloo IN item.itemlostloop %] - [% IF ( itemlostloo.selected ) %] + [% IF itemlostloop %] + [% FOREACH itemlostloo IN itemlostloop %] + [% IF itemlostloo.authorised_value == item.itemlost %] [% itemlostloo.lib %] [% END %] [% END %] @@ -636,9 +695,9 @@ function verify_images() { [% END %] [% IF ( item.damaged ) %] - [% IF ( item.itemdamagedloop ) %] - [% FOREACH itemdamagedloo IN item.itemdamagedloop %] - [% IF ( itemdamagedloo.selected ) %] + [% IF itemdamagedloop %] + [% FOREACH itemdamagedloo IN itemdamagedloop %] + [% IF itemdamagedloo.authorised_value == item.damaged %] [% itemdamagedloo.lib %] [% END %] [% END %] @@ -656,41 +715,21 @@ function verify_images() { [% IF ( item.reservedate ) %] [% IF ( item.waitingdate ) %] - Waiting + Waiting at [% Branches.GetName( item.ExpectedAtLibrary ) %] since [% item.waitingdate | $KohaDates %]. [% ELSE %] - Item-level hold + Item-level hold (placed [% item.reservedate | $KohaDates %]) for delivery at [% Branches.GetName( item.ExpectedAtLibrary ) %]. [% END %] [% IF ( canreservefromotherbranches ) %] - for + Hold for: [% IF ( item.hidepatronname ) %] [% item.Reservedcardnumber %] [% ELSE %] - [% item.ReservedForFirstname %] [% item.ReservedForSurname %] + [% item.ReservedForFirstname _ " " _ item.ReservedForSurname _ " (" _ item.Reservedcardnumber _ ")" %] [% END %] [% END %] - [% IF ( item.waitingdate ) %] - at[% ELSE %]for delivery at - [% END %] - [% item.ExpectedAtLibrary %] - [% IF ( item.waitingdate ) %] - since [% item.waitingdate | $KohaDates %] - [% ELSE %] - [% IF ( item.reservedate ) %] - (placed [% item.reservedate %]) - [% END %] - [% END %] [% END %] - [% UNLESS ( - item.itemnotforloan - or item.notforloan_per_itemtype - or item.onloan - or item.itemlost - or item.withdrawn - or item.damaged - or item.transfertwhen - or item.reservedate - ) %] + [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate ) %] Available [% END %] @@ -699,7 +738,7 @@ function verify_images() { [% END %] [% item.datelastseen %][% item.datelastseen | $KohaDates %] [% item.barcode %] @@ -716,7 +755,7 @@ function verify_images() { [% item.serialseq %] [% END %] [% IF ( item.publisheddate ) %] - ([% item.publisheddate %]) + ([% item.publisheddate | $KohaDates %]) [% END %] [% END %] [% item.copynumber %][% item.stocknumber %] [% item.materials %]
    [% item.itemnotes %]
    [% item.itemnotes_nonpublic %]Print labelEdit + [% UNLESS item.cannot_be_edited %] + Edit + [% END %] +
    + - - + + @@ -907,6 +979,11 @@ function verify_images() { [% FOR order IN orders %] + - [% END %] @@ -985,18 +1062,24 @@ function verify_images() { [% IF ( HTML5MediaEnabled ) %]
    -

    - <[% HTML5MediaParent %] controls preload=none> [% FOREACH HTML5MediaSet IN HTML5MediaSets %] - <[% HTML5MediaSet.child %] src="[% HTML5MediaSet.srcblock %]"[% HTML5MediaSet.typeblock %] /> +

    + <[% HTML5MediaParent %] controls preload=none> + <[% HTML5MediaSet.child %] src="[% HTML5MediaSet.srcblock %]"[% HTML5MediaSet.typeblock %] /> + [[% HTML5MediaParent %] tag not supported by your browser.] + +

    [% END %] - [[% HTML5MediaParent %] tag not supported by your browser.] - -

    [% END %] +[% IF ( Koha.Preference('NovelistSelectStaffEnabled') && Koha.Preference('NovelistSelectProfile') && Koha.Preference('NovelistSelectStaffView') == 'tab' ) %] +
    +
    +
    +[% END %] +
    @@ -1005,7 +1088,7 @@ function verify_images() {
    Vendor Basket group Basket Order numberCreation dateReceive dateCreation dateReceive date Status Quantity
    + [% IF (order.id) %] + [% order.name %] + [% END %] + [% IF (order.basketgroupid) %] [% IF CAN_user_acquisition_group_manage %] [% order.groupname %] ([% order.basketgroupid %]) @@ -932,7 +1009,7 @@ function verify_images() { [% CASE 'cancelled' %]Cancelled [% END %] [% order.quantity %] + [% order.quantity %]
    Save Record
    Select download format: @@ -1038,4 +1121,5 @@ function verify_images() { [% END %] + [% INCLUDE 'intranet-bottom.inc' %]