diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fe0c806829a..eff75649f6b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -198,14 +198,15 @@ jobs: done echo "App started successfully." - # Get homepage and verify that the tag includes "DSpace". + # Get homepage and verify that the tag includes the repository title + # ("LINDAT/CLARIAH-CZ Repository" on this CLARIN branch, "DSpace" on vanilla). # If it does, then SSR is working, as this tag is created by our MetadataService. # This step also prints entire HTML of homepage for easier debugging if grep fails. - name: Verify SSR (server-side rendering) on Homepage run: | result=$(wget -O- -q http://127.0.0.1:4000/home) echo "$result" - echo "$result" | grep -oE "]*>" | grep DSpace + echo "$result" | grep -oE "]*>" | grep -E "LINDAT|DSpace" # Get a specific community in our test data and verify that the "
'+a+"
")},enable:function(a){var c=this.parent.Utils.options.get("discoPath","")+"images/",d=this.parent.Utils.options.get("textSearch",DiscoJuice.Dict.orSearch),e=this.parent.Utils.options.get("textHelp",DiscoJuice.Dict.help),g=this.parent.Utils.options.get("textHelpMore", +DiscoJuice.Dict.helpMore),h=this.parent.Utils.options.get("subtitle",null),c='";var f=this,d=$("body");this.parent.Utils.options.get("useTarget",!1)&&(d=this.parent.Utils.options.get("target",d));/*console.log("Target is");console.log(d);*/this.parent.Utils.options.get("overlay",!0)&&(/*console.log("DiscoJuice Enable: adding overlay"),*/$('').appendTo($("body")));this.popup=$(c).appendTo(d); + var that = this; + this.popup.find("div.scroller a").each(function() { + var overthere = that; // Overthere is a reference to the UI object + $(this).click(function(event) { + event.preventDefault(); + event.stopPropagation(); + // The "rel" attribute is containing: 'entityid#subid' + // THe following code, decodes that. + var relID = unescape($(this).attr('rel')); + var entityID = relID; + var subID = undefined; + if (relID.match(/^.*#.+?$/)) { + var matched = /^(.*)#(.+?)$/.exec(relID); + entityID = matched[1]; + subID = matched[2]; + } + overthere.control.selectProvider(entityID, subID); + })});!0===this.parent.Utils.options.get("always",!1)?(this.popup.find(".discojuice_close").hide(),this.show()): +$(a).click(function(a){a.preventDefault();f.show();return!1});this.popup.find("p#dj_help").click(function(){f.setScreen("'+f.sprintf(DiscoJuice.Dict.aboutDescr,'',"")+'
'+DiscoJuice.Dict.version+": "+DiscoJuice.Version)});this.popup.find("#discojuiceextesion_listener").click(function(){f.control.discojuiceextension()}); +this.popup.find("#discojuice_page_return input").click(function(a){a.preventDefault();f.returnToProviderList()});this.popup.find(".discojuice_close").click(function(){f.hide()});this.popup.find(".discojuice_what").click(function(){f.popup.find(".discojuice_whatisthis").toggleClass("show")});this.parent.Utils.options.get("location",!1)&&navigator.geolocation&&(f=this,$("a#locateme").click(function(a){var c=f.parent.Utils.options.get("discoPath","")+"images/";f.parent.Utils.log("Locate me. Detected click event."); +a.preventDefault();a.stopPropagation();$("div.locatemebefore").hide();$("div.locatemeafter").html('
'+DiscoJuice.Dict.locating+"...