diff --git a/client/src/js/modules/assign/views/assign.js b/client/src/js/modules/assign/views/assign.js index a5c619720..5b8df9f16 100644 --- a/client/src/js/modules/assign/views/assign.js +++ b/client/src/js/modules/assign/views/assign.js @@ -301,6 +301,7 @@ define(['marionette', 'backbone', 'views/pages', templateHelpers: function() { return { VISIT: this.getOption('visit').toJSON(), + APP_TYPE: app.type, } }, diff --git a/client/src/js/modules/assign/views/selectvisit.js b/client/src/js/modules/assign/views/selectvisit.js index 66f679fbc..34249a362 100644 --- a/client/src/js/modules/assign/views/selectvisit.js +++ b/client/src/js/modules/assign/views/selectvisit.js @@ -19,7 +19,13 @@ define(['marionette', 'templates/assign/selectvisit.html'], function(Marionette, className: 'content', childView: VisitView, childViewContainer: 'ul.visits', - emptyView: EmptyView + emptyView: EmptyView, + + templateHelpers: function() { + return { + APP_TYPE: app.type, + } + }, }) diff --git a/client/src/js/modules/shipment/views/shipment.js b/client/src/js/modules/shipment/views/shipment.js index 489df144c..7c4bf7842 100644 --- a/client/src/js/modules/shipment/views/shipment.js +++ b/client/src/js/modules/shipment/views/shipment.js @@ -146,16 +146,23 @@ define(['marionette', showDewar: function(did, force) { if (did == this.lastDewarID && !force) return - this.$el.find('.dewar_name').text(this.dewars.findWhere({ DEWARID: did }).get('CODE')) - if (app.proposal && app.proposal.get('ACTIVE') == '1') this.$el.find('.add_container').html(' Add Container') + if (app.proposal && app.proposal.get('ACTIVE') == '1') { + if (app.type == "xpdf"){ + this.$el.find('.add_container').html(' Add Puck') + this.$el.find('.add-container-small').prop('title', 'Click to add a puck') + this.$el.find('.add-container-text').text('Add Puck') + } else { + this.$el.find('.add_container').html(' Add Container') + } + } this.dewarcontent.dewarID = did this.dewarcontent.fetch() this.dewarhistory.id = did this.dewarhistory.fetch() var d = this.dewars.findWhere({ DEWARID: did }) - if (d && (d.get('TRACKINGNUMBERTOSYNCHROTRON') || d.get('TRACKINGNUMBERTOSYNCHROTRON'))) { + if (d && (d.get('TRACKINGNUMBERTOSYNCHROTRON') || d.get('TRACKINGNUMBERFROMSYNCHROTRON'))) { this.dewartracking.queryParams.DEWARID = did this.dewartracking.fetch() @@ -163,9 +170,8 @@ define(['marionette', this.dewartracking.ORIGIN = 'N/A' this.dewartracking.DESTINATION = 'N/A' this.dewartracking.reset() - - this.lastDewarID = did } + this.lastDewarID = did }, refreshDewar: function() { diff --git a/client/src/js/modules/types/xpdf/menu.js b/client/src/js/modules/types/xpdf/menu.js index 866122547..70165bf5d 100644 --- a/client/src/js/modules/types/xpdf/menu.js +++ b/client/src/js/modules/types/xpdf/menu.js @@ -9,8 +9,8 @@ define([], function() { dc: 'View All Data', visits: 'Visits', shipments: 'Shipments', - assign: 'Assign Sample Changers', - containers: 'Sample Changers', + assign: 'Assign Pucks', + containers: 'Pucks', instances: 'Instances', xsamples: 'Samples', phases: 'Phases', diff --git a/client/src/js/modules/types/xpdf/shipment/views/containers.js b/client/src/js/modules/types/xpdf/shipment/views/containers.js index 30a33eaf5..9ac69ae2c 100644 --- a/client/src/js/modules/types/xpdf/shipment/views/containers.js +++ b/client/src/js/modules/types/xpdf/shipment/views/containers.js @@ -11,6 +11,7 @@ define([ return ContainersView.extend({ showFilter: false, showImaging: false, + template: '
This page allows you to allocate samples from ISPyB to the beamline sample changer. Drag and drop containers on to the locations on the beamline. Shipments and Dewars can be expanded by clicking on their titles
-Uassign containers by dragging them to any shipment listed under "Unassigned Containers". The container will still belong to its original shipment.
+This page allows you to allocate samples from ISPyB to the beamline sample changer. Drag and drop <% if (APP_TYPE == 'xpdf') { %>pucks<% } else { %>containers<% } %> on to the locations on the beamline. Shipments and Dewars can be expanded by clicking on their titles
+Uassign <% if (APP_TYPE == 'xpdf') { %>pucks<% } else { %>containers<% } %> by dragging them to any shipment listed under "Unassigned <% if (APP_TYPE == 'xpdf') { %>Pucks<% } else { %>Containers<% } %>". The <% if (APP_TYPE == 'xpdf') { %>puck<% } else { %>container<% } %> will still belong to its original shipment.
Data Collections @@ -10,13 +10,13 @@
Select a visit for which you want to assign samples to the beamline sample changer
diff --git a/client/src/js/templates/shipment/dewarlistrow.html b/client/src/js/templates/shipment/dewarlistrow.html index 1be50e6e2..520bb66f3 100644 --- a/client/src/js/templates/shipment/dewarlistrow.html +++ b/client/src/js/templates/shipment/dewarlistrow.html @@ -12,7 +12,7 @@This page shows the contents of the selected box or sample stage. Samples can be added by clicking the position in the table. Or will be, once ContainerId and Position can be changed.